ENNAENNA

Scapy vs Yersinia

GitHub Stats

12.2k
Stars
837
2.2k
Forks
140
136
Issues
29
7d ago
Updated
2y ago
GPL-2.0
License
GPL-2.0
Python
Language
C

About Scapy

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.

About Yersinia

Yersinia is a network security framework written in C that specializes in attacking layer-2 network protocols, targeting the foundational switching and routing mechanisms that most security tools overlook. It supports attacks against Spanning Tree Protocol (STP), Cisco Discovery Protocol (CDP), Dynamic Trunking Protocol (DTP), DHCP, 802.1Q VLAN tagging, Hot Standby Router Protocol (HSRP), and other layer-2 protocols. Network penetration testers and red team operators use Yersinia to demonstrate the devastating impact of layer-2 attacks, which can result in network-wide denial of service, traffic interception, VLAN hopping, and man-in-the-middle positioning. The tool provides both a command-line and ncurses-based interactive interface, making it the definitive framework for assessing an organization's resilience against infrastructure-level network attacks.

Platform Support

๐Ÿงlinux๐ŸŽmacos๐ŸชŸwindows
๐Ÿงlinux

Tags

Shared

protocol

Scapy only

packet-craftingfuzzingnetwork-analysispython-library

Yersinia only

layer2network