mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-26 03:23:48 +03:00
update regarding comparison engine
This commit is contained in:
parent
8df7c88174
commit
71543092b7
|
@ -1005,6 +1005,7 @@ def __setConfAttributes():
|
||||||
conf.dbmsConnector = None
|
conf.dbmsConnector = None
|
||||||
conf.dbmsHandler = None
|
conf.dbmsHandler = None
|
||||||
conf.dumpPath = None
|
conf.dumpPath = None
|
||||||
|
conf.errorComparison = True
|
||||||
conf.minMatchBlock = 8
|
conf.minMatchBlock = 8
|
||||||
conf.dynMarkLength = 32
|
conf.dynMarkLength = 32
|
||||||
conf.httpHeaders = []
|
conf.httpHeaders = []
|
||||||
|
|
|
@ -100,6 +100,10 @@ def comparison(page, headers=None, getSeqMatcher=False, pageLength=None):
|
||||||
#elif conf.md5hash is not None:
|
#elif conf.md5hash is not None:
|
||||||
# return conf.md5hash == md5hash(page)
|
# return conf.md5hash == md5hash(page)
|
||||||
|
|
||||||
|
# In case of an DBMS error page return False
|
||||||
|
elif conf.errorComparison and kb.lastErrorPage and kb.lastErrorPage[0]==kb.lastRequestUID:
|
||||||
|
return False
|
||||||
|
|
||||||
# If the url is not stable it returns sequence matcher between the
|
# If the url is not stable it returns sequence matcher between the
|
||||||
# first untouched HTTP response page content and this content
|
# first untouched HTTP response page content and this content
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user