mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-07-31 02:20:10 +03:00
Improve FI heuristic logic
This commit is contained in:
parent
8b6603a9b6
commit
9e19c28a35
|
@ -1005,11 +1005,10 @@ def heuristicCheckSqlInjection(place, parameter):
|
||||||
logger.info(infoMsg)
|
logger.info(infoMsg)
|
||||||
|
|
||||||
for match in re.finditer(FI_ERROR_REGEX, page or ""):
|
for match in re.finditer(FI_ERROR_REGEX, page or ""):
|
||||||
if randStr1.lower() in match.group(0).lower():
|
infoMsg = "heuristic (FI) test shows that %s parameter " % paramType
|
||||||
infoMsg = "heuristic (FI) test shows that %s parameter " % paramType
|
infoMsg += "'%s' might be vulnerable to file inclusion attacks" % parameter
|
||||||
infoMsg += "'%s' might be vulnerable to file inclusion attacks" % parameter
|
logger.info(infoMsg)
|
||||||
logger.info(infoMsg)
|
break
|
||||||
break
|
|
||||||
|
|
||||||
kb.heuristicMode = False
|
kb.heuristicMode = False
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user