mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-29 04:53:48 +03:00
Major enhancement in comparison algorithm
This commit is contained in:
parent
954417072b
commit
2efee058ea
|
@ -79,11 +79,11 @@ def comparison(page, headers=None, getSeqMatcher=False):
|
||||||
# If the url is stable and we did not set yet the match ratio and the
|
# If the url is stable and we did not set yet the match ratio and the
|
||||||
# current injected value changes the url page content
|
# current injected value changes the url page content
|
||||||
if MATCH_RATIO == None:
|
if MATCH_RATIO == None:
|
||||||
if conf.md5hash != None and ratio != 1:
|
if conf.md5hash != None and ratio < 1 and ratio > 0.6:
|
||||||
logger.debug("Setting match ratio to %.3f" % ratio)
|
logger.debug("setting match ratio to %.3f" % ratio)
|
||||||
MATCH_RATIO = ratio
|
MATCH_RATIO = ratio
|
||||||
elif conf.md5hash == None:
|
elif conf.md5hash == None or ( conf.md5hash != None and ratio < 0.6 ):
|
||||||
logger.debug("Setting match ratio to default value 0.900")
|
logger.debug("setting match ratio to default value 0.900")
|
||||||
MATCH_RATIO = 0.900
|
MATCH_RATIO = 0.900
|
||||||
|
|
||||||
# If it has been requested to return the ratio and not a comparison
|
# If it has been requested to return the ratio and not a comparison
|
||||||
|
|
Loading…
Reference in New Issue
Block a user