https://github.com/thefox/synflood
Start a SYN flood attack to an ip address.
https://github.com/thefox/synflood
flood flood-attack linux mit-license syn synflood zig
Last synced: 11 months ago
JSON representation
Start a SYN flood attack to an ip address.
- Host: GitHub
- URL: https://github.com/thefox/synflood
- Owner: TheFox
- License: mit
- Created: 2010-12-18T21:17:00.000Z (over 15 years ago)
- Default Branch: master
- Last Pushed: 2025-04-23T06:59:07.000Z (about 1 year ago)
- Last Synced: 2025-04-23T12:04:10.829Z (about 1 year ago)
- Topics: flood, flood-attack, linux, mit-license, syn, synflood, zig
- Language: Zig
- Homepage: https://blog.fox21.at/2010/12/21/synflood-2-0-0.html
- Size: 86.9 KB
- Stars: 38
- Watchers: 3
- Forks: 25
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SynFlood
Start a SYN flood attack to an ip address.
## Requirements
- Zig
- libnet
- `libnet1-dev` under Debian: `apt-get install libnet1-dev`
- `libnet` under macOS: `brew install -s libnet`
- Root access for sending a packet.
- Its recommended to block all RST packets from the source host on the source host.
```bash
iptables -I OUTPUT -p tcp --dport 80 --tcp-flags RST RST -j DROP
iptables -I OUTPUT -p tcp --dport 80 --tcp-flags RST ACK -j DROP
```
## Download
Download the latest binaries from [version 3](https://github.com/TheFox/synflood/releases/tag/v3.0.0).
## Build
1. Clone:
```bash
git clone https://github.com/TheFox/synflood.git
```
2. In `synflood` directory, make:
```bash
zig build
```
Binary file is available as `zig-out/bin/synflood`.
3. Done.
## Usage
```bash
synflood [-h|--help] -s -d -p -c
```
- `-s`: Source IP address.
- `-d`: Destination IP address.
- `-p`: Destination port.
- `-c`: Number of connections.
Examples:
```bash
./synflood -s 192.168.241.31 -d 192.168.1.3 -p 80
./synflood -s 192.168.241.31 -d 192.168.1.3 -p 80 -c 1000
```