Layer 2 (Switching)
Abusing switch behavior itself, CAM tables, VLAN trunking, STP, DHCP, to turn a segmented network into one big collision domain or redirect traffic through you.
Man-in-the-Middle
Once traffic actually flows through you (via the above, or just being on a flat/wireless segment), intercepting, spoofing, and capturing it.
MAC Flooding
Switches learn which MAC address lives on which port by watching traffic, storing the mapping in a Content Addressable Memory (CAM) table of a specific size. Flooding it with nonsense source MAC adresses faster than it can handle old entries forces the switch to fail open, broadcasting every frame out every port like a hub, since it no longer knows where anything actually is.VLAN Hopping
- Switch Spoofing (DTP)
If a switch port has Dynamic Trunking Protocol (DTP) enabled and set to auto-negotiate, sending DTP frames that claim to be a switch convinces the real switch to turn that port into a trunk, which carries traffic for every VLAN instead of just one.
Man-in-the-Middle
ARP Spoofing
ARP has no authentication at all, a host simply believes whatever reply it receives. Answering on behalf of the real gateway (and separately, on behalf of the real victim) convinces both sides to route through the attacker instead of each other.DNS Spoofing
Once traffic is already flowing through the attacker (via ARP spoofing above),dnsspoof answers DNS queries matching a filter file with attacker-controlled IPs instead of letting them reach the real DNS server.
Bettercap (All-in-One)
Bettercap wraps ARP spoofing, DNS spoofing, and sniffing into one tool with a scriptable console.Man in the Middle IPV6
Capturing & Extracting Credentials from Traffic
Live Capture
You can capture Network traffic live with Wireshark over the GUI or in the consoleAutomated Credential Extraction
Purpose-built tools that parse a pcap (or sniff live) and pull out credentials directly, rather than filtering manually protocol by protocol. Pcredz, net-credsQuick Reference Tools
Yersinia
Swiss-army knife for layer 2 protocol attacks: DTP, DHCP, STP, and more beyond what’s covered here.
Bettercap
All-in-one MITM framework, see above.
net-creds
Extracts credentials and other sensitive data from a pcap or live interface.
PCredz
Similar extraction tool, also carves NTLM/Kerberos hashes specifically.
LLMNR/NBT-NS/mDNS Poisoning
The AD-specific sibling MITM technique (Responder/mitm6), not repeated here.

