{"id":13582140,"url":"https://github.com/harleo/asnip","last_synced_at":"2026-01-12T07:36:32.782Z","repository":{"id":57502088,"uuid":"223574499","full_name":"harleo/asnip","owner":"harleo","description":"ASN target organization IP range attack surface mapping for reconnaissance, fast and lightweight","archived":false,"fork":false,"pushed_at":"2022-04-10T15:37:16.000Z","size":18,"stargazers_count":205,"open_issues_count":0,"forks_count":26,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-04-06T14:36:15.594Z","etag":null,"topics":["asn","bugbounty","discovery","ip","mapping","organization","osint","pentesting","reconnaissance","target"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/harleo.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}},"created_at":"2019-11-23T11:01:26.000Z","updated_at":"2025-03-23T09:40:29.000Z","dependencies_parsed_at":"2022-09-13T06:50:49.554Z","dependency_job_id":null,"html_url":"https://github.com/harleo/asnip","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/harleo/asnip","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harleo%2Fasnip","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harleo%2Fasnip/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harleo%2Fasnip/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harleo%2Fasnip/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/harleo","download_url":"https://codeload.github.com/harleo/asnip/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harleo%2Fasnip/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28336582,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T06:09:07.588Z","status":"ssl_error","status_checked_at":"2026-01-12T06:05:18.301Z","response_time":98,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["asn","bugbounty","discovery","ip","mapping","organization","osint","pentesting","reconnaissance","target"],"created_at":"2024-08-01T15:02:26.988Z","updated_at":"2026-01-12T07:36:32.767Z","avatar_url":"https://github.com/harleo.png","language":"Go","funding_links":[],"categories":["Go","Lookup and Conversion Tools","Go (531)"],"sub_categories":[],"readme":"\n## Asnip\n\n[![MIT License](https://img.shields.io/github/license/harleo/asnip?label=License\u0026style=flat-square)](https://opensource.org/licenses/MIT)\n[![Follow on Twitter](https://img.shields.io/twitter/follow/_harleo?color=00acee\u0026label=Follow%20%40_harleo\u0026style=flat-square)](https://twitter.com/_harleo)\n\nAsnip retrieves all IPs of a target organization\u0026mdash;used for attack surface mapping in reconnaissance phases.\n\nIt uses the IP or domain name and looks up the Autonomous System Number (ASN), retrieves the Classless Inter-Domain Routing (CIDR) subnet masks and converts them to IPs.\n\n\u003eIP / Domain \u0026rarr; ASN \u0026rarr; CIDRs \u0026rarr; IPs\n\nPlease note that this technique only makes sense if the target has its own ASN. It is also advised to not perform tests on IP ranges that you do not have permission to.\n\n### Installation\n`go install github.com/harleo/asnip@latest`\n\n_This tool requires [golang](https://golang.org/)_\n\n### Options\n\n```console\nUsage:\n  -t string\n        Domain or IP address (Required)\n  -p string\n        Print results to console\n```\n\n### Example\n\n```console\n$ asnip -t google.com -p\n\n[?] ASN: \"15169\" ORG: \"GOOGLE, US\"\n8.8.4.0/24\n--- snip ---\n[:] Writing 616 CIDRs to file...\n[:] Converting to IPs...\n8.8.8.1\n--- snip ---\n[:] Writing 14725936 IPs to file...\n[!] Done.\n```\n\n### Disclaimer\nThis tool must use an external API (which is subject to rate limiting) courtesy of HackerTarget to retrieve relevant data. The conversion of CIDRs to IPs will be done locally.\n\n_Asnip is work in progress, if you make optimization changes yourself, you are invited to create a pull request or check the GitHub issues page\u0026mdash;help is always appreciated._\n\n---\n\n\u0026copy; github.com/harleo","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fharleo%2Fasnip","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fharleo%2Fasnip","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fharleo%2Fasnip/lists"}