Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/harleo/asnip
ASN target organization IP range attack surface mapping for reconnaissance, fast and lightweight
https://github.com/harleo/asnip
asn bugbounty discovery ip mapping organization osint pentesting reconnaissance target
Last synced: about 1 month ago
JSON representation
ASN target organization IP range attack surface mapping for reconnaissance, fast and lightweight
- Host: GitHub
- URL: https://github.com/harleo/asnip
- Owner: harleo
- License: mit
- Created: 2019-11-23T11:01:26.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2022-04-10T15:37:16.000Z (over 2 years ago)
- Last Synced: 2024-07-27T04:36:25.771Z (5 months ago)
- Topics: asn, bugbounty, discovery, ip, mapping, organization, osint, pentesting, reconnaissance, target
- Language: Go
- Homepage:
- Size: 17.6 KB
- Stars: 201
- Watchers: 7
- Forks: 31
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-hacking-lists - harleo/asnip - ASN target organization IP range attack surface mapping for reconnaissance, fast and lightweight (Go)
README
## Asnip
[![MIT License](https://img.shields.io/github/license/harleo/asnip?label=License&style=flat-square)](https://opensource.org/licenses/MIT)
[![Follow on Twitter](https://img.shields.io/twitter/follow/_harleo?color=00acee&label=Follow%20%40_harleo&style=flat-square)](https://twitter.com/_harleo)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.
### Installation
`go install github.com/harleo/asnip@latest`_This tool requires [golang](https://golang.org/)_
### Options
```console
Usage:
-t string
Domain or IP address (Required)
-p string
Print results to console
```### Example
```console
$ asnip -t google.com -p[?] ASN: "15169" ORG: "GOOGLE, US"
8.8.4.0/24
--- snip ---
[:] Writing 616 CIDRs to file...
[:] Converting to IPs...
8.8.8.1
--- snip ---
[:] Writing 14725936 IPs to file...
[!] Done.
```### Disclaimer
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._
---
© github.com/harleo