diff --git a/lib/core/dicts.py b/lib/core/dicts.py index 3aee461b4..838caa683 100644 --- a/lib/core/dicts.py +++ b/lib/core/dicts.py @@ -108,4 +108,4 @@ db2Privs = { 6:"REFAUTH", 7:"SELECTAUTH", 8:"UPDATEAUTH" - } \ No newline at end of file + } diff --git a/plugins/dbms/db2/enumeration.py b/plugins/dbms/db2/enumeration.py index 0a44f7c04..48a16293a 100644 --- a/plugins/dbms/db2/enumeration.py +++ b/plugins/dbms/db2/enumeration.py @@ -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 {} \ No newline at end of file + return {} diff --git a/plugins/dbms/db2/fingerprint.py b/plugins/dbms/db2/fingerprint.py index 3ad3335fd..f3cebbff0 100644 --- a/plugins/dbms/db2/fingerprint.py +++ b/plugins/dbms/db2/fingerprint.py @@ -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 \ No newline at end of file + return False