Skip to content

All-in-One Master ASN Processing with 0x ASN Processor | CIDR, DNS, IP & Port Scanning Made Easy!

License

Notifications You must be signed in to change notification settings

0xPoyel/0x-ASN-Processor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

「🐦‍🔥」0x ASN Processor

Description

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.

Features

  • Fetch CIDR ranges associated with an ASN using multiple sources (whois and asnmap).
  • 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 nmapfor open ports and service version detection.
  • Automatically combine and deduplicate results.
  • Generate detailed log files for tracking progress and results.

Tools Required

The following tools are required to run this script:

  1. whois
  2. asnmap
  3. mapcidr
  4. dnsx
  5. naabu
  6. nmap
  7. awk

Ensure all tools are installed and properly configured on your system.


Installation Instructions

Step 1: Clone the Repository

git clone https://github.com/0xPoyel/0x-ASN-Processor.git
cd 0x-ASN-Processor

Step 2: Install Required Tools

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

Usage Instructions

  1. Make the script executable:
  chmod +x 0x-ASN-Processor.sh
  1. Open Help file:
  ./0x-ASN-Processor.sh -h

  1. Run the script:
  ./0x-ASN-Processor.sh <ASN>
  • Replace with the target ASN, e.g., AS12345.

The script automatically performs the following steps:

  1. Fetches CIDR ranges.
  2. Resolves individual IPs and domains.
  3. Scans for live IPs and open ports.
  4. Performs detailed service detection.

YouTube Tutorial

Watch our comprehensive walkthrough of the ASN Processing Tool on YouTube:

Watch the Tutorial on YouTube


Output Files:

  • 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).

Example

./0x-ASN-Processor.sh AS12345

Output:

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

Dependencies

Ensure the following are installed:

  • Linux/Unix Shell
  • Golang: For asnmap, mapcidr, naabu and dnsx
sudo apt install -y golang

Contribution

  • Contributions are welcome! Please feel free to open issues or submit pull requests for improvements.

⚠️ Reminder

  • 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.