# LidaDbg **Repository Path**: jskew/LidaDbg ## Basic Information - **Project Name**: LidaDbg - **Description**: 利达调试器-The revolution of assembly level debugger based on LLDB & IDA. - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 7 - **Created**: 2021-03-25 - **Last Updated**: 2021-03-25 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README LidaDbg #### Description LidaDbg,The revolution of assembly level debugger based on LLDB & IDA. LidaDbg前端以IDA为交互GUI,后端以LLDB为调试引擎; * 支持Android、iOS源码/汇编级调试; * 将LLDB命令行深度整合进IDA Scripting模块,方便积累调试脚本; * 将LLDB调试上下文深度整合进IDA反汇编窗口,方便汇编级可视化调试; * 告别重复输入调试命令,提高调试效率; * IDASDK版本为7.0,LLDB版本为7.0; * LidaDbg是GikDbg的升级和延续; Follow us for update or bug report: |Platform|Account|QRCode| |-|-|-| |Email|971159199@qq.com|.| |公众号|刘柏江|![gongzhonghao](https://gitee.com/geekneo/PantaDocumentRes/raw/master/wemedia/gongzhonghao.jpeg)| |百家号|刘柏江VM|![baijiahao](https://gitee.com/geekneo/PantaDocumentRes/raw/master/wemedia/baijiahao.jpeg)| |微博|刘柏江VM|![weibo](https://gitee.com/geekneo/PantaDocumentRes/raw/master/wemedia/weibo.jpeg)| |头条|刘柏江|![toutiao](https://gitee.com/geekneo/PantaDocumentRes/raw/master/wemedia/toutiao.jpeg)| |码云|https://gitee.com/geekneo/|.| #### Installation Uninstallation 下述ida_root是IDA的根目录, lidadbg_root是本仓库根目录, ip是iPhone手机网络地址。 ``` Windows lidadbg_root/Windows/magicdbg/python3/python.exe lidadbg_root/Windows/setup.py ida_root install lidadbg_root/Windows/magicdbg/python3/python.exe lidadbg_root/Windows/setup.py ida_root uninstall ``` ``` macOS lidadbg_root/macOS/install ida_root lidadbg_root/macOS/enable ida_root lidadbg_root/macOS/disable ida_root lidadbg_root/macOS/uninstall ida_root ``` ``` Android adb push lidadbg_root/Android/LidaDbgServer-? /data/local/tmp/ adb shell chmod -R 755 /data/local/tmp/LidaDbgServer-?/ /data/local/tmp/LidaDbgServer-?/lidadbg-server ``` ``` iOS scp lidadbg-server/iOS/LidaDbgServer.deb root@ip:/tmp/ ssh root@ip dpkg -i --force-overwrite /tmp/LidaDbgServer.deb ``` #### Version History 2020.02.10-v1.0.1: * 修复64位Android设备Attach列表信息错位的问题; * 右键菜单添加Set baseaddr以方便手动设置当前模块基址; 2019.12.31-v1.0.0: * 修复liblldb.dll硬编码的python依赖库; * 修复alidadbg.dll依赖的dll未安装至ida的问题; 2019.12.29-v1.0.0: * LidaDbg发布初始版本; #### Q&A ``` Q: LidaDbgServer.deb支持的iOS版本? A: 内置的debugserver支持iOS >= 10.0,如果无法运行,请替换成自己的debugserver; ``` ``` Q: 为什么LidaDbg快捷键不起作用? A: 为了最小化影响IDA,所有的快捷键必须在LidaDbg是焦点窗口时才触发; 比如F2设置断点的正确顺序:先点击汇编窗口的地址,再点击LidaDbg窗口,再按F2; ``` ``` Q: 为什么首次使用时Attaching要很久? A: 首次使用LidaDbg时很多模块lldb还未传回本地生成副本,所以会花费更多时间初始化调试模块; ``` ``` Q: 输入Android设备IP连接调试服务出现error: Device "?.?.?.?" not found该如何处理? A: 1.将lidadbg_root/?/magicdbg/bin/LLDBRPC加入防火墙白名单; 2.确保adb devices只有一个设备时执行adb forward tcp:30333 tcp:30333转发调试服务端口至本机; 3.使用快捷键C再次连接调试服务端时IP地址填入localhost; ``` ``` Q: 根据Installation步骤装好LidaDbg之后该如何开始调试? A: LidaDbg的调试上下文是根据当前打开的IDB/I64文件确定的,因此在开始使用LidaDbg之前,你应该用IDA 打开一个MachO/ELF文件; 待IDA分析完毕之后通过ALT+Z快捷键打开LidaDbg主界面,然后就可以通过界面显示的快捷键操作调试器了; 比如通过C快捷键打开连接配置、通过A快捷键打开Attach窗口; ``` #### Known Issue * Mac版本不支持IDAPython、LLDBPython; #### Screenshot ![layout](https://gitee.com/geekneo/LidaDbg/raw/master/Screenshot/layout.PNG) ![about](https://gitee.com/geekneo/LidaDbg/raw/master/Screenshot/about.PNG) ![main](https://gitee.com/geekneo/LidaDbg/raw/master/Screenshot/main.PNG) ![config](https://gitee.com/geekneo/LidaDbg/raw/master/Screenshot/config.PNG) ![attach](https://gitee.com/geekneo/LidaDbg/raw/master/Screenshot/attach.PNG) ![module](https://gitee.com/geekneo/LidaDbg/raw/master/Screenshot/module.PNG) ![thread](https://gitee.com/geekneo/LidaDbg/raw/master/Screenshot/thread.PNG) ![frame](https://gitee.com/geekneo/LidaDbg/raw/master/Screenshot/frame.PNG) ![patch](https://gitee.com/geekneo/LidaDbg/raw/master/Screenshot/patch.PNG)