mirror of
https://github.com/cemu-project/idapython.git
synced 2024-11-30 21:14:20 +01:00
idautils.py: Replaced GetInputFileMD5 with a call to the IDC version
This commit is contained in:
parent
c8f6c02147
commit
919b3d9987
@ -12,6 +12,7 @@
|
|||||||
idautils.py - High level utility functions for IDA
|
idautils.py - High level utility functions for IDA
|
||||||
"""
|
"""
|
||||||
import idaapi
|
import idaapi
|
||||||
|
import idc
|
||||||
|
|
||||||
def refs(ea, funcfirst, funcnext):
|
def refs(ea, funcfirst, funcnext):
|
||||||
"""
|
"""
|
||||||
@ -341,12 +342,4 @@ def GetInputFileMD5():
|
|||||||
|
|
||||||
@return: MD5 string or None on error
|
@return: MD5 string or None on error
|
||||||
"""
|
"""
|
||||||
ua=idaapi.uchar_array(16)
|
return idc.GetInputMD5()
|
||||||
if idaapi.retrieve_input_file_md5(ua.cast()):
|
|
||||||
md5str=""
|
|
||||||
for i in range(16):
|
|
||||||
md5str += "%02x" % ua[i]
|
|
||||||
return md5str
|
|
||||||
else:
|
|
||||||
return None
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user