{"id":20276680,"url":"https://github.com/eonraider/reconlib","last_synced_at":"2026-03-12T06:01:59.003Z","repository":{"id":104271443,"uuid":"592756263","full_name":"EONRaider/ReconLib","owner":"EONRaider","description":"A collection of modules and helpers for active and passive reconnaissance of remote hosts","archived":false,"fork":false,"pushed_at":"2023-02-16T18:34:12.000Z","size":181,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-28T18:19:53.264Z","etag":null,"topics":["cybersecurity","ethical-hacking","infosec","reconnaissance"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/EONRaider.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2023-01-24T13:21:21.000Z","updated_at":"2024-05-31T02:15:59.000Z","dependencies_parsed_at":null,"dependency_job_id":"36f2b5e6-3880-483c-b91f-9595edca3cbf","html_url":"https://github.com/EONRaider/ReconLib","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/EONRaider/ReconLib","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EONRaider%2FReconLib","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EONRaider%2FReconLib/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EONRaider%2FReconLib/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EONRaider%2FReconLib/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/EONRaider","download_url":"https://codeload.github.com/EONRaider/ReconLib/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EONRaider%2FReconLib/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30416735,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-12T04:41:02.746Z","status":"ssl_error","status_checked_at":"2026-03-12T04:40:12.571Z","response_time":114,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["cybersecurity","ethical-hacking","infosec","reconnaissance"],"created_at":"2024-11-14T13:15:10.377Z","updated_at":"2026-03-12T06:01:58.991Z","avatar_url":"https://github.com/EONRaider.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ReconLib\nA collection of modules and helpers for active and passive reconnaissance of remote hosts.\nReconLib can be used as a standalone library on Python code or as an engine for tools\nsuch as subdomain enumerators and others.\n\n## Demo\n![demo](https://user-images.githubusercontent.com/15611424/215552669-b2580043-92b1-426c-88de-d23e6bba3415.png)\n\n## Installation\n```shell\npip install reconlib\n```\n\n## How to Use\nClick on a section to expand a code snippet that illustrates how to use each API and its\navailable methods.\n\n### Unofficial crt.sh API\n\u003cdetails\u003e\n\u003csummary\u003eFetch Certificate Information\u003c/summary\u003e\n\n```python\nfrom reconlib import CRTShAPI\n\ncertificates = CRTShAPI().fetch_certificates(target=\"github.com\")\n\nprint(certificates)\n\n# [{'issuer_ca_id': 185756, 'issuer_name': 'C=US, O=DigiCert Inc,\n# CN=DigiCert TLS RSA SHA256 2020 CA1', 'common_name': 'skyline.github.com',\n# 'name_value': 'skyline.github.com\\nwww.skyline.github.com', 'id': 8383197569,\n# 'entry_timestamp': '2023-01-10T23:48:41.932', ... }]\n```\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003eFetch All Subdomains of a given target\u003c/summary\u003e\n\n```python\nfrom reconlib import CRTShAPI\n\nsubdomains = CRTShAPI().fetch_subdomains(target=\"github.com\")\n\nprint(subdomains)\n\n# {\n#     'import2.github.com', 'api.security.github.com', 'examregistration.github.com',\n#     '*.registry.github.com', 'api.stars.github.com', ...\n# }\n```\n\u003c/details\u003e\n\n### Unofficial HackerTarget API\n\n\u003cdetails\u003e\n\u003csummary\u003ePerform a request to HackerTarget's API \"hostsearch\" endpoint\u003c/summary\u003e\n\n```python\nfrom reconlib import HackerTargetAPI\n\nhackertarget = HackerTargetAPI()\n\nprint(hackertarget.hostsearch(target=\"github.com\"))\n# {\n#     IPv4Address(\"140.82.121.9\"): \"lb-140-82-121-9-fra.github.com\",\n#     IPv4Address(\"192.30.255.117\"): \"lb-192-30-255-117-sea.github.com\",\n#     IPv4Address(\"140.82.114.27\"): \"lb-140-82-114-27-iad.github.com\",\n#     ...\n# }\n\nprint(hackertarget.ip_addresses)\n# {\n#     \"github.com\": {\n#         IPv4Address(\"140.82.121.9\"),\n#         IPv4Address(\"192.30.255.117\"),\n#         IPv4Address(\"140.82.114.27\"),\n#         ...\n#     }\n# }\n\nprint(hackertarget.subdomains)\n# {\n#     \"lb-140-82-121-9-fra.github.com\",\n#     \"lb-192-30-255-117-sea.github.com\",\n#     \"lb-140-82-114-27-iad.github.com\",\n#     ...\n# }\n```\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003ePerform a request to HackerTarget's API \"dnslookup\" endpoint\u003c/summary\u003e\n\n```python\nfrom reconlib import HackerTargetAPI\n\ndnslookup = HackerTargetAPI().dnslookup(target=\"github.com\")\n\nprint(dnslookup)\n\n# {\n#     \"github.com\": {\n#         \"A\": [\"140.82.113.4\"],\n#         \"MX\": [\n#             \"1 aspmx.l.google.com.\",\n#             \"10 alt3.aspmx.l.google.com.\",\n#             \"10 alt4.aspmx.l.google.com.\",\n#         ],\n#         \"NS\": [\"dns1.p08.nsone.net.\", \"dns2.p08.nsone.net.\"],\n#         ...\n#     }\n# }\n```\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003ePerform a request to HackerTarget's API \"reversedns\" endpoint\u003c/summary\u003e\n\n```python\nfrom reconlib import HackerTargetAPI\n\nreverse_dns = HackerTargetAPI().reverse_dns(target=\"140.82.121.9\")\n\nprint(reverse_dns)\n\n# {IPv4Address(\"140.82.121.9\"): \"lb-140-82-121-9-fra.github.com\"}\n```\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003ePerform a request to HackerTarget's API \"aslookup\" endpoint\u003c/summary\u003e\n\n```python\nfrom reconlib import HackerTargetAPI\n\naslookup = HackerTargetAPI().aslookup(target=\"140.82.121.9\")\n\nprint(aslookup)\n\n# {\n#     \"ASN\": 36459,\n#     \"IP_ADDRESS\": IPv4Address(\"140.82.121.9\"),\n#     \"NETWORK\": IPv4Network(\"140.82.121.0/24\"),\n#     \"OWNER\": \"GITHUB, US\",\n# }\n```\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003eFetch All Subdomains of a given target\u003c/summary\u003e\n\n```python\nfrom reconlib import HackerTargetAPI\n\nsubdomains = HackerTargetAPI().fetch_subdomains(target=\"github.com\")\n\nprint(subdomains)\n\n# {\n#     \"lb-140-82-121-9-fra.github.com\",\n#     \"lb-192-30-255-117-sea.github.com\",\n#     \"lb-140-82-114-27-iad.github.com\",\n#     ...\n# }\n```\n\u003c/details\u003e\n\n### VirusTotal API\nA `VirusTotalAPI` object can be instantiated with the \"api_key\" attribute\nset to a pre-defined value, but setting it with the \"VIRUSTOTAL_API_KEY\"\nenvironment variable is the recommended way to do it before proceeding. Setting it up\nlike this guarantees hardcoded secrets to be completely avoided. ReconLib will detect\nenvironment variables set directly through a shell or a file.\n\n```shell\nEXPORT VIRUSTOTAL_API_KEY=\"YOUR-VT-API-KEY\"\n```\n\n\u003cdetails\u003e\n\u003csummary\u003eFetch All Subdomains of a given target\u003c/summary\u003e\n\n```python\nfrom reconlib import VirusTotalAPI\n\n'''An instance of VirusTotalAPI will read the API key value from\nthe environment by default. Passing it as an argument in code is\npossible, but not required.'''\nsubdomains = VirusTotalAPI().fetch_subdomains(target=\"nmap.org\")\n\nprint(subdomains)\n# {\n#     \"ckeepingthechristmasspiritalive365.nmap.org\",\n#     \"dgbridgedgbridgedgbridge.nmap.org\",\n#     \"echoriseaboveyourlimits.nmap.org\",\n#     \"wwwtradingdeportivo-domingodearmas.nmap.org\",\n#     ...\n# }\n```\n\u003c/details\u003e","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feonraider%2Freconlib","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feonraider%2Freconlib","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feonraider%2Freconlib/lists"}