<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="zh-Hans-CN">
	<id>https://wiki.riguz.com/index.php?action=history&amp;feed=atom&amp;title=LLDB_debug_app</id>
	<title>LLDB debug app - 版本历史</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.riguz.com/index.php?action=history&amp;feed=atom&amp;title=LLDB_debug_app"/>
	<link rel="alternate" type="text/html" href="https://wiki.riguz.com/index.php?title=LLDB_debug_app&amp;action=history"/>
	<updated>2026-06-03T00:51:15Z</updated>
	<subtitle>本wiki上该页面的版本历史</subtitle>
	<generator>MediaWiki 1.42.3</generator>
	<entry>
		<id>https://wiki.riguz.com/index.php?title=LLDB_debug_app&amp;diff=4798&amp;oldid=prev</id>
		<title>Riguz：​/* Break point */</title>
		<link rel="alternate" type="text/html" href="https://wiki.riguz.com/index.php?title=LLDB_debug_app&amp;diff=4798&amp;oldid=prev"/>
		<updated>2025-03-20T15:41:29Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Break point&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;zh-Hans-CN&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;←上一版本&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;2025年3月20日 (四) 15:41的版本&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l49&quot;&gt;第49行：&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;第49行：&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;0x7fc61e4947d0: &amp;quot;x&amp;#039;86fd7b5c2b51ecc7c204c05eae1ec58fc8a78c165cf9e39cc5ee448317c3a8db&amp;#039;&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;0x7fc61e4947d0: &amp;quot;x&amp;#039;86fd7b5c2b51ecc7c204c05eae1ec58fc8a78c165cf9e39cc5ee448317c3a8db&amp;#039;&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;ref&amp;gt;https://xferris.cn/dao-chu-wei-xin-bei-fen-de-mac/&amp;lt;/ref&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Riguz</name></author>
	</entry>
	<entry>
		<id>https://wiki.riguz.com/index.php?title=LLDB_debug_app&amp;diff=4797&amp;oldid=prev</id>
		<title>Riguz：​创建页面，内容为“== Disable SIP == &lt;syntaxhighlight lang=&quot;bash&quot;&gt; # in recovery mode, restart and hold cmd + R csrutil disable &lt;/syntaxhighlight&gt;  == Attach process ==  &lt;syntaxhighlight lang=&quot;bash&quot;&gt; # sudo lldb -p $(pgrep WeChat) sudo lldb -p $(pgrep cryptowl) Password: (lldb) process attach --pid 4673 Process 4673 stopped &lt;/syntaxhighlight&gt;  == set break point == &lt;syntaxhighlight lang=&quot;bash&quot;&gt; (lldb) br set -n sqlite3_key Breakpoint 1: 2 locations. (lldb) br set -n sqlite3_key_v…”</title>
		<link rel="alternate" type="text/html" href="https://wiki.riguz.com/index.php?title=LLDB_debug_app&amp;diff=4797&amp;oldid=prev"/>
		<updated>2025-03-20T15:24:58Z</updated>

		<summary type="html">&lt;p&gt;创建页面，内容为“== Disable SIP == &amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt; # in recovery mode, restart and hold cmd + R csrutil disable &amp;lt;/syntaxhighlight&amp;gt;  == Attach process ==  &amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt; # sudo lldb -p $(pgrep WeChat) sudo lldb -p $(pgrep cryptowl) Password: (lldb) process attach --pid 4673 Process 4673 stopped &amp;lt;/syntaxhighlight&amp;gt;  == set break point == &amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt; (lldb) br set -n sqlite3_key Breakpoint 1: 2 locations. (lldb) br set -n sqlite3_key_v…”&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新页面&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Disable SIP ==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
# in recovery mode, restart and hold cmd + R&lt;br /&gt;
csrutil disable&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Attach process ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
# sudo lldb -p $(pgrep WeChat)&lt;br /&gt;
sudo lldb -p $(pgrep cryptowl)&lt;br /&gt;
Password:&lt;br /&gt;
(lldb) process attach --pid 4673&lt;br /&gt;
Process 4673 stopped&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== set break point ==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
(lldb) br set -n sqlite3_key&lt;br /&gt;
Breakpoint 1: 2 locations.&lt;br /&gt;
(lldb) br set -n sqlite3_key_v2&lt;br /&gt;
Breakpoint 2: 2 locations.&lt;br /&gt;
(lldb) c&lt;br /&gt;
Process 4673 resuming&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Break point ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
(lldb) c&lt;br /&gt;
Process 4673 resuming&lt;br /&gt;
Process 4673 stopped&lt;br /&gt;
* thread #22, name = &amp;#039;DartWorker&amp;#039;, stop reason = breakpoint 2.1&lt;br /&gt;
    frame #0: 0x000000010110dc57 SQLCipher`sqlite3_key_v2(db=0x00007fc61e13d1b0, zDb=0x0000000000000000, pKey=0x00007fc61e4947d0, nKey=67) at sqlite3.c:107795:70&lt;br /&gt;
   107792	}&lt;br /&gt;
   107793&lt;br /&gt;
   107794	SQLITE_API int sqlite3_key_v2(sqlite3 *db, const char *zDb, const void *pKey, int nKey) {&lt;br /&gt;
-&amp;gt; 107795	  sqlcipher_log(SQLCIPHER_LOG_DEBUG, &amp;quot;sqlite3_key_v2: db=%p zDb=%s&amp;quot;, db, zDb);&lt;br /&gt;
   107796	  /* attach key if db and pKey are not null and nKey is &amp;gt; 0 */&lt;br /&gt;
   107797	  if(db &amp;amp;&amp;amp; pKey &amp;amp;&amp;amp; nKey) {&lt;br /&gt;
   107798	    int db_index = sqlcipher_find_db_index(db, zDb);&lt;br /&gt;
Target 0: (cryptowl) stopped.&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
read the key:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
(lldb) x/s 0x00007fc61e4947d0&lt;br /&gt;
0x7fc61e4947d0: &amp;quot;x&amp;#039;86fd7b5c2b51ecc7c204c05eae1ec58fc8a78c165cf9e39cc5ee448317c3a8db&amp;#039;&amp;quot;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>Riguz</name></author>
	</entry>
</feed>