首页
随机
最近更改
特殊页面
社群首页
参数设置
关于WHY42
免责声明
WHY42
搜索
用户菜单
登录
欢迎来到Riguz的小站!这是一个私人wiki,用来记录一些我的笔记。
查看“︁LLDB debug app”︁的源代码
←
LLDB debug app
因为以下原因,您没有权限编辑该页面:
您请求的操作仅限属于该用户组的用户执行:
用户
您可以查看和复制此页面的源代码。
== Disable SIP == <syntaxhighlight lang="bash"> # in recovery mode, restart and hold cmd + R csrutil disable </syntaxhighlight> == Attach process == <syntaxhighlight lang="bash"> # sudo lldb -p $(pgrep WeChat) sudo lldb -p $(pgrep cryptowl) Password: (lldb) process attach --pid 4673 Process 4673 stopped </syntaxhighlight> == set break point == <syntaxhighlight lang="bash"> (lldb) br set -n sqlite3_key Breakpoint 1: 2 locations. (lldb) br set -n sqlite3_key_v2 Breakpoint 2: 2 locations. (lldb) c Process 4673 resuming </syntaxhighlight> == Break point == <syntaxhighlight lang="bash"> (lldb) c Process 4673 resuming Process 4673 stopped * thread #22, name = 'DartWorker', stop reason = breakpoint 2.1 frame #0: 0x000000010110dc57 SQLCipher`sqlite3_key_v2(db=0x00007fc61e13d1b0, zDb=0x0000000000000000, pKey=0x00007fc61e4947d0, nKey=67) at sqlite3.c:107795:70 107792 } 107793 107794 SQLITE_API int sqlite3_key_v2(sqlite3 *db, const char *zDb, const void *pKey, int nKey) { -> 107795 sqlcipher_log(SQLCIPHER_LOG_DEBUG, "sqlite3_key_v2: db=%p zDb=%s", db, zDb); 107796 /* attach key if db and pKey are not null and nKey is > 0 */ 107797 if(db && pKey && nKey) { 107798 int db_index = sqlcipher_find_db_index(db, zDb); Target 0: (cryptowl) stopped. </syntaxhighlight> read the key: <syntaxhighlight lang="bash"> (lldb) x/s 0x00007fc61e4947d0 0x7fc61e4947d0: "x'86fd7b5c2b51ecc7c204c05eae1ec58fc8a78c165cf9e39cc5ee448317c3a8db'" </syntaxhighlight>
返回
LLDB debug app
。