Discovering Hosts from the Outside
When you have a scope of IP ranges and need to find which hosts are responding:ICMP
TCP Port Discovery
HTTP Port Discovery
UDP Port Discovery
Discovering Hosts from the Inside
Passive
Active
Scanning Hosts
TCP Scanning
UDP Scanning
SCTP Scanning
Sniffing
TCPDump
Bettercap
LAN Attacks
ARP Spoofing
VLAN Hopping (802.1Q / DTP)
By default, switch ports in Dynamic Auto mode will enter trunk mode if prompted by a DTP frame. Attackers can exploit this to access traffic across all VLANs.STP Attacks
DHCP Attacks
Spoofing
DNS Spoofing
ICMP Redirect
Send ICMP type 1 code 5 to redirect traffic through the attacker.
LLMNR/NBT-NS Spoofing
Use Responder to impersonate services in local name resolution. Effective against Windows environments.
WPAD Spoofing
Browsers use WPAD to auto-discover proxy settings. Responder can act as a malicious WPAD server.
sslStrip
Downgrade HTTPS to HTTP to sniff credentials in cleartext:TCP / SSL Listeners
References
- Cisco Nightmare — Pentesting Cisco Networks
- Network Security Assessment: Know Your Network (3rd edition)
- Practical IoT Hacking — By Fotios Chantzis et al.