Question - Sniff and then Spoof In this task, you will combine the sniffing and spoofing techniques to implement the following sniff-and then-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 screen dumps in your report to show that your program works. Please also attach the code (with adequate amount of comments) in your report.