Programming Assignment #5 Solution

$30.00

Category:

Description

Please read the questions carefully before you start your work.

 

Please ask the instructor any time if you don’t understand the question or find any mistakes in the question.

 

 

In this assignment you will develop a program that will respond to any ping request (ICMP echo-request)

 

using python:

 

  • The program will sniff the network listening for icmp echo requests.

 

  • The program will display the following information from each sniffed packet.

 

  1. Source IP address

 

  1. Destination IP address

 

  1. ICMP sequence number

 

  1. ICMP checksum

 

  • The program will build an ICMP echo-response to the request.

 

  • The program will display the following information about your response packet:

 

  1. Source IP address

 

  1. Destination IP address

 

  1. ICMP sequence number

 

  • The program will send the response packets out the network interface.

 

  • Your program will terminate after 5 packets have been sent.

 

To obtain a perfect grade, the machine that initiates the ping should show the responses.

 

You are required to use scapy and Python 2.7. You can use from scapy.all import * to import scapy.

 

 

 

 

Grading Criterion:

 

The grade will be zero if the file is not submitted correctly or on time The grade will be zero if the program fails to run

 

Your program should solve the above requirements. At least ten points will be taken off for each

 

requirement that is not met.

Non-original work will be graded as a zero

 

If multiple submissions are allowed, only the latest submission will be graded

 

Submission instructions:

 

  • Name your file studentID_lab#.py

 

  • Attach your file to the correct assignment under the Lessons category and submit

 

  • You are a CS major, that should be more directions than you needed

error: Content is protected !!