This commit is contained in:
William Ballenthin
2020-07-07 13:16:25 -06:00
parent a9b447dcbe
commit 4fa5bf1d93

View File

@@ -66,7 +66,7 @@ def main():
#
# see: https://github.com/idapython/bin/issues/11
a = doc["meta"]["sample"]["md5"].lower()
b = idautils.GetInputFileMD5().decode("ascii").lower().rstrip('\x00')
b = idautils.GetInputFileMD5().decode("ascii").lower().rstrip("\x00")
if not a.startswith(b):
logger.error("sample mismatch")
return -2