Awesome Open Source
Awesome Open Source


MIT License Follow on Twitter

Asnip retrieves all IPs of a target organization—used for attack surface mapping in reconnaissance phases.

It 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.

IP / Domain → ASN → CIDRs → IPs

Please 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.


go install[email protected]

This tool requires golang


  -t string
        Domain or IP address (Required)
  -p string
        Print results to console


$ asnip -t -p

[?] ASN: "15169" ORG: "GOOGLE, US"
--- snip ---
[:] Writing 616 CIDRs to file...
[:] Converting to IPs...
--- snip ---
[:] Writing 14725936 IPs to file...
[!] Done.


This 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.

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—help is always appreciated.


Related Awesome Lists
Top Programming Languages
Top Projects

Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
Golang (158,575
Mapping (7,890
Attack (7,201
Discovery (4,993
Penetration Testing (3,141
Ips (1,721
Osint (1,141
Asn (623
Reconnaissance (589
Target (80