mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-03 22:31:34 +00:00
refactoring regarding --check-payload
This commit is contained in:
parent
7c343c2d67
commit
228ac0cde5
5 changed files with 202 additions and 744 deletions
|
|
@ -642,8 +642,7 @@ def setPaths():
|
|||
paths.COMMON_OUTPUTS = os.path.join(paths.SQLMAP_TXT_PATH, 'common-outputs.txt')
|
||||
paths.COMMON_TABLES = os.path.join(paths.SQLMAP_TXT_PATH, "common-tables.txt")
|
||||
paths.SQL_KEYWORDS = os.path.join(paths.SQLMAP_TXT_PATH, "keywords.txt")
|
||||
paths.FUZZ_VECTORS = os.path.join(paths.SQLMAP_TXT_PATH, "fuzz_vectors.txt")
|
||||
paths.DETECTION_RULES_XML = os.path.join(paths.SQLMAP_XML_PATH, "detection.xml")
|
||||
paths.PHPIDS_RULES_XML = os.path.join(paths.SQLMAP_XML_PATH, "phpids_rules.xml")
|
||||
paths.ERRORS_XML = os.path.join(paths.SQLMAP_XML_PATH, "errors.xml")
|
||||
paths.INJECTIONS_XML = os.path.join(paths.SQLMAP_XML_PATH, "injections.xml")
|
||||
paths.LIVE_TESTS_XML = os.path.join(paths.SQLMAP_XML_PATH, "livetests.xml")
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ from lib.request.basic import parseResponse
|
|||
from lib.request.direct import direct
|
||||
from lib.request.comparison import comparison
|
||||
from lib.request.methodrequest import MethodRequest
|
||||
from lib.utils.detection import checkPayload
|
||||
from lib.utils.checkpayload import checkPayload
|
||||
|
||||
|
||||
class Connect:
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@ def checkPayload(payload):
|
|||
payload = urldecode(payload)
|
||||
|
||||
if not rules:
|
||||
xmlrules = readXmlFile(paths.DETECTION_RULES_XML)
|
||||
xmlrules = readXmlFile(paths.PHPIDS_RULES_XML)
|
||||
rules = []
|
||||
|
||||
for xmlrule in xmlrules.getElementsByTagName("filter"):
|
||||
Loading…
Add table
Add a link
Reference in a new issue