EN
ENNA

Scapy

GPL-2.0

๐ŸŒ Network Recon ยท Python

Scapy is a powerful interactive packet manipulation library and tool written in Python. It can forge or decode packets of a wide number of protocols, send them on the wire, capture them, match requests and replies, and much more. Unlike traditional tools that are limited to specific protocols or tasks, Scapy gives you programmatic control over every byte of every packet, making it possible to craft custom protocol implementations, build network scanners, perform protocol fuzzing, and create network testing tools from scratch. Scapy handles all common protocols (Ethernet, IP, TCP, UDP, DNS, HTTP, ARP, ICMP, 802.11, Bluetooth, and hundreds more) and can dissect captured packets into their component layers. Its interactive Python shell makes it equally useful for quick experiments and complex scripted network operations.

12.2kstars
2.2kforks
131issues
Updated 8d ago

Installation

pip

$ pip install scapy

apt (Debian/Ubuntu)

$ sudo apt install python3-scapy

brew (macOS)

$ brew install scapy

Use Cases

  • Crafting custom network packets for protocol testing and fuzzing
  • Building custom network scanners and reconnaissance tools in Python
  • Analyzing packet captures with programmatic dissection and filtering
  • Testing firewall rules by crafting packets with specific flags and options
  • Implementing custom protocol parsers for proprietary network protocols
  • ARP spoofing, DNS spoofing, and other network attack simulations

Tags

packet-craftingprotocolfuzzingnetwork-analysispython-libraryhacktoberfestnetworknetwork-discoverynetwork-securitynetwork-visualizationpacket-analyserpacket-capturepacket-snifferpcappythonscapysecuritysecurity-tools

More in Network Recon