window: %appdata%/Hex-Rays/IDA Pro/idapythonrc.py
import idaapi
import sys
import importlib #only python3.4+
print("hello,idapython!")
sys.path.append(r"F:/project/python/idapro/ida-script-test/") # project dir
import arm_unicorn # module name
importlib.reload(arm_unicorn)
执行两次,是因为,需要先解除上次加载的代码
size=ida_nalt.retrieve_input_file_size()
so_bin=idc.get_bytes(0,size)
refs:编写IDApython的PY插件
声明:转载请注明出处,原文地址:shlu's note