Skip to content
aman-paurushPublic

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

Repository files navigation

MetaTrace - Network Scanning Tool

A cross-platform, Python-based active network scanner for host discovery, port scanning, service detection, OS fingerprinting, and vulnerability detection.

Version: 1.0.0


Features

  • 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

Installation

Prerequisites

  • Python 3.10 or higher
  • Administrator/Root privileges (for SYN scans and raw sockets)
  • Windows: Npcap driver (https://npcap.com/)

Step 1: Clone or Download

# Create project directory
mkdir MetaTrace
cd MetaTrace

Step 2: Create Virtual Environment (Recommended)

python -m venv venv

# Windows
venv\Scripts\activate

# Linux/macOS
source venv/bin/activate

Step 3: Install Dependencies

pip install -r requirements.txt

Step 4: Verify Installation

python metatrace.py --version

Usage

GUI Mode

python metatrace_gui.py

CLI Mode

Basic Scan:

python metatrace.py -t 192.168.1.1

Scan Network Range:

python metatrace.py -t 192.168.1.0/24 -p common

Custom 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-1000

SYN Scan (requires root):

sudo python metatrace.py -t 192.168.1.1 --scan-type syn

Quick Scan:

python metatrace.py -t 192.168.1.1 --quick

Export Results:

python metatrace.py -t 192.168.1.0/24 -o report.json

Skip Authorization Prompt:

python metatrace.py -t 192.168.1.1 -y

CLI Options

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

Project Structure

MetaTrace/
├── metatrace.py          # Main scanner module (CLI)
├── metatrace_gui.py      # GUI interface
├── requirements.txt      # Dependencies
├── README.md             # This file
└── reports/              # Generated reports (auto-created)

Legal & Ethical Notice

⚠️ IMPORTANT: Only scan networks and systems you own or have explicit written permission to test. Unauthorized scanning is illegal in most jurisdictions.

This tool is intended for:

  • Network administrators managing their infrastructure
  • Security professionals conducting authorized assessments
  • Students learning cybersecurity in lab environments

Troubleshooting

"Permission denied" errors

  • Run as Administrator (Windows) or with sudo (Linux/macOS)
  • SYN scans require raw socket access

"Scapy not installed"

  • Run: pip install scapy
  • Windows: Also install Npcap

"No hosts found"

  • Check target format (use CIDR: 192.168.1.0/24)
  • Try different discovery method: --discovery tcp
  • Firewall may be blocking probes

GUI doesn't start

  • Ensure PyQt5 is installed: pip install PyQt5
  • Check Python version: python --version

Sample Output

[*] 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
============================================================

License

This project is developed for educational purposes at Sharda University.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages