Question: In this assignment, you will do a research on how to generate the packets, review IP and TCP header information and understand the IP and

In this assignment, you will do a research on how to generate the packets, review IP and TCP header information and understand the IP and TCP flags. Using scapy or python

  1. Create and capture network traffic
    • Create 10 packets with the following properties: (Use any packet generation tools you like)

IP Header:

  • All packets have destination IP address as 192.168.5.5
  • All packets are from 172.16.16.x network. X is a random number.
  • The 5th and the 10th packets have evil bit set. All the other packets dont have any IP flags set.
  • The TTL value of all packets are 160

TCP Header:

  • The first 5 packets have SYN bit set. The last 5 packets have Urgent and FIN bits set.
  • The source TCP ports of the packets are from 1000 to 1009. The destination port is always 80.

Payload:

  • The even number of packets have a payload of good. The odd number of packets have a payload of bad.

Please provide the code using scapy or python.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!