# secdev/scapy

Scapy: the Python-based interactive packet manipulation program & library.

Repository: https://github.com/secdev/scapy
Canonical: https://ross.abutalabs.com/products/scapy
Homepage: https://scapy.net
Language: Python
License: GPL-2.0
License Family: copyleft
Topics: scapy, python, network, network-analysis, network-visualization, network-discovery, pcap, packet-capture, packet-sniffer, packet-analyser, packet-crafting, security, security-tools, network-security, hacktoberfest
Last push: 2026-08-26T18:15:12+00:00

## Health v2 (maintenance only)
Score: 75/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 31, longevity 100
- inputs: {"age_days": 3989, "days_push": 7, "days_rel": 250, "gap_med": 226.5, "n_releases_24m": 3}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 12501, forks 2237 (observed 2026-08-28T04:10:59.228366+00:00)

## What it is
Scapy is a powerful Python-based interactive packet manipulation program and library that can forge, decode, send, capture, and match packets across a wide range of protocols. It supports fast packet prototyping with sensible defaults and can replace many classic tools like hping, tcpdump, and parts of nmap and wireshark.

## Use cases
- craft and send custom network packets from python
- sniff and capture packets and save them to pcap files
- perform network scans and discovery like arping or traceroute
- decode and analyze packets from a pcap capture
- send malformed or invalid frames for security testing
- inject custom 802.11 wifi frames
- prototype network protocols interactively in a shell

## When to choose
- you need fine-grained control over packet construction or parsing in python
- you want one tool for scanning, sniffing, tracing, and packet forging
- you need to send nonstandard or invalid packets that other tools can't produce
- you want to script network experiments or security tests

## When to avoid
- you need high-performance packet processing or production traffic analysis at scale
- you want a polished GUI for packet analysis like wireshark
- you need a simple high-level HTTP client rather than raw packet control

## Facets
- artifact type: library
- maturity: stable
- function: networking, security, cli, developer-tools, testing
- domain: security, networking, developer-tools, penetration-testing
- platform: python, windows, bsd, cli, cross-platform
- tags: packet-crafting, packet-sniffer, pcap, network-discovery, network-analysis, packet-manipulation, protocol-decoding, linux, macos

## Member repositories
- secdev/scapy (main) score 75

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:10:59.228366+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:14:00.063959+00:00, confidence not recorded.
  - readme: https://github.com/secdev/scapy (fetched 2026-08-28T04:10:59.228366+00:00, sha 5c608af25e72)
  - homepage: https://scapy.net (fetched 2026-08-29T08:10:37.457844+00:00, sha dba816cdd08d)
  - registry_pypi: https://pypi.org/pypi/scapy/json (fetched 2026-08-29T08:10:37.460280+00:00, sha 6200c42739aa)
- Data as of 2026-08-30T08:39:29.467469+00:00.
