Git Product home page Git Product logo

kangal's Introduction

TCP Syn-Flood Attacking and Defending

alt text

Two groups of codes are to develop a code capable of attacking and defending a tcp-syn flood as detailed below. The defending group will try to block and log this attack with the code they have developed on a server that does not have the ability to edit the OS kernel. Netfilter module of the kernel is used as the engine on the blocking side, and new rules are added to iptables. Codes are written in C.

Attacking Group:

As argument, the destination IP and port information will be received from the user. Interface name information is written to a conf file. Random IP numbers between 1-254 are generated as source host IP to be used with the Syn flood, S (Syn) flag is added to every packet as tcp flag by randomly generating source port information. It will print the total number of packets sent to the screen.

Defending Group:

The code will detect more than 50 Syn packets sent within 3 seconds of the same IP, reject these malicious ip addresses with TCP RST, log in or print stdout. After 1 minute, the IP addresses will be redirected to the white list, and if the attack continues, the IP address will be blocked forever in a file that will be added to the blacklist.

EXTRA PROJECT

  • Now, Vlan Double Tagging is available on /Attack folder. You can create an ICMP packet with double tags to spoof trunk ports to forward your packets through different vlans. You only need to specify source and destination MAC and IP addresses and VLAN ID numbers.

  • TO RUN SYN-FLOOD ATTACK, TYPE MAKE SYN / MAKE SYNRUN.

  • TO RUN DOUBLE TAGGING, TYPE MAKE VLAN / MAKE VLANRUN.

kangal's People

Contributors

aerdemcagatay avatar boranyldrm avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.