All Projects → secdev → Scapy

secdev / Scapy

Licence: gpl-2.0
Scapy: the Python-based interactive packet manipulation program & library. Supports Python 2 & Python 3.

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Scapy

Jxnet
Jxnet is a Java library for capturing and sending custom network packet buffers with no copies. Jxnet wraps a native packet capture library (libpcap/winpcap/npcap) via JNI (Java Native Interface).
Stars: ✭ 26 (-99.62%)
Mutual labels:  packet-sniffer, packet-crafting, packet-capture, network-security
Nfstream
NFStream: a Flexible Network Data Analysis Framework.
Stars: ✭ 622 (-91.03%)
Mutual labels:  network-analysis, pcap, packet-capture, network-security
Ivre
Network recon framework, published by @cea-sec & @ANSSI-FR. Build your own, self-hosted and fully-controlled alternatives to Shodan / ZoomEye / Censys and GreyNoise, run your Passive DNS service, collect and analyse network intelligence from your sensors, and much more!
Stars: ✭ 2,331 (-66.37%)
Mutual labels:  network, network-analysis, network-security, network-discovery
Hellraiser
Vulnerability scanner using Nmap for scanning and correlating found CPEs with CVEs.
Stars: ✭ 413 (-94.04%)
Mutual labels:  network, network-analysis, security-tools
Deepgraph
Analyze Data with Pandas-based Networks. Documentation:
Stars: ✭ 232 (-96.65%)
Mutual labels:  network, network-analysis, network-visualization
Netvisix
Netvisix visualizes the network packet flow between hosts
Stars: ✭ 65 (-99.06%)
Mutual labels:  network-visualization, network-analysis, packet-capture
Libtins
High-level, multiplatform C++ network packet sniffing and crafting library.
Stars: ✭ 1,609 (-76.79%)
Mutual labels:  network, pcap, packet-analyser
network-tools
Network Tools
Stars: ✭ 27 (-99.61%)
Mutual labels:  pcap, network-analysis, network-security
ivre
Network recon framework. Build your own, self-hosted and fully-controlled alternatives to Shodan / ZoomEye / Censys and GreyNoise, run your Passive DNS service, collect and analyse network intelligence from your sensors, and much more!
Stars: ✭ 2,712 (-60.88%)
Mutual labels:  network-discovery, network-analysis, network-security
SnifferUI
基于MFC和WinPcap库开发的网络抓包和协议分析软件
Stars: ✭ 86 (-98.76%)
Mutual labels:  pcap, packet-analyser, packet-capture
Batfish
Batfish is a network configuration analysis tool that can find bugs and guarantee the correctness of (planned or current) network configurations. It enables network engineers to rapidly and safely evolve their network, without fear of outages or security breaches.
Stars: ✭ 592 (-91.46%)
Mutual labels:  network, network-analysis, network-security
Habu
Hacking Toolkit
Stars: ✭ 635 (-90.84%)
Mutual labels:  network-analysis, scapy, security-tools
Cyberscan
CyberScan: Network's Forensics ToolKit
Stars: ✭ 280 (-95.96%)
Mutual labels:  network-analysis, network-security, network-visualization
DivertPInvoke
PInvoke wrapper for WinDivert
Stars: ✭ 22 (-99.68%)
Mutual labels:  packet-analyser, packet-sniffer, packet-capture
Joincap
Merge multiple pcap files together, gracefully.
Stars: ✭ 159 (-97.71%)
Mutual labels:  network, network-analysis, pcap
Divert.Net
.NET Wrapper for WinDivert
Stars: ✭ 51 (-99.26%)
Mutual labels:  packet-analyser, packet-sniffer, packet-capture
Workbase
Grakn Workbase (Knowledge IDE)
Stars: ✭ 106 (-98.47%)
Mutual labels:  network, network-analysis, network-visualization
Dns Discovery
DNS-Discovery is a multithreaded subdomain bruteforcer.
Stars: ✭ 114 (-98.36%)
Mutual labels:  network, network-analysis, security-tools
Zeek-Network-Security-Monitor
A Zeek Network Security Monitor tutorial that will cover the basics of creating a Zeek instance on your network in addition to all of the necessary hardware and setup and finally provide some examples of how you can use the power of Zeek to have absolute control over your network.
Stars: ✭ 38 (-99.45%)
Mutual labels:  pcap, network-analysis, network-security
NetStalker
A network tool to control the bandwidth over your local network.
Stars: ✭ 69 (-99%)
Mutual labels:  packet-sniffer, network-analysis, packet-capture

Scapy   Scapy

Scapy unit tests AppVeyor Build status Codecov Status Codacy Badge PyPI Version License: GPL v2 Join the chat at https://gitter.im/secdev/scapy

Scapy is a powerful Python-based interactive packet manipulation program and library.

It is able to forge or decode packets of a wide number of protocols, send them on the wire, capture them, store or read them using pcap files, match requests and replies, and much more. It is designed to allow fast packet prototyping by using default values that work.

It can easily handle most classical tasks like scanning, tracerouting, probing, unit tests, attacks or network discovery (it can replace hping, 85% of nmap, arpspoof, arp-sk, arping, tcpdump, wireshark, p0f, etc.). It also performs very well at a lot of other specific tasks that most other tools can't handle, like sending invalid frames, injecting your own 802.11 frames, combining techniques (VLAN hopping+ARP cache poisoning, VoIP decoding on WEP protected channel, ...), etc.

Scapy supports Python 2.7 and Python 3 (3.4 to 3.9). It's intended to be cross platform, and runs on many different platforms (Linux, OSX, *BSD, and Windows).

Getting started

Scapy is usable either as a shell or as a library. For further details, please head over to Getting started with Scapy, which is part of the documentation.

Shell demo

Scapy install demo

Scapy can easily be used as an interactive shell to interact with the network. The following example shows how to send an ICMP Echo Request message to github.com, then display the reply source IP address:

sudo ./run_scapy
Welcome to Scapy
>>> p = IP(dst="github.com")/ICMP()
>>> r = sr1(p)
Begin emission:
.Finished to send 1 packets.
*
Received 2 packets, got 1 answers, remaining 0 packets
>>> r[IP].src
'192.30.253.113'

Resources

The documentation contains more advanced use cases, and examples.

Other useful resources:

Installation

Scapy works without any external Python modules on Linux and BSD like operating systems. On Windows, you need to install some mandatory dependencies as described in the documentation.

On most systems, using Scapy is as simple as running the following commands:

git clone https://github.com/secdev/scapy
cd scapy
./run_scapy

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.

Contributing

Want to contribute? Great! Please take a few minutes to read this!

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].