Skip to content

Commit

Permalink
Site updated: 2024-01-11 16:01:33
Browse files Browse the repository at this point in the history
  • Loading branch information
ErodedElk committed Jan 11, 2024
1 parent 9301a88 commit 3b07625
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions 2024/01/11/QWB2024-Re-Part-Record/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
}</style><style>:root {
--dark-background: url('/img/bg.jpg');
--light-background: url('/img/91110244_p0.jpg');
}</style><meta name="generator" content="Hexo 6.3.0"></head><body><div class="loading" style="opacity: 0;"><div class="loadingBar left"></div><div class="loadingBar right"></div></div><main><header class="closed"><div class="navBtn"><i class="navBtnIcon"><span class="navBtnIconBar"></span><span class="navBtnIconBar"></span><span class="navBtnIconBar"></span></i></div><nav><div class="navItem" id="search-header"><span class="navItemTitle"><input autocomplete="off" autocorrect="off" autocapitalize="none" placeholder="Search" spellcheck="false" maxlength="50" type="text" id="search-input"></span></div><div class="navItem" id="search-holder"></div><div class="search-popup"><div id="search-result"></div></div><ol class="navContent"><li class="navItem"><a class="navBlock" href="/"><span class="navItemTitle">Home</span></a></li><li class="navItem" matchdata="categories,tags"><a class="navBlock" href="/archives/"><span class="navItemTitle">Archives</span></a></li><li class="navItem"><a class="navBlock" href="/about/"><span class="navItemTitle">About</span></a></li><li class="navItem"><a class="navBlock" href="/links/"><span class="navItemTitle">Links</span></a></li></ol></nav></header><article><div id="post-bg"><div id="post-title"><h1>QWB2024-Re Part Record</h1><div id="post-info"><span>First Post: <div class="control"><time datetime="2024-01-11T10:28:21.000Z" id="date"> 2024-01-11</time></div></span><br><span>Last Update: <div class="control"><time datetime="2024-01-11T07:56:42.798Z" id="updated"> 2024-01-11</time></div></span></div></div><hr><div id="post-content"><h1 id="unname"><a href="#unname" class="headerlink" title="unname"></a>unname</h1><p>本身 apk 进去看见导入了一个动态库,直接解压就能找到对应的文件了。细节这里不过多赘述,主要是概述一下调试部分。</p>
}</style><meta name="generator" content="Hexo 6.3.0"></head><body><div class="loading" style="opacity: 0;"><div class="loadingBar left"></div><div class="loadingBar right"></div></div><main><header class="closed"><div class="navBtn"><i class="navBtnIcon"><span class="navBtnIconBar"></span><span class="navBtnIconBar"></span><span class="navBtnIconBar"></span></i></div><nav><div class="navItem" id="search-header"><span class="navItemTitle"><input autocomplete="off" autocorrect="off" autocapitalize="none" placeholder="Search" spellcheck="false" maxlength="50" type="text" id="search-input"></span></div><div class="navItem" id="search-holder"></div><div class="search-popup"><div id="search-result"></div></div><ol class="navContent"><li class="navItem"><a class="navBlock" href="/"><span class="navItemTitle">Home</span></a></li><li class="navItem" matchdata="categories,tags"><a class="navBlock" href="/archives/"><span class="navItemTitle">Archives</span></a></li><li class="navItem"><a class="navBlock" href="/about/"><span class="navItemTitle">About</span></a></li><li class="navItem"><a class="navBlock" href="/links/"><span class="navItemTitle">Links</span></a></li></ol></nav></header><article><div id="post-bg"><div id="post-title"><h1>QWB2024-Re Part Record</h1><div id="post-info"><span>First Post: <div class="control"><time datetime="2024-01-11T10:28:21.000Z" id="date"> 2024-01-11</time></div></span><br><span>Last Update: <div class="control"><time datetime="2024-01-11T08:01:08.832Z" id="updated"> 2024-01-11</time></div></span></div></div><hr><div id="post-content"><h1 id="unname"><a href="#unname" class="headerlink" title="unname"></a>unname</h1><p>本身 apk 进去看见导入了一个动态库,直接解压就能找到对应的文件了。细节这里不过多赘述,主要是概述一下调试部分。</p>
<p>如果直接用 IDA 去附加调试这个应用会发现找不到对应的 so,查了一下资料发现,在 <code>AndroidManifest.xml</code> 下配置了一个 <code>android:extractNativeLibs=&quot;false&quot;</code> ,这会导致导入动态库的时候直接从 apk 进行加载,所以 IDA 附加以后找不到对应的模块,只能看到 apk 本身。</p>
<p>所以要先用 apktool 解包,然后把 <code>AndroidManifest.xml</code> 的配置稍微改一下再重新打包:</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><code class="hljs bash">apktool d app-release.apk -o app-release<br>apktool b app-release -o app-debug.apk<br></code></pre></td></tr></table></figure>
Expand Down Expand Up @@ -56,7 +56,7 @@
<blockquote>
<p>不过这中间遇到了点奇怪的事情,如果我先下了断点然后跑飞程序,应用会不停的报出一些异常,最终程序会退出;但如果我直接跑飞,然后再下断点,似乎又没问题了,诡异……<br>不过总之,最后成功附加上去了。<br>不过还有一个地方要警惕的是,我的设备在被中断以后会主动报未响应,熄屏会导致进程被回收,所以过程中需要注意进程开启的状态。</p>
</blockquote>
<p>![[libnative.png]]</p>
<p class='item-img' data-src='/./images/QWB2024-Re-Part-Record/libnative.png'><img src="/./images/QWB2024-Re-Part-Record/libnative.png"></p>
<p>然后就是一边调试一份分析算法了,这步就不细写了,基本上就是读代码调试然后确定入参出参了,所以笔者也没进一步复现了。</p>
<h2 id="额外"><a href="#额外" class="headerlink" title="额外"></a>额外</h2><p>参考神的博客:<a target="_blank" rel="noopener" href="http://www.qfrost.com/posts/android/%E5%AE%89%E5%8D%93apk%E5%8F%8D%E7%BC%96%E8%AF%91%E4%BF%AE%E6%94%B9%E9%87%8D%E6%89%93%E5%8C%85%E7%AD%BE%E5%90%8D/">Qforst-安卓apk反编译修改重打包签名</a><br>还说了另外一个方法去给所有应用挂 debugable,这里留个备份:</p>
<blockquote>
Expand Down
File renamed without changes
2 changes: 1 addition & 1 deletion search.json

Large diffs are not rendered by default.

0 comments on commit 3b07625

Please sign in to comment.