讓 Radare2 支援 Capstone 6

日期: 分類: «逆向工程» 作者: ols3
標籤: , ,

Radare2 目前仍只支援 Capstone 5,但 Capstone git 已進階到 Capstone 6 了,索性動手修改,讓 Radare2 也能吃 Capston 6。

configure - 加入 --with-capstone6 選項和相關邏輯
config-user.mk.acr - 加入 USE_CS6 變數
libr/include/r_userconf.h.acr - 更新版本檢測邏輯
shlr/Makefile - 加入 Capstone 6 支援
libr/config.mk.tail - 加入 Capstone 6 支援
subprojects/Makefile - 更新相依配置
subprojects/capstone-v6.mk - 建立新的配置文件

r2pipe-test

測試:
r2 CrackMe1.exe

結果如下圖:

r2pipe-test