Devin Dahlberg

Packet Crafting with Scapy

Summary:

  1. Creating Packets with Scapy
  2. Sending Crafted Packets

To begin this exercise I logged into the root account of a Kali Linux virtual machine. Following login I initialized the Scapy application through terminal. Following the launch of Scapy, I began to build a simple IP packet using the RFC 791 to define the IP protocol by entering the following commands:

image

Once the packet is built, I launched a new terminal and opened the application Wireshark. Within the Wireshark window I selected the ethernet interface required and began to start capturing packets. Navigating back to the terminal window with the Scapy prompt, I generated a single ICMP packet to be sent to the OWASP virtual machine by entering the command:

Then nagivated back to the Wireshark window to see that the Scapy packet was successfully sent through an ICMP request to the OWASP virtual machine.

Switching back to the terminal window with the Scapy prompt. I ran the command:

to initiate a SYN scan on a single port.

Switching back to the Wireshark window, I analyzed the output and was able to recognize that a SYN packet was sent with SYN and an ACK packet was recieved indicating that port 80 is open.

image