removing blank lines and adding newline at the end of files

This commit is contained in:
Miroslav Stampar 2011-05-06 09:35:53 +00:00
parent 6e392b6054
commit 42bca80968
3 changed files with 7 additions and 7 deletions

View File

@ -108,4 +108,4 @@ db2Privs = {
6:"REFAUTH",
7:"SELECTAUTH",
8:"UPDATEAUTH"
}
}

View File

@ -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 {}

View File

@ -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