print(simgr.errored)
if len(simgr.found) == 0 :
print("no is found")
else :
flag = simgr.found[0].posix.dumps(0).strip(b'\n')
执行结果是:
[<State errored with "IR decoding error at 0x7ffefead. You can hook this instruction with a python replacement using project.hook(0x7ffefead, your_function, length=length_of_instruction).">]
no is found
意思是有问题,于是我加了一个hook,就是图中注释的部分,只打印一行字符。再次执行,结果变为:
hook
[<State errored with "Empty IRSB passed to HeavyVEXMixin.">]
no is found
请问,我该如何才能修复上面的错误提示呢?
如果我修改auto_load_libs=True,那么结果为:
WARNING | 2021-04-04 11:52:07,161 | angr.procedures.win32.dynamic_loading | GetProcAddress: forwarding failed for SetDefaultDllDirectories from kernel32.dll
[<State errored with "Can't handle callback function in FlsAlloc">]
no is found