Skip to content

VexilonHacker/AsnGo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ASN Scanner

ASN Scanner Demo

ASN Scanner is a simple and fast tool to query ASN information, resolve IPs/domains to ASNs, and list prefixes. It can use local ASN database for offline lookups or Hackertarget API for quick online queries.


Features

  • Resolve IP or domain → ASN
  • List all prefixes for a given ASN
  • Output in text, JSON, or CSV
  • Colored terminal output for readability
  • Automatic download and extraction of ASN database for offline use

Installation

git clone https://github.com/VexilonHacker/asngo
cd asngo
go build -o AsnGo main.go

Basic usage

# Resolve an IP -> ASN
./AsnGo --ip2asn 8.8.8.8

# Resolve an domain -> ASN 
./AsnGo --ip2asn github.com 

Output formats

# JSON output to file
./AsnGo --ip2asn 8.8.8.8 --format json --output result.json

# CSV output of all prefixes for an ASN
./AsnGo --asn2ips AS15169 --format csv --output prefixes.csv

Help menu


       d8888
      d88888
     d88P888
    d88P 888 .d8888b  88888b.   .d88b.   .d88b.
   d88P  888 88K      888 "88b d88P"88b d88""88b
  d88P   888 "Y8888b. 888  888 888  888 888  888
 d8888888888      X88 888  888 Y88b 888 Y88..88P
d88P     888  88888P' 888  888  "Y88888  "Y88P"
                                    888
                               Y8b d88P
                                "Y88P"

                                 Made by VexilonHacker

[+] Scan result follows below

Usage:
  ./AsnGo [options]

Options:
  --ip2asn    resolve IP or domain to ASN and info
  --asn2ips   list ranges for ASN or resolve domain -> ASN -> ranges
  --format    output format: text, json, csv
  --output, -o   optional output file
  --use-api   use hackertarget API instead of local DB
  --help      show this help

License

MIT © VexilonHacker

About

AsnGO: A fast local and API-based ASN/IP scanner

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages