more restrictions on crypt(3) hash recognition to prevent false positives

This commit is contained in:
Miroslav Stampar 2011-04-13 14:40:23 +00:00
parent d06ae9cd47
commit bf55b0b77a

View File

@ -303,8 +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):
continue
elif regex == HASH.CRYPT_GENERIC:
if any([getCompiledRegex(GENERAL_IP_ADDRESS_REGEX).match(value), value.lower() == value, value.upper() == value, value.isdigit()]):
continue
elif getCompiledRegex(regex).match(value):
retVal = regex
break