mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-04 14:55:40 +00:00
Update for an #161 (preventing further skipping of non-heuristic parameters in ignore casted case)
This commit is contained in:
parent
7d0662da23
commit
8a5042b6a4
4 changed files with 15 additions and 7 deletions
|
|
@ -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'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue