Lesson 7: Introduction to Hacking Networking Devices
Great explanation by Chris McCoy at: https://theartofhacking.org/go/hacking_networks.html
Exercise 7.1
- Create a virtual network using two VMs (Kali and any other small Linux VM, as a victim) and use either a physical Layer 3 switch or router; or Open vSwitch.
- Use the
arpingtool to retrieve the MAC address of your router. - Perform a ARP Cache poisoning attack using the
arpspooftool as shown in the video demonstration and use thedsnifftool to capture packets. dsniff is a collection of tools created by Dug Song. These are used for network auditing and penetration testing includingdsniff,filesnarf,mailsnarf,msgsnarf,urlsnarf, andwebspy(used to passively monitor a network).
Exercise 7.2
- Become familiarized with
scapywith this video and these docs. Feel free to use this scapy cheatsheet. - A good way is to go over the interactive tutorial here.
- Create a scapy script that will allow you to:
- retrieve the MAC address of your router
- Perform the ARP cache poisoning attack that you completed using
arpspoof. Then usedsniffto passively monitor the traffic.
Exercise 7.3
- Perform a MiTM attack using
socat,mitmproxy, andettercap, following the instructions in this video.
Exercise 7.4 (Optional VIRL Setup)
Watch this video about how to create a quick lab using the Virtual Internet Routing Lab Personal Edition (VIRL PE) lab infrastructure (not free!). VIRL is a powerful network virtualization and orchestration platform that enables the development of highly accurate models of existing or planned networks.
Download the VIRL topology files and follow along these demonstrations.