angr.state_plugins.unicorn_engine | failed loading “angr_native.dylib“, unicorn support disabled

在mac os上使用angr反汇编二进制时,出现了一个警告

WARNING | 2022-12-22 17:56:17,335 | angr.state_plugins.unicorn_engine | failed loading “angr_native.dylib”, unicorn support disabled

官方安装教程中给了解决办法:

PYVEX=`python3 -c 'import pyvex; print(pyvex.__path__[0])'`
UNICORN=`python3 -c 'import unicorn; print(unicorn.__path__[0])'`
ANGR=`python3 -c 'import angr; print(angr.__path__[0])'`

install_name_tool -change libunicorn.1.dylib "$UNICORN"/lib/libunicorn.dylib "$ANGR"/lib/angr_native.dylib
install_name_tool -change libpyvex.dylib "$PYVEX"/lib/libpyvex.dylib "$ANGR"/lib/angr_native.dylib

官方文档

你可能感兴趣的:(angr,macos,python,angr)