Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
- 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started