A cross-platform, Python-based active network scanner for host discovery, port scanning, service detection, OS fingerprinting, and vulnerability detection.
Version: 1.0.0
- Host Discovery - ARP, ICMP, and TCP probe methods
- Port Scanning - TCP Connect, TCP SYN (half-open), UDP scanning
- Service Detection - Banner grabbing and service fingerprinting
- OS Fingerprinting - TCP/IP stack analysis (TTL, window size)
- Vulnerability Detection - CVE correlation and weak service detection
- Dual Interface - Both GUI (PyQt5) and CLI support
- JSON Export - Export scan results for documentation
- Python 3.10 or higher
- Administrator/Root privileges (for SYN scans and raw sockets)
- Windows: Npcap driver (https://npcap.com/)
# Create project directory
mkdir MetaTrace
cd MetaTracepython -m venv venv
# Windows
venv\Scripts\activate
# Linux/macOS
source venv/bin/activatepip install -r requirements.txtpython metatrace.py --versionpython metatrace_gui.pyBasic Scan:
python metatrace.py -t 192.168.1.1Scan Network Range:
python metatrace.py -t 192.168.1.0/24 -p commonCustom Port Range:
python metatrace.py -t 192.168.1.1 -p 22,80,443,8080
python metatrace.py -t 192.168.1.1 -p 1-1000SYN Scan (requires root):
sudo python metatrace.py -t 192.168.1.1 --scan-type synQuick Scan:
python metatrace.py -t 192.168.1.1 --quickExport Results:
python metatrace.py -t 192.168.1.0/24 -o report.jsonSkip Authorization Prompt:
python metatrace.py -t 192.168.1.1 -y| Option | Description |
|---|---|
-t, --target |
Target IP, range, or CIDR (required) |
-p, --ports |
Ports: common, top1000, all, or custom |
--scan-type |
connect, syn, or udp |
--discovery |
auto, arp, icmp, or tcp |
--skip-discovery |
Scan target directly |
--quick |
Quick scan preset |
-o, --output |
Output JSON filename |
--timeout |
Timeout in seconds (default: 2) |
--threads |
Thread count (default: 50, max: 100) |
-y, --yes |
Skip authorization prompt |
--no-banner |
Don't show banner |
MetaTrace/
├── metatrace.py # Main scanner module (CLI)
├── metatrace_gui.py # GUI interface
├── requirements.txt # Dependencies
├── README.md # This file
└── reports/ # Generated reports (auto-created)
This tool is intended for:
- Network administrators managing their infrastructure
- Security professionals conducting authorized assessments
- Students learning cybersecurity in lab environments
- Run as Administrator (Windows) or with
sudo(Linux/macOS) - SYN scans require raw socket access
- Run:
pip install scapy - Windows: Also install Npcap
- Check target format (use CIDR: 192.168.1.0/24)
- Try different discovery method:
--discovery tcp - Firewall may be blocking probes
- Ensure PyQt5 is installed:
pip install PyQt5 - Check Python version:
python --version
[*] Starting host discovery on 192.168.1.0/24 using auto method...
[+] Discovery complete. Found 5 hosts in 3.45s
[*] Scanning 192.168.1.1 - 22 ports (connect scan)...
[+] 22/tcp open - SSH
[+] 80/tcp open - HTTP
[+] 443/tcp open - HTTPS
[+] Scan complete. 3 open ports found in 2.31s
============================================================
SCAN RESULTS
============================================================
Host: 192.168.1.1
OS: Linux 2.6.x/3.x/4.x/5.x
Confidence: high
Open Ports (3):
PORT STATE SERVICE VERSION
--------------------------------------------------
22 open SSH OpenSSH_8.2p1
80 open HTTP Apache/2.4.41
443 open HTTPS
⚠️ Vulnerabilities (1):
🟠 [High] Port 22: OpenSSH CBC mode information disclosure
CVE: CVE-2008-5161
Scan Duration: 5.76s
============================================================
This project is developed for educational purposes at Sharda University.