Network Scanning

Discover all devices on your network with IP, MAC, hostname, and vendor information.

Quick Scan

Fast discovery using ARP and ping:

netscan -s
Scanning 192.168.1.0/24...

IP Address      MAC Address         Hostname        Vendor
────────────────────────────────────────────────────────────────
192.168.1.1     00:11:22:AA:BB:CC   router.local    Netgear
192.168.1.10    AC:DE:48:00:11:22   macbook.local   Apple, Inc.
192.168.1.15    B8:27:EB:12:34:56   raspberrypi     Raspberry Pi

Found 3 devices in 8.2 seconds

Full Scan with Ports

Deep scan including open port detection:

netscan -f
IP Address      MAC Address         Vendor          Open Ports
────────────────────────────────────────────────────────────────
192.168.1.1     00:11:22:AA:BB:CC   Netgear         80, 443
192.168.1.10    AC:DE:48:00:11:22   Apple, Inc.     22, 5900
192.168.1.15    B8:27:EB:12:34:56   Raspberry Pi    22, 80, 8080

Scan Options

# Specific subnet
netscan -s -t 10.0.0.0/24

# IP range
netscan -s -t 192.168.1.1-50

# Specific interface
netscan -s -i en0

# Custom ports
netscan -f --ports 22,80,443,3389,8080

# More threads for faster scanning
netscan -s --threads 100

Export Results

# JSON
netscan -s -o scan.json
netscan -s --json > scan.json

# CSV
netscan -s --csv > scan.csv

# HTML Report
netscan -f --report network_audit.html

Scan Types

MethodFlagSpeedPrivileges
ARP Scan-sFastsudo recommended
Ping Sweep-sMediumNone
Port Scan-fSlowNone

Python API

from helpers.scanner import NetworkScanner

scanner = NetworkScanner(target="192.168.1.0/24")

# Quick scan
devices = scanner.quick_scan()
for d in devices:
    print(f"{d['ip']} - {d['vendor']}")

# Full scan with ports
devices = scanner.full_scan(ports=[22, 80, 443])
💡 Tip: Use sudo netscan -s for best results. ARP scanning requires elevated privileges to see all devices.