Skip to content

Latest commit

Β 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

SubScan πŸ”

A Python-based network scanning and host enumeration tool for reconnaissance on local networks.


Features

  • Auto Interface Detection β€” Runs ip addr/ifconfig (Linux/Mac) or ipconfig (Windows) to list active interfaces; pick one or enter manually
  • Host Discovery β€” ICMP ping sweep via Scapy (TCP fallback if unavailable)
  • Port Scanning β€” Multi-threaded TCP connect scan with 3 selectable modes
  • Service Identification β€” Maps open ports to known service names
  • Banner Grabbing β€” Pulls service banners from open ports
  • Auto Logging β€” All terminal output saved to timestamped .txt file

Requirements

pip install scapy

Root/Administrator privileges required for ICMP ping sweep.


Usage

sudo python3 SubScan.py
  1. Active interfaces are auto-detected β€” select one or press M for manual entry
  2. Select port scan mode:
    • [1] Common ports (~150 well-known ports)
    • [2] Full range (1–65535)
    • [3] Custom range
  3. Results display in terminal and save to scan_YYYYMMDD_HHMMSS.txt

Example Output

[*] Network: 192.168.1.0/24
[*] Hosts in range: 254

[ PHASE 1 β€” Host Discovery ]
  [+] 192.168.1.1  β€” ALIVE
  [+] 192.168.1.10 β€” ALIVE

[ PHASE 2 β€” Port Scanning ]
  [OPEN] 22     SSH
  [OPEN] 80     HTTP    Β» Apache/2.4.41 (Ubuntu)
  [OPEN] 443    HTTPS

Disclaimer

This tool is intended for use on networks you own or have explicit permission to test.
Unauthorized scanning is illegal. Use responsibly.


Tech Stack

  • scapy β€” ICMP packet crafting
  • socket β€” TCP port scanning & banner grabbing
  • ipaddress β€” Subnet/network calculation
  • concurrent.futures β€” Multi-threaded scanning

About

Network Scanning and Host Enumeration tool

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages