mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-04 06:50:14 +00:00
update regarding expectingNone in fingerprinting mode to cancel drop down to other techniques available
This commit is contained in:
parent
e32fa9df43
commit
e6c66fa37c
10 changed files with 43 additions and 49 deletions
|
|
@ -81,13 +81,13 @@ class Fingerprint(GenericFingerprint):
|
|||
if conf.direct:
|
||||
result = True
|
||||
else:
|
||||
result = inject.checkBooleanExpression("tempdb_id()=tempdb_id()")
|
||||
result = inject.checkBooleanExpression("tempdb_id()=tempdb_id()", expectingNone=True)
|
||||
|
||||
if result:
|
||||
logMsg = "confirming Sybase"
|
||||
logger.info(logMsg)
|
||||
|
||||
result = inject.checkBooleanExpression("suser_id()=suser_id()")
|
||||
result = inject.checkBooleanExpression("suser_id()=suser_id()", expectingNone=True)
|
||||
|
||||
if not result:
|
||||
warnMsg = "the back-end DBMS is not Sybase"
|
||||
|
|
@ -103,7 +103,7 @@ class Fingerprint(GenericFingerprint):
|
|||
return True
|
||||
|
||||
for version in range(12, 16):
|
||||
result = inject.checkBooleanExpression("@@VERSION_NUMBER/1000=%d" % version)
|
||||
result = inject.checkBooleanExpression("@@VERSION_NUMBER/1000=%d" % version, expectingNone=True)
|
||||
if result:
|
||||
kb.dbmsVersion = ["%d" % version]
|
||||
break
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue