Devin Dahlberg

Reconnaissance with Hping

Summary:

  1. Using Hping as an ICMP Utility
  2. Using Hping for Port Scanning

To begin this lab, I launched the Kali Linux virtual machine and logged into the root account. Following login, I opened terminal to begin crafting a packet. With hping, a packet was crafted using ICMP as the protocol with the command:

Once about six packets are transmitted, I stopped hping from running and tested out a different ICMP type using a timestamp ICMP Type 13 by entering the command:

You could also preform traceroute functions using ICMP by entering the command:

Now that I am familiar with ICMP utilities using hping, I begin to explore using hping for port scanning. To begin, I opened a second terminal window and began to start capturing packets using the command:

Hping can craft packets that send various TCP flags set to test ports being scanned. To demonstrate this I sent a packet with SYN from a source port of 5151 by using the command:

Once this was noted, I switched back to the command terminal and begin to try the SSH Port 22 against the firewall by running the command:

Since this was the result, I decided to run a port scan against the firewall using a defined range with the command: