From d436ba2da589597b2552f1347be65432179b07c1 Mon Sep 17 00:00:00 2001 From: Bernardo Damele Date: Wed, 6 Apr 2011 08:19:56 +0000 Subject: [PATCH] Minor "fix" when reading hashes from a local sqlite3 (result of --replicate) and there is an int as value --- lib/utils/hash.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/utils/hash.py b/lib/utils/hash.py index d4f4d923e..6ce86c498 100644 --- a/lib/utils/hash.py +++ b/lib/utils/hash.py @@ -303,9 +303,9 @@ def hashRecognition(value): continue elif Backend.getIdentifiedDbms() == DBMS.MYSQL and regex == HASH.ORACLE_OLD: continue - elif regex == HASH.CRYPT_GENERIC and getCompiledRegex(GENERAL_IP_ADDRESS_REGEX).match(value): + elif regex == HASH.CRYPT_GENERIC and getCompiledRegex(GENERAL_IP_ADDRESS_REGEX).match(str(value)): continue - elif getCompiledRegex(regex).match(value): + elif getCompiledRegex(regex).match(str(value)): retVal = regex break