{"id":13821204,"url":"https://github.com/gnebbia/pdlist","last_synced_at":"2025-04-06T11:10:45.175Z","repository":{"id":47032345,"uuid":"198826711","full_name":"gnebbia/pdlist","owner":"gnebbia","description":"A passive subdomain finder","archived":false,"fork":false,"pushed_at":"2023-04-19T13:04:12.000Z","size":1069,"stargazers_count":328,"open_issues_count":1,"forks_count":46,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-03-30T10:07:24.946Z","etag":null,"topics":["bugbounty","dns","information-gathering","osint","osint-reconnaissance","osint-resources","passive-dns","passive-dns-data","reconnaissance"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gnebbia.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.rst","contributing":"CONTRIBUTING.rst","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2019-07-25T12:25:18.000Z","updated_at":"2025-03-12T07:02:18.000Z","dependencies_parsed_at":"2023-01-22T07:20:00.480Z","dependency_job_id":"a8ffa3cc-424f-4bd9-81f6-37d9e942cca1","html_url":"https://github.com/gnebbia/pdlist","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gnebbia%2Fpdlist","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gnebbia%2Fpdlist/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gnebbia%2Fpdlist/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gnebbia%2Fpdlist/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gnebbia","download_url":"https://codeload.github.com/gnebbia/pdlist/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247471521,"owners_count":20944158,"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","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":["bugbounty","dns","information-gathering","osint","osint-reconnaissance","osint-resources","passive-dns","passive-dns-data","reconnaissance"],"created_at":"2024-08-04T08:01:17.510Z","updated_at":"2025-04-06T11:10:45.147Z","avatar_url":"https://github.com/gnebbia.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"# pdlist.  A passive subdomain finder\n\n\nAuthor: gnc\n\nCopyright: © 2019, gnc.\n\nDate: 2019-07-25\n\nVersion: 0.1.0\n\n\n## PURPOSE\n\npdlist is a passive subdomain finder written in python3. This tool can be used \neffectively to collect information about a domain without ever sending a \nsingle packet to any of its hosts.\nGiven a domain like \"example.com\" it will find all the hosts which\nhave a hostname `\u003csomething\u003e.example.com` or URLs strictly related to example.com.\n\nIn order to collect informations about subdomains the software queries different\npublicly available websites, which at the moment are:\n- [threatcrowd](https://www.threatcrowd.org/)\n- [urlscan](https://urlscan.io/)\n- [hackertarget](https://hackertarget.com/)\n- [dnsdumpster](https://dnsdumpster.com/)\n- [crt.sh](https://crt.sh/)\n- [certspotter](https://certspotter.com)\n\n\npdlist is very user-friendly and lightweight since the only dependencies are\nthe following python modules:\n- requests\n- BeautifulSoup4\n\n\n\n## INSTALLATION\n\nWe can install pdlist simply by doing:\n```sh\ngit clone https://github.com/gnebbia/pdlist\ncd pdlist\npip install -r requirements.txt\npython setup.py install\n```\n\nNotice that both pip and python should refer to version 3, so if you are not\nusing pyenv as I am doing you should probably substitute `pip` with `pip3` and\n`python` with `python3`.\n\n\n## USAGE\n\nTo have a list of subdomains passively of for example\n[example.com](https://example.com/) we can do:\n\n```sh\npdlist example.com\n```\n\nwe can also specify multiple domains, e.g.,;\n\n```sh\npdlist example1.com example2.com\n```\n\nWe can save the output in a text file by doing:\n```sh\npdlist example.com -o example-list.txt\n```\n\nNotice that by default pdlist will also output hostnames which may not really\nbe proper subdomains of the specified domains, and this happens because those\nsubdomains are still related to the specified domains.\n\nIf we want to only output proper subdomains we can enable the strict mode by\ndoing:\n```shs\npdlist example.com --strict\n```\n\nA usage example in the gif below:\n![](img/pdlist_demo.gif)\n\n\n\n## NOTES\n\nThis is a minimalist passive domain finder, the aim of this project is to have\nfew dependencies, small code footprint and easily extensible.\n\nIf you want to extend the code it is enough to add a module in the `source`\npackage with a `def parse(domains)` method.\n\n\n\n## TODO\n\n* Add more passive recon sources\n* Modify the code to work in asynchrounous mode\n* Generate fancy html reports\n\n## COPYRIGHT\n\nCopyright © 2019, gnc.\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without\nmodification, are permitted provided that the following conditions are\nmet:\n\n1. Redistributions of source code must retain the above copyright\n   notice, this list of conditions, and the following disclaimer.\n\n2. Redistributions in binary form must reproduce the above copyright\n   notice, this list of conditions, and the following disclaimer in the\n   documentation and/or other materials provided with the distribution.\n\n3. Neither the name of the author of this software nor the names of\n   contributors to this software may be used to endorse or promote\n   products derived from this software without specific prior written\n   consent.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n\"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\nLIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR\nA PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE COPYRIGHT\nOWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\nSPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT\nLIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\nDATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\nTHEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n(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","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgnebbia%2Fpdlist","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgnebbia%2Fpdlist","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgnebbia%2Fpdlist/lists"}