实例介绍
RayWenderlich 出版的關於在apple 平台上開發除錯及逆向工程的書 ios 12, xcode 10, swift 4.2
Advanced Apple debugging Dedication I would like to thank my wife, Brittany, for all her love and support while i silently wept in the fetal position trying to get this book out the door Derek selander raywenderlich.com Advanced Apple debugging About the author Derek selander is the author of this book his interest with 产 debugging grew when he started exploring how to make(the now somewhat obsolete) Xcode plugins and iOS tweaks on his jailbroken phone, both of which required exploring and augmenting programs with no source available. In his free time, he enjoys pickup soccer, guitar, and playing with his two doggies, Jake squid About the editors Chris Belanger is the editor of this book. Chris is the Editor-in-Chief for raywenderlich com he was a developer for nearly 20 years in various fields from e-health to aerial surveillance to industrial controls. If there are words to wrangle or a paragraph to ponder, hes on the case. When he kicks back, you can usually find Chris with guitar in hand, looking for the nearest beach. Twitter: @crispytwit Matt Galloway is a software engineer with a passion for excellence ey rua He stumbled into iOS programming when it first was a thing, and has never looked back. When not coding he likes to brew his own beer Darren Ferguson is the final pass editor of this book. he is a Software developer with a passion for mobile development for a leading systems integration provider based out of northern virginia in the d.C. metro area. When he's not coding you can find him enjoying life with his wife and daughter trying to travel as much as pe ossible About the Artist cki Wenderlich is the designer and artist of the cover of this book She is ray' s wife and business partner. she is a digital artist who creates illustrations, game art and a lot of other art or design work for the tutorials and books on raywenderlich com when she's not making art, she loves hiking, a good glass of wine and attempting to create the perfect cheese plate raywenderlich.com Advanced Apple debugging Table of contents: Overview Introduction 。00000。0。0000000。0000000。0。。00。0D0000。0份。。00000.。0000。D。 16 Section I: Beginning LLDB Commands onoto r00000。00 21 Chapter 1: Getting Started 0。00。D0000D000。000000。0000D。。 22 Chapter 2: Help& Apropos 36 Chapter 3: Attaching with LLDB 40 000。 Chapter 4: Stopping in Code .48 Chapter 5: Expression 65 Chapter 6: Thread, Frame Stepping Around.79 Chapter 7: Image............. 89 Chapter 8: Watchpoints .105 Chapter 9: Persisting Customizing Commands 115 Chapter 10: Regex Commands 120 Section I: Understanding Assembly 128 Chapter 11: Assembly Register Calling Convention 129 Chapter 12: Assembly memory .148 Chapter 13: Assembly the Stack .164 Section l: low level 185 Chapter 14: Hello, Ptrace 186 raywenderlich.com Advanced Apple debugging Chapter 15: Dynamic Frameworks 196 Chapter 16: Hooking Executing Code with dlopen dlsym 211 Chapter 17: Exploring Method Swizzling Objective-C Frameworks 29 Chapter 18: Hello, Mach-O 252 Chapter 19: Mach-O Fun e。。。。。。。。。。。。。00。。。。。0。。e0。0。。自 273 Chapter 20: Code Signing 。。。。。自自自。。自自自。。。6。自曲自。自自 291 Section v: custom LLDB Commands @0。。。。00。。00。自自。息。0。。。 313 Chapter 21: Hello, Script Bridging 0。。。。。。。。。。。。。。。。。。。。 315 Chapter 22: Debugging Script bridging....325 Chapter 23: Script Bridging Classes Hierarchy. 。。。。。。00。00。00。。0。●。0。@。0。0。。0。自D。。@。。0。0。自。。0。。00。·。@。 340 Chapter 24: Script Bridging with Options Arguments 360 Chapter 25: Script bridging with sbvalue Memory 00。。。。0。。。。 6。0。0D。。6。0。0。 381 Chapter 26: SB EXamples, Improved Lookup. 404 Chapter 27: SB Examples, Resymbolicating a Stripped objc Binary 420 Chapter 28: SB Examples, Malloc Logging..435 Section v: DTrace…459 raywenderlich.com Advanced Apple debugging Chapter 29: Hello, DTrace 460 Chapter 30: Intermediate DTrace.....479 Chapter 31: DTrace vs objc msgSend......496 Appendix A: LLDB Cheatsheet.......523 Appendix B: Python Environment Setup 530 Appendix C: LLDB Bug 534 Conclusion .535 Want to grow your skills?.m537 raywenderlich.com Advanced Apple debugging Table of contents: Extended Introduction 。00000。0。0000000。0000000。0。。00。0D0000。0份。。00000.。0000。D。 16 What you need 17 Who this book is for 17 Book source code and forums 18 Book updates 18 Custom LLDB scripts repo 18 License.….19 Acknowledgments… 20 About the cover 。。。0。。。。。B。。。非。B。。。B。。当非D。。。自。。B。。。。B曲。。。自。非B。。。卷普。。指看当自。看相。看 20 Section I: Beginning LLDB Commands 21 Chapter 1: Getting Started 22 Getting around Rootless 22 Attaching lldb to Xcode .25 Where to go from here? .35 Chapter 2: Help Apropos 36 The help"command 36 The"apropos"command.. 38 Where to go from here? …39 Chapter 3: Attaching with LLDB D。0000000o@o0000。00。000看0@0000 40 Where to go from here? 47 Chapter 4: Stopping in Code 48 Signals 48 LLDB breakpoint syntax 52 Finally. creating breakpoints 56 Where to go from here? ....................64 Chapter 5: Expression eo。0。。。。。。。。。。。。0。。o0。。。。。。。。。.。o00。0。0。。。。0。。 65 Formatting p and raywenderlich.com 8 Advanced Apple debugging Swift vs Objective-C debugging contexts ...70 User defined variables 71 Where to go from here? 78 Chapter 6: Thread, Frame Stepping Around...79 Stack 101 79 Examining the stacks frames 80 Stepping… 83 Examining data in the stack 86 Where to go from here? 88 Chapter 7: Image 。0。@。。。。。。。。0。D。000000@。00。自。。0。000。0。0。。00000。。0。00。0。自。 89 Wait, modules?.m.m. 89 Snooping around 98 Where to go from here? 。b目自自自00。0非自自自看自B自0非D非。自着 103 Chapter 8: Watchpoints .105 Watchpoint best practices .105 Finding a property' s offset 106 What caused the watchpoint.............109 The Xcode GUI watchpoint equivalent 。非B。。。,。日非。自·自非非卷自自。音曲自音自着。0·自 111 Where to go from here? 114 Chapter 9: Persisting Customizing Commands.115 Persisting…how 115 Creating the lldbinit fle 116 Command aliases with arguments 118 Where to go from here? 19 Chapter 10: Regex Commands 120 command Executing complex logic 122 Chaining regex inputs 。。。B。。。非。自非B0D0。BB0春自B春0。B。00B·00春自0些看非自。自。自非非春卷0非。 123 Supplying multiple parameters 126 Where to go from here? 127 raywenderlich.com Advanced Apple debugging Section II: Understanding Assembly.......128 Chapter 11: Assembly Register Calling Convention 129 Assembly 101 130 x86-64 register calling convention 132 Objective-C and registers …134 0。·自自·0。0自自D。。0D。。D。00自B。0。自自自非自0自。0。自0。0.自自非自自着卷自非60。自0 Putting theory to practice 135 Swift and registers 140 RAX, the return register.. 142 Changing around values in registers 144 Where to go from here? 147 Chapter 12: Assembly Memory 鲁@。0。。00@。0。00。。@。0000。。 148 Setting up the Intel-Flavored Assembly Experience.148 The rip register 152 Registers and breaking up the bits..................155 Breaking down the memory…… 158 Endianness. this stuff is reversed 161 Where to go from here? 163 Chapter 13: Assembly the Stack 164 The stack, revisited 164 Stack pointer base pointer registers................165 Stack related opcodes...............168 Observing RBP& RSP in action. 中中日中中中 170 The stack and 7+ parameters 。。B。看。自自。B。0自D。D00自自自0。0着。自自自看。。非 177 The stack and debugging info .180 Stack exploration takeaways 182 Where to go from here? 183 Section l: Low level 。。。D00@0。0。60。00。@。份命自。0@。。●。0。。@。。位。 185 Chapter 14: Hello, Ptrace 。。0。。00D。9。。。。D。。自9。。D。。。。。 186 System calls 186 raywenderlich.com 【实例截图】
【核心代码】
标签:
相关软件
小贴士
感谢您为本站写下的评论,您的评论对其它用户来说具有重要的参考价值,所以请认真填写。
- 类似“顶”、“沙发”之类没有营养的文字,对勤劳贡献的楼主来说是令人沮丧的反馈信息。
- 相信您也不想看到一排文字/表情墙,所以请不要反馈意义不大的重复字符,也请尽量不要纯表情的回复。
- 提问之前请再仔细看一遍楼主的说明,或许是您遗漏了。
- 请勿到处挖坑绊人、招贴广告。既占空间让人厌烦,又没人会搭理,于人于己都无利。
关于好例子网
本站旨在为广大IT学习爱好者提供一个非营利性互相学习交流分享平台。本站所有资源都可以被免费获取学习研究。本站资源来自网友分享,对搜索内容的合法性不具有预见性、识别性、控制性,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,平台无法对用户传输的作品、信息、内容的权属或合法性、安全性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论平台是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二与二十三条之规定,若资源存在侵权或相关问题请联系本站客服人员,点此联系我们。关于更多版权及免责申明参见 版权及免责申明
网友评论
我要评论