Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mrvcoder/getasn
🌐 Get Some Useful Info From Domain/IP/ASN 🔥
https://github.com/mrvcoder/getasn
asn-lookup bgpview bugbounty cdn cdn-check cidr cli domain information-gathering osint recon reconnaissance
Last synced: 8 days ago
JSON representation
🌐 Get Some Useful Info From Domain/IP/ASN 🔥
- Host: GitHub
- URL: https://github.com/mrvcoder/getasn
- Owner: mrvcoder
- Created: 2023-02-02T19:26:28.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-08-09T20:41:45.000Z (over 1 year ago)
- Last Synced: 2023-08-09T21:55:24.612Z (over 1 year ago)
- Topics: asn-lookup, bgpview, bugbounty, cdn, cdn-check, cidr, cli, domain, information-gathering, osint, recon, reconnaissance
- Language: Shell
- Homepage:
- Size: 72.3 KB
- Stars: 14
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Tools/Commands need to be installed in your machine
**Install these tools before running script !**
| tool | README |
| ------ | ------ |
| cut-cdn | [https://github.com/ImAyrix/cut-cdn] |
| dnsx | [https://github.com/projectdiscovery/dnsx] |## what does this script do?
this script will give you these infoes :
- **ASN**: asn number of domain
- **IP**: IPs of domain (supports ipv4 and ipv6)
- **is_cdn**: is domain/IP behind cdn or not (true or false)
- **CIDR**: All prefex of ip (cidr)**Please note that Script Data Source is [bgpview](https://bgpview.io/) !**
## what input types can you pass ?
- single/list of IPs
- single/list of Domains
- single/list of ASNsAnd at the end you will get these outputs :
- The ORGINAL output : `getasn_output.json`
- The output which ASNs are equal and is_cdn is false: `getasn_output_SameASN_NotCDN.json`
- The output which is_cdn is false: `getasn_output_NotCDN.json`
- Also you can create custom output name with `-o` option :)## usage
```
usage: ./getasn.sh [options]options:
-r set resolvers file address [ default: ./resolvers.txt ]
-s -silent silent output
-o set output (only .json is ok)
-domainlist set domain list txt file (only .txt is ok)
-domain check single domain
-iplist set ip list txt file (only .txt is ok)
-ip check single ip
-asn check single asn
-asnlist set asn list txt file (only .txt is ok)
```## How to use this script as alias in bash !
Add this code to your `~/.bashrc`
```
alias getasn="{{getasn.sh full path}}"
```
1. replace `{{getasn.sh full path}}` with path of where is getasn.sh script is
save it and the run this code :
```
source ~/.bashrc
```Now you can call getasn script anywhere in bash by only calling `getasn` !
And Only need to pass `[options]`## How to use with [notify](https://github.com/projectdiscovery/notify)
```
./getasn.sh -s -domainlist ListOfDomains.txt | notify -mf "done" -id discord
```
Good luck :)