mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-18 23:45:52 +08:00
Update index.py
This commit is contained in:
@@ -1437,10 +1437,10 @@ def testRun():
|
||||
default_path = getServerDir() + "/waf/default.pl"
|
||||
default_site = mw.readFile(default_path)
|
||||
url = "http://" + default_site + '/?t=../etc/passwd'
|
||||
returnData = mw.httpGet(url, 3)
|
||||
returnData = mw.httpGet(url, 10)
|
||||
|
||||
url = "https://" + default_site + '/?t=../etc/passwd'
|
||||
returnData = mw.httpGet(url, 3)
|
||||
# url = "https://" + default_site + '/?t=../etc/passwd'
|
||||
# returnData = mw.httpGet(url, 3)
|
||||
return mw.returnJson(True, '测试运行成功!', returnData)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user