Simple Packet Send and Response
Learn how to send packets in Scapy and analyze the responses.
We'll cover the following...
Sending packets with sr()
So far, we’ve been working with static packet captures, including reading and modifying their contents. However, if we want to build port scanners, honeypots, or servers, we need to be able to send and receive traffic over the network.
Luckily, Scapy has several different functions for doing this. We’ll start out by sending a single packet and looking for matching responses.
In the code block below, we’re using Scapy’s ...