The ASN Processing Tool is a comprehensive script designed for network reconnaissance and service scanning. It allows security researchers and network administrators to fetch CIDR ranges, resolve IPs, perform reverse DNS lookups, and scan for open services for a given ASN (Autonomous System Number).
Whether you're a bug bounty hunter, penetration tester, or network security analyst, this tool streamlines the process of understanding network infrastructure, identifying active IPs, and uncovering potential vulnerabilities. It is an essential resource for conducting reconnaissance, expanding attack surfaces, and performing security assessments.
- Fetch CIDR ranges associated with an ASN using multiple sources (
whois
andasnmap
). - Expand CIDR ranges into individual IPs for detailed analysis
mapcidr
. - Perform reverse DNS lookups to identify associated domains
dnsx
. - Identify live IPs with fast port scanning using
naabu
. - Conduct detailed service scans with
nmap
for open ports and service version detection. - Automatically combine and deduplicate results.
- Generate detailed log files for tracking progress and results.
The following tools are required to run this script:
whois
asnmap
mapcidr
dnsx
naabu
nmap
awk
Ensure all tools are installed and properly configured on your system.
git clone https://github.com/0xPoyel/0x-ASN-Processor.git
cd 0x-ASN-Processor
The script will check and install missing tools automatically. Below are the manual installation commands for each tool:
Tools Install:
# Make it executable:
chmod +x install.sh
# Run the script:
./install.sh
Tools Install Check:
# Make it executable:
chmod +x check.sh
# Run the script:
./check.sh
- Make the script executable:
chmod +x 0x-ASN-Processor.sh
- Open Help file:
./0x-ASN-Processor.sh -h
- Run the script:
./0x-ASN-Processor.sh <ASN>
- Replace with the target ASN, e.g., AS12345.
The script automatically performs the following steps:
- Fetches CIDR ranges.
- Resolves individual IPs and domains.
- Scans for live IPs and open ports.
- Performs detailed service detection.
Watch our comprehensive walkthrough of the ASN Processing Tool on YouTube:
- CIDR.txt: Combined list of CIDR ranges.
- All_ip.txt: List of all expanded IPs.
- ASN_domain.txt: Resolved domains from reverse DNS.
- Alive_ips.txt: List of live IPs with open ports.
- nmap-scan-result.txt: Detailed service scan results.
Log File: A timestamped log file is generated to track the script’s progress (e.g., asn_processing_20250111_123456.log).
./0x-ASN-Processor.sh AS12345
An example output structure:
- CIDR Ranges:
192.168.0.0/24
10.0.0.0/8
- Expanded IPs:
192.168.0.1
192.168.0.2
...
- Resolved Domains:
example.com
subdomain.example.com
- Live IPs:
192.168.0.5
10.0.0.3
- Service Scan:
PORT STATE SERVICE VERSION
22/tcp open ssh OpenSSH 7.6p1 Ubuntu
80/tcp open http Apache httpd 2.4.29
Ensure the following are installed:
- Linux/Unix Shell
- Golang: For asnmap, mapcidr, naabu and dnsx
sudo apt install -y golang
- Contributions are welcome! Please feel free to open issues or submit pull requests for improvements.
- Always ensure you have proper authorization before scanning any network or ASN.
- This tool is intended for ethical use in penetration testing and reconnaissance.
🛡️ Disclaimer: Unauthorized use of this tool may result in legal consequences. Use responsibly.