mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-22 17:46:37 +03:00
Bug fix to properly save the match ratio only if numeric (to avoid also tracebacks when match is based on --string or --regexp)
This commit is contained in:
parent
a14e4d9668
commit
8cec75656c
|
@ -61,13 +61,14 @@ def setRegexp():
|
|||
|
||||
def setMatchRatio():
|
||||
condition = (
|
||||
not kb.resumedQueries
|
||||
or ( kb.resumedQueries.has_key(conf.url) and
|
||||
not kb.resumedQueries[conf.url].has_key("Match ratio") )
|
||||
isinstance(conf.matchRatio, (int, float))
|
||||
and ( not kb.resumedQueries
|
||||
or ( kb.resumedQueries.has_key(conf.url) and not
|
||||
kb.resumedQueries[conf.url].has_key("Match ratio") ) )
|
||||
)
|
||||
|
||||
if condition:
|
||||
dataToSessionFile("[%s][None][None][Match ratio][%s]\n" % (conf.url, conf.matchRatio))
|
||||
dataToSessionFile("[%s][%s][%s][Match ratio][%s]\n" % (conf.url, kb.injPlace, safeFormatString(conf.parameters[kb.injPlace]), conf.matchRatio))
|
||||
|
||||
def setInjection():
|
||||
"""
|
||||
|
|
Loading…
Reference in New Issue
Block a user