mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-22 09:36:35 +03:00
removing blank lines and adding newline at the end of files
This commit is contained in:
parent
6e392b6054
commit
42bca80968
|
@ -108,4 +108,4 @@ db2Privs = {
|
|||
6:"REFAUTH",
|
||||
7:"SELECTAUTH",
|
||||
8:"UPDATEAUTH"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -14,9 +14,9 @@ from plugins.generic.enumeration import Enumeration as GenericEnumeration
|
|||
class Enumeration(GenericEnumeration):
|
||||
def __init__(self):
|
||||
GenericEnumeration.__init__(self)
|
||||
|
||||
|
||||
def getPasswordHashes(self):
|
||||
warnMsg = "on DB2 it is not possible to list password hashes"
|
||||
logger.warn(warnMsg)
|
||||
|
||||
return {}
|
||||
return {}
|
||||
|
|
|
@ -27,12 +27,12 @@ class Fingerprint(GenericFingerprint):
|
|||
|
||||
def versionCheck(self):
|
||||
minor, major = None, None
|
||||
|
||||
|
||||
for version in reversed(xrange(5, 15)):
|
||||
result = inject.checkBooleanExpression("(SELECT COUNT(*) FROM sysibm.sysversions WHERE versionnumber BETWEEN %d000000 AND %d999999)>0" % (version, version))
|
||||
if result:
|
||||
major = version
|
||||
|
||||
|
||||
for version in reversed(xrange(0, 20)):
|
||||
result = inject.checkBooleanExpression("(SELECT COUNT(*) FROM sysibm.sysversions WHERE versionnumber BETWEEN %d%02d0000 AND %d%02d9999)>0" % (major, version, major, version))
|
||||
if result:
|
||||
|
@ -40,7 +40,7 @@ class Fingerprint(GenericFingerprint):
|
|||
version = "%s.%s" % (major, minor)
|
||||
break
|
||||
break
|
||||
|
||||
|
||||
if major and minor:
|
||||
return "%s.%s" % (major, minor)
|
||||
else:
|
||||
|
@ -111,4 +111,4 @@ class Fingerprint(GenericFingerprint):
|
|||
warnMsg = "the back-end DBMS is not %s" % DBMS.DB2
|
||||
logger.warn(warnMsg)
|
||||
|
||||
return False
|
||||
return False
|
||||
|
|
Loading…
Reference in New Issue
Block a user