This repository has been archived by the owner. It is now read-only.
Start a SYN flood attack to an ip address.
Switch branches/tags
Clone or download
Latest commit 99c9a04 Mar 29, 2015
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src Use puts(). Mar 29, 2015
tests Use normal path. Mar 29, 2015
.gitignore cmake added. Nov 14, 2014
.travis.yml Script. Nov 15, 2014
CMakeLists.txt Use release and debug. Mar 29, 2015
README.md Use release and debug. Mar 29, 2015
iptables .gitignore added. Jun 29, 2013
synflood.sublime-project Build systems added. Mar 29, 2015

README.md

SynFlood

Start a SYN flood attack to an ip address.

Requirements

  • libnet1. libnet1-dev under Debian.

  • Root access for sending a packet.

  • Its recommended to block all RST packets from the source host on the source host.

      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
    

Build

  1. Clone:

     git clone https://github.com/TheFox/synflood.git
    
  2. In synflood directory, make:

     mkdir -p build && cd build && cmake -DCMAKE_BUILD_TYPE=Release .. && make && make test
    
  3. Done.

Usage

./synflood SRC DST DPT [CONNECTIONS]
  • SRC: Source IP address.
  • DST: Destination IP address.
  • DPT: Destination port.
  • CONNECTIONS: Number of connections.

Examples:

./synflood 192.168.241.31 192.168.1.3 80
./synflood 192.168.241.31 192.168.1.3 80 1000

Links

License

Copyright (C) 2013 Christian Mayer http://fox21.at

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.