performing-packet-injection-attack

Featured

Crafts and injects custom network packets using Scapy, hping3, and Nemesis during authorized security assessments to test firewall rules, IDS detection, protocol handling, and network stack resilience against malformed and spoofed traffic.

AI & Automation 12,642 stars 1468 forks Updated today Apache-2.0

Install

View on GitHub

Quality Score: 99/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Performing Packet Injection Attack ## When to Use - Testing IDS/IPS rules by injecting traffic that should trigger specific detection signatures - Validating firewall rules by crafting packets with specific flags, source addresses, and payloads - Assessing network stack resilience to malformed packets, fragmentation attacks, and protocol violations - Simulating spoofed traffic to test anti-spoofing controls (BCP38, uRPF) - Performing TCP reset injection to test connection resilience and session hijacking scenarios **Do not use** for denial-of-service attacks against production systems, for spoofing traffic to frame third parties, or without explicit authorization for the target network. ## Prerequisites - Written authorization specifying in-scope targets and approved packet injection techniques - Scapy, hping3, and Nemesis installed on the testing platform - Root/sudo privileges for raw socket access and packet crafting - Wireshark or tcpdump on the target side to verify packet delivery - Understanding of TCP/IP protocol internals, header fields, and flag combinations ## Workflow ### Step 1: Craft and Send Basic Test Packets with Scapy ```python #!/usr/bin/env python3 """Basic packet injection examples using Scapy for authorized testing.""" from scapy.all import * # TCP SYN packet (port scan simulation) syn = IP(dst="10.10.20.10") / TCP(dport=80, flags="S", seq=1000) response = sr1(syn, timeout=2, verbose=0) if response and response.haslayer(TCP): if response[...

Details

Author
mukul975
Repository
mukul975/Anthropic-Cybersecurity-Skills
Created
3 months ago
Last Updated
today
Language
Python
License
Apache-2.0

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Listed

analyzing-network-packets-with-scapy

Craft, send, sniff, and dissect network packets using Scapy for protocol analysis, network reconnaissance, and traffic anomaly detection in authorized security testing

6 Updated today
26zl
AI & Automation Solid

analyzing-network-packets-with-scapy

Craft, send, sniff, and dissect network packets using Scapy for protocol analysis, network reconnaissance, and traffic anomaly detection in authorized security testing

12,642 Updated today
mukul975
AI & Automation Featured

performing-arp-spoofing-attack-simulation

Simulates ARP spoofing attacks in authorized lab or pentest environments using arpspoof, Ettercap, and Scapy to demonstrate man-in-the-middle risks, test network detection capabilities, and validate ARP inspection countermeasures.

12,642 Updated today
mukul975
AI & Automation Featured

scanning-network-with-nmap-advanced

Performs advanced network reconnaissance using Nmap's scripting engine, timing controls, evasion techniques, and output parsing to discover hosts, enumerate services, detect vulnerabilities, and fingerprint operating systems across authorized target networks.

12,642 Updated today
mukul975
AI & Automation Featured

performing-bandwidth-throttling-attack-simulation

Simulates bandwidth throttling and network degradation attacks using tc, iperf3, and Scapy in authorized environments to test quality-of-service controls, application resilience, and network monitoring detection of traffic manipulation attacks.

12,642 Updated today
mukul975