mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-10 09:49:06 +00:00
Update for an #161 (preventing further skipping of non-heuristic parameters in ignore casted case)
This commit is contained in:
@@ -61,6 +61,7 @@ from lib.core.dicts import SQL_STATEMENTS
|
||||
from lib.core.enums import CHARSET_TYPE
|
||||
from lib.core.enums import DBMS
|
||||
from lib.core.enums import EXPECTED
|
||||
from lib.core.enums import HEURISTIC_TEST
|
||||
from lib.core.enums import HTTPHEADER
|
||||
from lib.core.enums import HTTPMETHOD
|
||||
from lib.core.enums import OS
|
||||
@@ -197,7 +198,7 @@ class Format:
|
||||
|
||||
htmlParsed = None
|
||||
|
||||
if len(kb.htmlFp) == 0 or kb.heuristicTest is None:
|
||||
if len(kb.htmlFp) == 0 or kb.heuristicTest != HEURISTIC_TEST.POSITIVE:
|
||||
pass
|
||||
elif len(kb.htmlFp) == 1:
|
||||
htmlParsed = kb.htmlFp[0]
|
||||
|
||||
@@ -86,6 +86,11 @@ class CHARSET_TYPE:
|
||||
ALPHA = 4,
|
||||
ALPHANUM = 5
|
||||
|
||||
class HEURISTIC_TEST:
|
||||
CASTED = 1,
|
||||
NEGATIVE = 2,
|
||||
POSITIVE = 3
|
||||
|
||||
class HASH:
|
||||
MYSQL = r'(?i)\A\*[0-9a-f]{40}\Z'
|
||||
MYSQL_OLD = r'(?i)\A(?![0-9]+\Z)[0-9a-f]{16}\Z'
|
||||
|
||||
Reference in New Issue
Block a user