mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-02-03 05:04:11 +03:00
Cosmetics
This commit is contained in:
parent
d554460aec
commit
1a3f57e5fe
|
@ -1822,9 +1822,11 @@ def isTechniqueAvailable(technique=None):
|
||||||
|
|
||||||
def initTechnique(technique=None):
|
def initTechnique(technique=None):
|
||||||
data = getTechniqueData(technique)
|
data = getTechniqueData(technique)
|
||||||
|
|
||||||
if data:
|
if data:
|
||||||
kb.pageTemplate = getPageTemplate(data.templatePayload, kb.injection.place)
|
kb.pageTemplate = getPageTemplate(data.templatePayload, kb.injection.place)
|
||||||
kb.matchRatio = data.matchRatio
|
kb.matchRatio = data.matchRatio
|
||||||
else:
|
else:
|
||||||
warnMsg = "there is no injection data available for technique '%s'" % enumValueToNameLookup(PAYLOAD.TECHNIQUE, technique)
|
warnMsg = "there is no injection data available for technique "
|
||||||
|
warnMsg += "'%s'" % enumValueToNameLookup(PAYLOAD.TECHNIQUE, technique)
|
||||||
logger.warn(warnMsg)
|
logger.warn(warnMsg)
|
||||||
|
|
|
@ -87,8 +87,8 @@ class Fingerprint(GenericFingerprint):
|
||||||
infoMsg = "testing Microsoft SQL Server"
|
infoMsg = "testing Microsoft SQL Server"
|
||||||
logger.info(infoMsg)
|
logger.info(infoMsg)
|
||||||
|
|
||||||
# NOTE: SELECT LEN(@@VERSION)=LEN(@@VERSION) FROM DUAL does not work connecting
|
# NOTE: SELECT LEN(@@VERSION)=LEN(@@VERSION) FROM DUAL does not
|
||||||
# directly to the Microsoft SQL Server database
|
# work connecting directly to the Microsoft SQL Server database
|
||||||
if conf.direct:
|
if conf.direct:
|
||||||
result = True
|
result = True
|
||||||
else:
|
else:
|
||||||
|
|
|
@ -183,9 +183,7 @@ class Fingerprint(GenericFingerprint):
|
||||||
if inject.checkBooleanExpression("EXISTS(SELECT %s FROM information_schema.TABLES)" % randInt):
|
if inject.checkBooleanExpression("EXISTS(SELECT %s FROM information_schema.TABLES)" % randInt):
|
||||||
kb.data.has_information_schema = True
|
kb.data.has_information_schema = True
|
||||||
kb.dbmsVersion = [">= 5.0.0"]
|
kb.dbmsVersion = [">= 5.0.0"]
|
||||||
|
|
||||||
setDbms("%s 5" % DBMS.MYSQL)
|
setDbms("%s 5" % DBMS.MYSQL)
|
||||||
|
|
||||||
self.getBanner()
|
self.getBanner()
|
||||||
|
|
||||||
if not conf.extensiveFp:
|
if not conf.extensiveFp:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user