Skip to main content

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.
To configure a VLAN interface for a specific VLAN:

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:
sslStrip and sslStrip+ no longer work effectively against modern browsers due to HSTS preloading and the includeSubdomains flag used by major domains.

TCP / SSL Listeners

References