.3 to 3.6). It's intended to be cross platform, and runs on many different platforms (Linux, OSX, *BSD, and Windows).'
It is straightforward to use Scapy as a regular Python module, for example to check if a TCP port is opened. First, save the following code in a file names
send_tcp_syn.py
from scapy.all import * conf.verb = 0 p = IP(dst="github.com")/TCP() r = sr1(p) print(r.summary())
Then, launch the script with:
sudo python send_tcp_syn.py IP / TCP 192.30.253.113:http > 192.168.46.10:ftp_data SA / Padding
To begin with Scapy, you should check the notebook hands-on and the interactive tutorial. If you want to learn more, see the quick demo: an interactive session (some examples may be outdated), or play with the HTTP/2 and TLS notebooks.
The documentation contains more advanced use cases, and examples. >>>
To benefit from all Scapy features, such as plotting, you might want to install Python modules, such as
matplotlib or
cryptography. See the documentation and follow the instructions to install them.
Want to contribute? Great! Please take a few minutes to read this!