mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-04 06:50:14 +00:00
added one new quick check for multiple target(s) mode
This commit is contained in:
parent
8e1927fe31
commit
8625494ff2
4 changed files with 47 additions and 7 deletions
|
|
@ -1963,3 +1963,8 @@ def showHttpErrorCodes():
|
|||
if code in httplib.responses else '?', count)\
|
||||
for code, count in kb.httpErrorCodes.items())
|
||||
logger.warn(warnMsg)
|
||||
|
||||
def getComparePageRatio(firstPage, secondPage):
|
||||
conf.seqMatcher.set_seq1(firstPage)
|
||||
conf.seqMatcher.set_seq2(secondPage)
|
||||
return conf.seqMatcher.quick_ratio()
|
||||
|
|
|
|||
|
|
@ -25,6 +25,10 @@ SITE = "http://sqlmap.sourceforge.net"
|
|||
DIFF_TOLERANCE = 0.05
|
||||
CONSTANT_RATIO = 0.9
|
||||
|
||||
# lower and upper values for match ratio in case of stable page
|
||||
LOWER_RATIO_BOUND = 0.02
|
||||
UPPER_RATIO_BOUND = 0.98
|
||||
|
||||
# sqlmap logger
|
||||
logging.addLevelName(9, "PAYLOAD")
|
||||
logging.addLevelName(8, "TRAFFIC OUT")
|
||||
|
|
@ -67,10 +71,6 @@ INFERENCE_BLANK_BREAK = 10
|
|||
# string used for representation of unknown dbms version
|
||||
UNKNOWN_DBMS_VERSION = "Unknown"
|
||||
|
||||
# lower and upper values for match ratio in case of stable page
|
||||
LOWER_RATIO_BOUND = 0.02
|
||||
UPPER_RATIO_BOUND = 0.98
|
||||
|
||||
# dynamicity mark length used in dynamicity removal engine
|
||||
DYNAMICITY_MARK_LENGTH = 32
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue