zoukankan
html css js c++ java
debugserver + lldb代替gdb进行动态调试
一、定制lldb(将下述所需的文件全部放于同一个文件夹下【假设为abc】,便于操作)
1.
下载
一个能用的
ldid
(http://joedj.net/ldid)
做后面的签名之用
2.
获取原生
debugserver(建议直接从手机目录中拷贝出来,
/Developer/usr/bin/debugserver,当此手机在Xcode中标记为开发设备后便会出来这些目录
)
3.
瘦身debugserver
命令行
cd到abc文件下
输入
lipo -thin armv7s /abc/fat/debugserver(原路径) -output /abc/thin/debugserver(重新生成的新路径)
以上根据自己手机支持的armv7、armv7s、arm64提取,我这边以iphone5为例,是armv7
4.
签名瘦身之后的
debugserver
将下面的内容另存为一个名为ent.xml的文件
com.apple.springboard.debugapplications
get-task-allow
task_for_pid-allow
run-unsigned-code
命令行中输入:abc$ ldid -Sent.xml thin/debugserver
5.
将定制好的
debugserver
拷贝回iOS
,放在/usr/bin/
debugserver
下,然后在iOS的命令行运行:
chmod +x /usr/bin/debugserver
6.
假如是IOS7下还要另外再加签名:
http://www.iphonedevwiki.net/index.php/Debugging_on_iOS_7
http://www.iphonedevwiki.net/index.php/Debugserver (里面的2、3点)
http://lldb.llvm.org/lldb-gdb.html
参考:http://bbs.iosre.com/forum.php?mod=viewthread&tid=52&extra=page=1&filter=typeid&typeid=11&typeid=11
http://www.kanxue.com/bbs/showthread.php?t=190126
查看全文
相关阅读:
Python字符串转码问题
tcpip详解笔记(21) TCP的路径MTU探测与长肥管道
sync,fsync,fdatasync,fflush
tcpip详解笔记(22) telnet协议
tcpip详解笔记(18)TCP的超时与重传
tcpip详解笔记(16) TCP的交互数据流
Get exception description and stack trace which caused an exception
tcpip详解笔记(20) TCP的Keepalive定时器
[转]应该知道的Linux技巧
How to prettyprint JSON script?
原文地址:https://www.cnblogs.com/cnsec/p/11515781.html
最新文章
代码安全系列(1) Log的注入
xmlrcp学习 python中使用xmlrpc
_stdcall与_cdecl的区别
XAML实例教程系列 命名空间(NameSpace)
分享Silverlight/Windows8/WPF/WP7/HTML5一周学习导读(5月14日5月20日)
推荐几款常用在线代码转换工具
微软发布新版Silverlight 5 版本 5.1.10411.0
分享Silverlight/Windows8/WPF/WP7/HTML5一周学习导读(5月6日5月12日)
XAML实例教程系列 对象和属性
XAML实例教程系列 开篇
热门文章
分享Silverlight/WPF/WindowsPhone/HTML5/Windows 8一周学习导读(5月1日5月5日)
分享Silverlight/Windows8/WPF/WP7/HTML5一周学习导读(5月21日5月26日)
分享Silverlight/Windows8/WPF/WP7/HTML5周学习导读(5月27日6月3日)
mosquitto publish file payload
方向
[转]远程桌面mstsc和带参数的mstsc /console区别
Python list去重
tcpip详解笔记(17) TCP的成块数据流
Python获取字符串的编码
tcpip详解笔记(19) persist定时器
Copyright © 2011-2022 走看看