Module 5.3: Wireshark challenge
Wireshark overall plan:
- learn how to read networks using nmap and ipnetmonitor
- install wireshark and learn how to read packets
- learn about the dialog all machines use on the internet (DNS, ARP, ACK-SYN, ICMP)
- learn how to install a wireless router to create an isolated hacker network (hackz0rz)
- use this network to attack and defend using metasploit
- learn how to protect yourself
Downloading kali linux:
Local downloads:
- go to elab.hpa.edu
- look for computer engineering lower folder (bottom of page)
- look for installers folder
- download UTM and parrot-os.utm images
- install on your own laptop
- go to wireshark.org and install the version that matches your computer (windows, mac, apple silicon)
- open wireshark and begin your challenge
Wireshark challenge: Part 1: http
Your challenge is to view the login credentials of an insecure http request using wireshark
- start wireshark
- choose an active network interface (look for the squiggly lines)
- apply the http filter
- go to the IP address posted on the board
- start packet capture
- refresh the page
- login to the admin pages (see board for credentials)
- stop the packet capture
- look through the packets for a POST entry
- find the login and password you used
- repeat this with another host
- repeat using the http.request filter
Wireshark challenge: Part 2: arp and icmp
- open terminal
- run ping to another machine
- start wireshark with the arp filter
- repeat with the icmp filter
- what is the MAC address of the sender and recipient?
- what was the round trip time for each packet?
Wireshark challenge: Part 3: ACK-SYN
- open a browser and visit a non-https host
- filter with tcp in wireshark
- fine a tcp 3-way handshake
- what does ARP do, and why did it appear before the ping?
- what do ICMP messages tell us about connectivity?
- how can this delay help identify potential network intrusions?
Server challenge:
- setup an apache server on one of the raspberry pi units
- password protect some part of the web server (look up how to do this, either .htaccess or another method)
- share your IP address with another student (the "attacker")
- have them watch using wireshark as you login
- challenge them to gain your password
- question: why do we gather packets for later use using pcap?
Migrated from Apple Server Wiki. Original page ID: E3H2f941