-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathdede_reinstall.py
executable file
·52 lines (43 loc) · 1.43 KB
/
dede_reinstall.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
#!/usr/bin/env python
# coding: utf-8
from pocsuite.net import req
from pocsuite.poc import POCBase, Output
from pocsuite.utils import register
class TestPOC(POCBase):
vulID='5'
version = '1'
author = ['fengxuan']
vulDate = '2016-5-27'
createDate = '2016-2-20'
updateDate = '2016-2-20'
references = ['http://www.evalshell.com', 'http://www.cnseay.com/3714/']
name = 'dedecms install/index.php.bak重装漏洞'
appPowerLink = 'http://www.dedecms.cn/'
appName = 'dedecms'
appVersion = '5.7'
vulType = 'Code Execution'
desc = '''
dedecms
在默认安装后回生成install/index.php.bak。来判断网站是否安装。
但是在web容器为apache的情况下,对index.php.bak会解析为php文件
详情请搜索apache解析漏洞
'''
samples = ['']
def _attack(self):
return self._verify()
def _verify(self, verify=True):
result = {}
vul_url = '%s/install/index.php.bak' % self.url
response = req.get(vul_url)
if response.status_code == 200:
result['VerifyInfo'] = {}
result['VerifyInfo']['URL'] = self.url
return self.parse_attack(result)
def parse_attack(self, result):
output = Output(self)
if result:
output.success(result)
else:
output.fail('Internet nothing returned')
return output
register(TestPOC)