mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-20 08:25:50 +08:00
Update index.py
This commit is contained in:
@@ -1434,11 +1434,7 @@ def testRun():
|
|||||||
# if not data[0]:
|
# if not data[0]:
|
||||||
# return data[1]
|
# return data[1]
|
||||||
|
|
||||||
conf_json = getServerDir() + "/waf/default.json"
|
default_site = getServerDir() + "/waf/default.pl"
|
||||||
data = mw.readFile(conf_json)
|
|
||||||
pdata = json.loads(data)
|
|
||||||
default_site = pdata['default']
|
|
||||||
|
|
||||||
url = "http://" + default_site + '/?t=../etc/passwd'
|
url = "http://" + default_site + '/?t=../etc/passwd'
|
||||||
returnData = mw.httpGet(url, 10)
|
returnData = mw.httpGet(url, 10)
|
||||||
return mw.returnJson(True, '测试运行成功!', returnData)
|
return mw.returnJson(True, '测试运行成功!', returnData)
|
||||||
|
|||||||
Reference in New Issue
Block a user