Layer 4 discovery - TCP and UDP

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.

  1. 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:
  1. Here, we have initialized the i variable as an IP object and then reconfigured the standard configurations to set ...

Get Kali Linux Network Scanning Cookbook - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.