From fdef6726cf5235fc37611e0d24ec3b1f58d0ebfc Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Wed, 6 Apr 2011 08:30:50 +0000 Subject: [PATCH] minor update --- lib/utils/hash.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/utils/hash.py b/lib/utils/hash.py index 6ce86c498..5e1cee969 100644 --- a/lib/utils/hash.py +++ b/lib/utils/hash.py @@ -296,16 +296,16 @@ def attackDumpedTable(): def hashRecognition(value): retVal = None - if value: + if isinstance(value, basestring): for name, regex in getPublicTypeMembers(HASH): # Hashes for Oracle and old MySQL look the same hence these checks if Backend.getIdentifiedDbms() == DBMS.ORACLE and regex == HASH.MYSQL_OLD: continue elif Backend.getIdentifiedDbms() == DBMS.MYSQL and regex == HASH.ORACLE_OLD: continue - elif regex == HASH.CRYPT_GENERIC and getCompiledRegex(GENERAL_IP_ADDRESS_REGEX).match(str(value)): + elif regex == HASH.CRYPT_GENERIC and getCompiledRegex(GENERAL_IP_ADDRESS_REGEX).match(value): continue - elif getCompiledRegex(regex).match(str(value)): + elif getCompiledRegex(regex).match(value): retVal = regex break