You need to write such a program and include screendumps in


Question 1)

Sniff and then Spoof In this task, you will combine the sniffing and spoofing techniques to implement the following sniff-andthen-spoof program. You need two VMs on the same LAN. From VM A, you ping an IP X. This will generate an ICMP echo request packet. If X is alive, the ping program will receive an echo reply, and print out the response. Your sniff-and-then-spoof program runs on VM B, which monitors the LAN through packet sniffing. Whenever it sees an ICMP echo request, regardless of what the target IP address is, your program should immediately send out an echo reply using the packet spoofing technique. Therefore, regardless of whether machine X is alive or not, the ping program will always receive a reply, indicating that X is alive. You need to write such a program, and include screendumps in your report to show that your program works. Please also attach the code (with adequate amount of comments) in your report.

Question 2)

Spoof an Ethernet Frame.

Spoof an Ethernet Frame. Set 01:02:03:04:05:06 as the source address. To tell the system that the packet you constract already includes the Ethernet header, you need to create the raw socket using the following parameters: sd = socket(AF_PACKET, SOCK_RAW, htons(ETH_P_IP)); When constructing the packets, the beginning of the buffer[] array should now be the Ethernet header.

could you please take a look at it and let me know if it can be done?

Request for Solution File

Ask an Expert for Answer!!
C/C++ Programming: You need to write such a program and include screendumps in
Reference No:- TGS02775798

Expected delivery within 24 Hours