{"id":19740751,"url":"https://github.com/duo-labs/phish-collect","last_synced_at":"2025-08-25T06:36:39.642Z","repository":{"id":37686771,"uuid":"105667144","full_name":"duo-labs/phish-collect","owner":"duo-labs","description":"Python script to hunt phishing kits","archived":false,"fork":false,"pushed_at":"2023-07-25T15:15:46.000Z","size":757,"stargazers_count":137,"open_issues_count":5,"forks_count":30,"subscribers_count":16,"default_branch":"master","last_synced_at":"2025-04-05T23:11:16.358Z","etag":null,"topics":["infosec","phishing","python"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/duo-labs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-10-03T15:16:59.000Z","updated_at":"2025-03-12T15:15:24.000Z","dependencies_parsed_at":"2024-11-12T01:24:23.847Z","dependency_job_id":"10963471-c119-4f13-ad47-239859a67f2a","html_url":"https://github.com/duo-labs/phish-collect","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/duo-labs/phish-collect","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/duo-labs%2Fphish-collect","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/duo-labs%2Fphish-collect/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/duo-labs%2Fphish-collect/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/duo-labs%2Fphish-collect/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/duo-labs","download_url":"https://codeload.github.com/duo-labs/phish-collect/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/duo-labs%2Fphish-collect/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272013737,"owners_count":24858512,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-25T02:00:12.092Z","response_time":1107,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["infosec","phishing","python"],"created_at":"2024-11-12T01:23:18.314Z","updated_at":"2025-08-25T06:36:39.616Z","avatar_url":"https://github.com/duo-labs.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\u003ca href=\"/docs/full_graph.min.svg\"\u003e\u003cimg src=\"/docs/full_graph.min.svg\" width=\"300\" align=\"center\"\u003e\u003c/a\u003e\u003c/p\u003e\n\n# Phish Kit Collection\n\n## Introduction\n\nThis is the code used in our experiment to collect phishing kits at scale. This requires integrations with phishing feed providers, which may need API keys or other credentials.\n\n## Deploying to EC2\n\nWe ran our experiment using an Amazon EC2 instance. This are the basic commands to get up and running.\n\n### Install the ELK Stack\n\nFirst, you need to install Elasticsearch and Kibana\n```\n# Remove Java 1.7 in favor of Java 1.8\nsudo yum install java-1.8.0\nsudo yum remove java-1.7.0-openjdk\n\n# Then, install Elasticsearch\nsudo rpm --import https://artifacts.elastic.co/GPG-KEY-elasticsearch\n\necho '[elasticsearch-5.x]\nname=Elasticsearch repository for 5.x packages\nbaseurl=https://artifacts.elastic.co/packages/5.x/yum\ngpgcheck=1\ngpgkey=https://artifacts.elastic.co/GPG-KEY-elasticsearch\nenabled=1\nautorefresh=1\ntype=rpm-md' | sudo tee /etc/yum.repos.d/elasticsearch.repo \u003e /dev/null\n\nsudo yum install elasticsearch\nsudo chkconfig --add elasticsearch\n\n# Start Elasticsearch\nsudo -i service elasticsearch start\n\n\n# Install Kibana\necho '[kibana-5.x]\nname=Kibana repository for 5.x packages\nbaseurl=https://artifacts.elastic.co/packages/5.x/yum\ngpgcheck=1\ngpgkey=https://artifacts.elastic.co/GPG-KEY-elasticsearch\nenabled=1\nautorefresh=1\ntype=rpm-md' | sudo tee /etc/yum.repos.d/kibana.repo \u003e /dev/null\n\nsudo yum install kibana\nsudo chkconfig --add kibana\n\n# Start Kibana\nsudo -i service kibana start\n```\n\n### Download the Code\n\nTo get the `phish_collect` code, clone the repository from Github:\n\n```\ngit clone https://github.com/duo-labs/phish_collect.git\ncd phish_collect\n```\n\n### Create our Indexes\n\nTo index values in Elasticsearch, we have to create our indexes. We can do that with this command:\n\n```\ncurl -XPUT localhost:9200/samples -H \"Content-Type: application/json\" -d @es_index.json\n```\n\n### Install Python Requirements\n\nNext, you need to install all the requirements:\n\n```\nvirtualenv .env\nsource .env/bin/activate\npip install -r requirements.txt\n```\n\n### Make run script executable\n\n```\nchmod +x run.sh\n```\n\n### Setup the Crontab\n\nSince we want to run the script every 10 minutes, we need to add the following to our crontab:\n\n```\n*/10 * * * * cd phish_collect \u0026\u0026 ./run.sh\n```\n\nThat's all there is to it! Now new samples will be downloaded and indexed to Kibana.\n\n## Using the Flask Server\n\nWe've added a simple Flask server to let you submit URLs from external sources. It only has one endpoint, `/`, that accepts the following `POST` parameters:\n\n* `url` - The URL to process\n* `pid` (optional) - The sample ID (default: `uuid4()`)\n* `feed` (optional) - The feed (default: `server`)\n\nThe response is a JSON payload of `{\"processing\": true}`. The sample is processed in the background by a pool of workers.\n\nTo start the server, simply run `python server.py`. Configuration settings (interface and port) can be found in `config.toml`.\n\n## License\n\n```\nBSD 3-Clause License\n\nCopyright (c) 2017, Duo Labs\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without\nmodification, are permitted provided that the following conditions are met:\n\n* Redistributions of source code must retain the above copyright notice, this\n  list of conditions and the following disclaimer.\n\n* Redistributions in binary form must reproduce the above copyright notice,\n  this list of conditions and the following disclaimer in the documentation\n  and/or other materials provided with the distribution.\n\n* Neither the name of the copyright holder nor the names of its\n  contributors may be used to endorse or promote products derived from\n  this software without specific prior written permission.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\"\nAND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\nIMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\nDISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE\nFOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\nDAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR\nSERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER\nCAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,\nOR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\nOF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fduo-labs%2Fphish-collect","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fduo-labs%2Fphish-collect","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fduo-labs%2Fphish-collect/lists"}