scapy3

Packet generator/sniffer and network scanner/discovery (Python 3)

Install

All systems
curl cmd.cat/scapy3.sh
Debian Debian
apt-get install python3-scapy
Ubuntu
apt-get install python3-scapy
image/svg+xml Kali Linux
apt-get install python3-scapy
Fedora
dnf install python3-scapy
Windows (WSL2)
sudo apt-get update sudo apt-get install python3-scapy
Raspbian
apt-get install python3-scapy

python3-scapy

Packet generator/sniffer and network scanner/discovery (Python 3)

Scapy is a powerful interactive packet manipulation tool, packet generator, network scanner, network discovery, packet sniffer, etc. It can for the moment replace hping, 85% of nmap, arpspoof, arp-sk, arping, tcpdump, tethereal, p0f, .... In scapy you define a set of packets, then it sends them, receives answers, matches requests with answers and returns a list of packet couples (request, answer) and a list of unmatched packets. This has the big advantage over tools like nmap or hping that an answer is not reduced to (open/closed/filtered), but is the whole packet. This package contains the Python 3 version of the library and scapy executable.