Sniffing & Spoofingids-evasionip-fragmentsnetwork-evasionintrusion-detection

fragrouter

Fragrouter is a network intrusion detection evasion toolkit that manipulates IP fragments to bypass IDS systems. It supports various fragmentation techniques for testing and evasion purposes.

Description

Fragrouter is designed as an IDS evasion toolkit, enabling users to perform IP fragmentation attacks that can evade network intrusion detection systems. By breaking packets into specific fragment patterns, it exploits weaknesses in how IDS reassemble and inspect fragmented traffic.

Use cases include penetration testing, security research, and validating IDS configurations against fragmentation-based evasion techniques. It forwards traffic through different attack modes that alter fragment order, size, and duplication to simulate real-world evasion scenarios.

The tool is particularly useful in controlled environments where testers need to demonstrate potential blind spots in monitoring solutions. Its lightweight installation and straightforward interface make it accessible for network security professionals.

How It Works

Fragrouter operates by intercepting network traffic on a specified interface and applying IP fragmentation transformations based on selected attack modes. It supports techniques like ordered fragments of fixed byte sizes (8-byte or 16-byte), out-of-order delivery, duplicates, and marking the last fragment first. These manipulations disrupt reassembly processes in IDS, causing dropped or misidentified packets. Additional options control interface selection, promiscuous mode, and hop manipulation for advanced routing evasion.

Installation

bash
sudo apt install fragrouter

Flags

-i interfaceSpecify the network interface to use
-pEnable promiscuous mode
-g hopSet gateway hop for routing
-G hopcountSet TTL hopcount
-B1base-1: normal IP forwarding
-F1frag-1: ordered 8-byte IP fragments
-F2frag-2: ordered 24-byte IP fragments
-F3frag-3: ordered 8-byte IP fragments, one out of order
-F4frag-4: ordered 8-byte IP fragments, one duplicate
-F5frag-5: out of order 8-byte fragments, one duplicate
-F6frag-6: ordered 8-byte fragments, marked last frag first
-F7frag-7: ordered 16-byte fragments, fwd-overwriting

Examples

Using interface eth0, send ordered 8-byte IP fragments
fragrouter -i eth0 -F1
Using interface eth0, perform normal IP forwarding (base-1 mode)
fragrouter -i eth0 -B1
Using interface eth0, send ordered 24-byte IP fragments
fragrouter -i eth0 -F2
Using interface eth0, send ordered 8-byte IP fragments with one out of order
fragrouter -i eth0 -F3
Using interface eth0, send ordered 8-byte IP fragments with one duplicate
fragrouter -i eth0 -F4
Using interface eth0, send out of order 8-byte fragments with one duplicate
fragrouter -i eth0 -F5
Display help and usage information for fragrouter
fragrouter --help
Updated 2026-04-16kali.org ↗