The Scapy module is a Python-based library used to interact with and manipulate network packets. The library is supported by both Python2 and Python3 and can be used via the command line or by importing it as a library into your Python program.
Scapy can also be run on Windows, Mac OS, and Linux systems.
With the Scapy module, we can perform all textbook networking tasks such as scanning, probing, trace routing, and network discovery.
In addition, Scapy offers two major advantages:
To install the Scapy module in Python3, run the following command:
pip3 install scapy-python3
You can also download the latest developmental version from Github using:
$ git clone https://github.com/secdev/scapy.git