Scapy (not Scrapy) is a powerful packet processing program in Python. It can forge or decode a large number of network protocol packets, send, capture, match requests and reply packets, and so on. It can easily handle some typical operations, such as port scanning, traceouting, detection, unit testing, attack or network discovery (replacement of hping, NMAP, arpspoof, ARP-SK, arping, tcpdump, tethereal, P0F, etc.). The most important thing is that it has many more excellent features-sending invalid data frames, injecting modified 802.11 data frames, decoding encrypted channels on WEP (VOIP), ARP cache attacks (VLAN), etc., which other tools cannot handle. of.
In Python2, Scapy can be installed directly using pip
pip install scapy
or
python2 -m pip install scapy
In Python3, installing scapy directly may report an error. Scapy installation needs to modify the module name to scapy-python3
pip3 install scapy-python3
or
python3 -m pip install scapy-python3
As shown below:
If you want to import Python3, use import scapy directly without adding -python3.