Skip to content

Instantly share code, notes, and snippets.

View carnegiejunior's full-sized avatar

Sebastião Carnegie Junior carnegiejunior

  • Scorpion Circle
  • Porto, Portugal
View GitHub Profile
@carnegiejunior
carnegiejunior / asn
Created May 3, 2020 01:06
My ASN Utility
#!/bin/bash
############################################################################################################
# ----------------------------------------------------------------------
# ASN/IPv4/Prefix lookup tool. Uses Team Cymru's whois service for data.
# ----------------------------------------------------------------------
# example usage:
# asn <ASnumber> -- to lookup matching ASN data. Supports "as123" and "123" formats (case insensitive)
# asn <IP.AD.DR.ESS> -- to lookup matching route and ASN data
# asn <ROUTE> -- to lookup matching ASN data