I am using two ubuntu VM’s and I am trying to send one ICMP request packet from one VM to other and I got a reply which is automatically generated by the system.
Now I want to generate a custom reply for that received ICMP request message using scapy.
I know we can sniff or receive the request message by using sniff/receive commands, But after sniffing that packet, How can I send a custom reply for that ICMP request packet?
Is it possible to do that? If so, How?
I want that process to be automatic. Lets say that if I got 5 request packets consecutively I want to send 5 reply messages automatically.