Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Steps: 1. Create a Python script having the TCP/IP stack as below (skeleton code given below) Display the reocest packet shouing the entire trectefnarlood stack

image text in transcribed
image text in transcribed
image text in transcribed
Steps: 1. Create a Python script having the TCP/IP stack as below (skeleton code given below) Display the reocest packet shouing the entire trectefnarlood stack su 5 ese the stack usiny art it bislay the roiponin packet showing the antire repiry utaci. rat Seed the respense gackint using ur( ) 2. Start apache web server on port 80 3. Open Wireshark, and start packet capture on loopback interface 4. Change permission of the Python script using chmod 5. Run the script 6. Analyze the Wireshark capture 7. Did you see the response packet? Why/Why not (write your answer below): 1. Create a Python script having the TCP/IP stack as below (skeleton code given below) H./bin/env python import sys froe scapy,alt isport import string getstr = "GET / HTTP/1.1SrlnHost: 127. . . 8. 1lrinlrin" \#t Create a variable having TCP/IP stack with source-and destination IP addresses ef as 127, 0. e.1. TCP destination port as 8e, TCP source port as 5555 as and TCP flags as is" Ef Create a request variable stacking the getstr payload on top of the Tcp/ipistack variable Eisplay the request packet showing the: entire TCp/tp/payload stack te Send the stack using sir() * Create a response variable with Ip source and destination addresses as 127.0.0.1. and TCP dporte5555, TCP source port "previous packet"s destination port, TCP acknowledgement number in (previous packet's 5s+1). Af and TCP flags is isA \# Display the response packet showing the entire TCP/IP stack Fend the response packet using sri) 2. Start apache web server on port 80 3. Open Wireshark, and start packet capture on loopback interface 4. Change permission of the Python script using chmod 5. Run the script 6. Analyze the Wireshark capture 7. Did you see the response packet? Why/Why not (write your answer below)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Modern Database Management

Authors: Jeff Hoffer, Ramesh Venkataraman, Heikki Topi

12th edition

133544613, 978-0133544619

More Books

Students also viewed these Databases questions

Question

1. What are your most important guiding values?

Answered: 1 week ago

Question

gpt 2 1 9 .

Answered: 1 week ago