Merge pull request #1209 from mandiant/williballenthin-patch-3

import-to-ida: use other md5 function
This commit is contained in:
Willi Ballenthin
2022-12-06 13:07:35 +01:00
committed by GitHub
2 changed files with 5 additions and 2 deletions

View File

@@ -48,6 +48,9 @@ ignore_missing_imports = True
[mypy-ida_bytes.*]
ignore_missing_imports = True
[mypy-ida_nalt.*]
ignore_missing_imports = True
[mypy-ida_kernwin.*]
ignore_missing_imports = True

View File

@@ -31,7 +31,7 @@ See the License for the specific language governing permissions and limitations
import json
import logging
import idautils
import ida_nalt
import ida_funcs
import ida_kernwin
@@ -77,7 +77,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 = ida_nalt.retrieve_input_file_md5().lower()
if not a.startswith(b):
logger.error("sample mismatch")
return -2