mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-25 19:13:48 +03:00
another name change
This commit is contained in:
parent
06f00cf8c1
commit
5ebd5d935c
|
@ -22,7 +22,7 @@ DESCRIPTION = "automatic SQL injection and database takeover tool"
|
|||
SITE = "http://sqlmap.sourceforge.net"
|
||||
|
||||
# minimum distance of ratio from conf.matchRatio to result in True
|
||||
TOLERANCE = 0.05
|
||||
DIFF_TOLERANCE = 0.05
|
||||
|
||||
# sqlmap logger
|
||||
logging.addLevelName(9, "PAYLOAD")
|
||||
|
|
|
@ -15,7 +15,7 @@ from lib.core.common import wasLastRequestError
|
|||
from lib.core.data import conf
|
||||
from lib.core.data import kb
|
||||
from lib.core.data import logger
|
||||
from lib.core.settings import TOLERANCE
|
||||
from lib.core.settings import DIFF_TOLERANCE
|
||||
|
||||
def comparison(page, headers=None, getSeqMatcher=False, pageLength=None):
|
||||
if page is None and pageLength is None:
|
||||
|
@ -116,4 +116,4 @@ def comparison(page, headers=None, getSeqMatcher=False, pageLength=None):
|
|||
# If the url is not stable it returns sequence matcher between the
|
||||
# first untouched HTTP response page content and this content
|
||||
else:
|
||||
return (ratio - conf.matchRatio) > TOLERANCE
|
||||
return (ratio - conf.matchRatio) > DIFF_TOLERANCE
|
||||
|
|
Loading…
Reference in New Issue
Block a user