Giter Site home page Giter Site logo

jroller33 / syn_and_ping_flood_attack Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 32 KB

TCP/IP Network Attack using SYN packets

License: MIT License

Python 100.00%
denial-of-service denial-of-service-attack python syn-flood syn-flood-attack tcp ping-attack scapy

syn_and_ping_flood_attack's Introduction

TCP/IP Network Attack with SYN Packets

handshake TCP Three-Way Handshake

Contents

Overview

License: MIT

This attack is a TCP SYN flooding attack, which is a form of Denial-of-Service attack. It works by exploiting the three-way TCP handshake. A large number of SYN requests are sent to the target (could be a router, firewall, IPS, etc). This consumes the target's resources and prevents real clients from establishing a connection.

Every connection using the TCP protocol requires the three-way handshake, so this attack can be hard to prevent or avoid. However, don't assume this attack will work every time. In order to successfully crash the target and prevent any new clients from establishing connections, the target's resources have to be overly consumed. In other words, the smaller the target, the more likely this attack will be fully successful.

Even if the target isn't completely crashed, running this script will at least slow down the target, since its resources are being steadily consumed.

Unlike most of my network attacks, this script does NOT require any additional hardware, like a WiFi pineapple. It should run on just about any machine with a network connection (at least that's the idea).

Usage

Installation:

Note: to run this script you'll need a libpcap provider, which allows you to capture, manipulate, and send raw packets. On Windows 11 you can use the free version of NPCAP. Install a libpcap provider first, then follow these steps:

  • First clone the repo:
    git clone https://github.com/jroller33/TCP_SYN_flood_attack.git
  • change directory into the folder you just cloned:
    cd <path to folder>
  • install the dependencies: (make SURE your terminal is in the same folder as 'requirements.txt')
    pip install -r requirements.txt
  • choose your target (you'll need the IP address.) For testing I use my local router.

  • you'll need to modify the script and insert your target's ip address.

  • run the script:

    python attack.py

or:

    python3 attack.py
  • Now all you do is wait for the script to crash your target. Sometimes this can take a minute or two, depending on how resilient the target is.

Contribution

Contribute by forking the repo and submitting a pull request!

License

This project is licensed under the MIT License.

Contact

GitHub

syn_and_ping_flood_attack's People

Contributors

jroller33 avatar

Stargazers

 avatar

Watchers

 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.