An open API service indexing awesome lists of open source software.

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.

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
```