From a0434ef7d6eea3c1e308c770e8764bb42fa90c68 Mon Sep 17 00:00:00 2001 From: midoks Date: Fri, 18 Aug 2023 00:13:17 +0800 Subject: [PATCH] Update index.py --- plugins/op_waf/index.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/plugins/op_waf/index.py b/plugins/op_waf/index.py index 75e90f1d2..88de6ef52 100755 --- a/plugins/op_waf/index.py +++ b/plugins/op_waf/index.py @@ -1434,11 +1434,7 @@ def testRun(): # if not data[0]: # return data[1] - conf_json = getServerDir() + "/waf/default.json" - data = mw.readFile(conf_json) - pdata = json.loads(data) - default_site = pdata['default'] - + default_site = getServerDir() + "/waf/default.pl" url = "http://" + default_site + '/?t=../etc/passwd' returnData = mw.httpGet(url, 10) return mw.returnJson(True, '测试运行成功!', returnData)