To verify that an RST response is received from a live host, we can use Scapy to send a TCP ACK packet to a known live host. In the example provided, the ACK packet will be sent to the TCP destination port 80. This port is commonly used to run HTTP web services. The host used in the demonstration currently has an Apache service running on this port.
- To do this, we need to build each of the layers of our request. The first layer to be built is the IP layer. Have a look at the following command:
- Here, we have initialized the i variable as an IP object and then reconfigured the standard configurations to set ...