OSX装angr

写在前面

纯粹备忘,OSX装angr老出问题,记得用python3的virtualenv

虚拟环境里装unicorn

1
CC=/usr/local/bin/gcc-8 UNICORN_QEMU_FLAGS="--python=/path/to/python2" pip install unicorn  # 填系统的python2可以

修复angr问题

1
2
3
4
5
6
PYVEX=`python -c 'import pyvex; print(pyvex.__path__[0])'`
UNICORN=`python -c 'import unicorn; print(unicorn.__path__[0])'`
ANGR=`python -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

这里因为在python3的virtualenv里,直接写python就行

文章目录
  1. 1. 写在前面
  2. 2. 虚拟环境里装unicorn
  3. 3. 修复angr问题
|