Useful interface configuration commands:
switchport port-security maximum [number-of-addresses]switchport port-securityswitchport port-security aging time [time]switchport port-security aging type {absolute | inactivity}switchport port-security mac-address {mac-addr | sticky}
- Setup your topology
- It needs to include a switch at least
- Install the required software for this attack
-
Have a Linux machine or a linux virtual machine (VM).
-
install the software on the machine
~$ sudo apt install dsniff
-
-
Run attack in the terminal
~$ sudo macof -i <interface-name> # For example: sudo macof -i eth0
-
Use "Control-C" to exit the program
-
All traffic is now flooded out the switch, so you can now view all traffic that goes through the switch in wireshark.