Minor "fix" when reading hashes from a local sqlite3 (result of --replicate) and there is an int as value

This commit is contained in:
Bernardo Damele 2011-04-06 08:19:56 +00:00
parent 81034140c0
commit d436ba2da5

View File

@ -303,9 +303,9 @@ def hashRecognition(value):
continue continue
elif Backend.getIdentifiedDbms() == DBMS.MYSQL and regex == HASH.ORACLE_OLD: elif Backend.getIdentifiedDbms() == DBMS.MYSQL and regex == HASH.ORACLE_OLD:
continue 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 continue
elif getCompiledRegex(regex).match(value): elif getCompiledRegex(regex).match(str(value)):
retVal = regex retVal = regex
break break