<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>safe6-Blog</title>
    <description>A Jekyll Blog Theme For Hackers</description>
    <link>https://www.safe6.cn</link>
    <atom:link href="https://www.safe6.cn/feed.xml" rel="self" type="application/rss+xml" />
    <author>
      <name>safe6</name>
      <email>no</email>
      <uri>https://safe6.github.io/</uri>
    </author>
    
      <item>
        <title>clash+Cloudflare WARP隐藏你的出口ip</title>
        <description>&lt;h1 id=&quot;前言&quot;&gt;前言&lt;/h1&gt;

&lt;p&gt;简单记录一下，clash+warp隐藏出口ip。&lt;/p&gt;

&lt;p&gt;具体效果如下，注意warp是on&lt;/p&gt;

&lt;div class=&quot;language-bash highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;
&lt;span class=&quot;nv&quot;&gt;$ &lt;/span&gt;curl &lt;span class=&quot;nt&quot;&gt;--socks5-hostname&lt;/span&gt; 127.0.0.1:7891 https://cloudflare.com/cdn-cgi/trace

&lt;span class=&quot;nv&quot;&gt;fl&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;975f10
&lt;span class=&quot;nv&quot;&gt;h&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;cloudflare.com
&lt;span class=&quot;nv&quot;&gt;ip&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;104.28.215.67
&lt;span class=&quot;nv&quot;&gt;ts&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;1772297361.674
&lt;span class=&quot;nv&quot;&gt;visit_scheme&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;https
&lt;span class=&quot;nv&quot;&gt;uag&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;curl/8.7.1
&lt;span class=&quot;nv&quot;&gt;colo&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;HKG
&lt;span class=&quot;nv&quot;&gt;sliver&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;none
&lt;span class=&quot;nv&quot;&gt;http&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;http/2
&lt;span class=&quot;nv&quot;&gt;loc&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;HK
&lt;span class=&quot;nv&quot;&gt;tls&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;TLSv1.3
&lt;span class=&quot;nv&quot;&gt;sni&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;plaintext
&lt;span class=&quot;nv&quot;&gt;warp&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;on
&lt;span class=&quot;nv&quot;&gt;gateway&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;off
&lt;span class=&quot;nv&quot;&gt;rbi&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;off
&lt;span class=&quot;nv&quot;&gt;kex&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;X25519


&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h1 id=&quot;准备工具&quot;&gt;准备工具&lt;/h1&gt;

&lt;p&gt;1、mihomo (Clash Meta)&lt;/p&gt;

&lt;p&gt;目前还在维护的版本，更名为mihomo&lt;/p&gt;

&lt;p&gt;https://github.com/vernesong/mihomo&lt;/p&gt;

&lt;p&gt;2、wgcf&lt;/p&gt;

&lt;p&gt;https://github.com/ViRb3/wgcf&lt;/p&gt;

&lt;p&gt;3、梯子&lt;/p&gt;

&lt;h1 id=&quot;编辑配置&quot;&gt;编辑配置&lt;/h1&gt;

&lt;p&gt;第一步、生成warp公私钥&lt;/p&gt;

&lt;div class=&quot;language-bash highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;c&quot;&gt;# 1. 注册一个新设备，这会生成一个 wgcf-account.toml 文件&lt;/span&gt;
./wgcf register

&lt;span class=&quot;c&quot;&gt;# 2. 生成WireGuard格式的配置文件，这会生成一个 wgcf-profile.conf 文件&lt;/span&gt;
./wgcf generate
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;打开wgcf-profile.conf 准备后面使用。&lt;/p&gt;

&lt;p&gt;第二步、找到自己的clash配置文件config.yaml。&lt;/p&gt;

&lt;div class=&quot;language-yaml highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;c1&quot;&gt;# 编辑proxies&lt;/span&gt;
&lt;span class=&quot;c1&quot;&gt;# 注意，前置节点，尽量选一个稳定的。而且一定要支持udp的。&lt;/span&gt;

&lt;span class=&quot;pi&quot;&gt;-&lt;/span&gt; &lt;span class=&quot;na&quot;&gt;name&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;warp&lt;/span&gt;
    &lt;span class=&quot;s&quot;&gt;type&lt;/span&gt;&lt;span class=&quot;err&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;wireguard&lt;/span&gt;
    &lt;span class=&quot;s&quot;&gt;server&lt;/span&gt;&lt;span class=&quot;err&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;engage.cloudflareclient.com&lt;/span&gt;
    &lt;span class=&quot;s&quot;&gt;port&lt;/span&gt;&lt;span class=&quot;err&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;m&quot;&gt;2408&lt;/span&gt;
    &lt;span class=&quot;na&quot;&gt;ip&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;172.16.0.2/32&quot;&lt;/span&gt;
    &lt;span class=&quot;na&quot;&gt;ipv6&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;2606:x/128&quot;&lt;/span&gt; &lt;span class=&quot;c1&quot;&gt;#自行修改&lt;/span&gt;
    &lt;span class=&quot;na&quot;&gt;private-key&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;private-key&quot;&lt;/span&gt; &lt;span class=&quot;c1&quot;&gt;#自行修改&lt;/span&gt;
    &lt;span class=&quot;na&quot;&gt;public-key&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;public-key&quot;&lt;/span&gt; &lt;span class=&quot;c1&quot;&gt;#自行修改&lt;/span&gt;
    &lt;span class=&quot;na&quot;&gt;udp&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;no&quot;&gt;true&lt;/span&gt;
    &lt;span class=&quot;c1&quot;&gt;#reserved: &quot;18l3&quot;&lt;/span&gt;
    &lt;span class=&quot;na&quot;&gt;mtu&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;m&quot;&gt;1280&lt;/span&gt;
    &lt;span class=&quot;na&quot;&gt;dialer-proxy&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;前置节点&quot;&lt;/span&gt; &lt;span class=&quot;c1&quot;&gt;#自行修改&lt;/span&gt;
    &lt;span class=&quot;na&quot;&gt;remote-dns-resolve&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;no&quot;&gt;true&lt;/span&gt;
    &lt;span class=&quot;na&quot;&gt;dns&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt;
      &lt;span class=&quot;pi&quot;&gt;-&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;https://dns.cloudflare.com/dns-query&lt;/span&gt;


&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;最后保存，重启。然后切换到新增的warp节点。即可。&lt;/p&gt;

</description>
        <pubDate>Sat, 28 Feb 2026 17:16:48 +0000</pubDate>
        <link>https://www.safe6.cn//clash+Cloudflare-WARP%E9%9A%90%E8%97%8F%E4%BD%A0%E7%9A%84%E5%87%BA%E5%8F%A3ip</link>
        <link href="https://www.safe6.cn/clash+Cloudflare-WARP%E9%9A%90%E8%97%8F%E4%BD%A0%E7%9A%84%E5%87%BA%E5%8F%A3ip"/>
        <guid isPermaLink="true">https://www.safe6.cn/clash+Cloudflare-WARP%E9%9A%90%E8%97%8F%E4%BD%A0%E7%9A%84%E5%87%BA%E5%8F%A3ip</guid>
      </item>
    
      <item>
        <title>macos 多版本frida配置使用</title>
        <description>&lt;h2 id=&quot;前言&quot;&gt;前言&lt;/h2&gt;

&lt;p&gt;一般不推荐用最新版的frida，这里说的最新版是指大版本。比如17，因为好多我觉得比较不错的工具都用不了，所以还是得用16，但是某些时候最新版也有他的用处。所以，多版本共存就显得很有必要。&lt;/p&gt;

&lt;h2 id=&quot;笔记记录&quot;&gt;笔记记录&lt;/h2&gt;

&lt;p&gt;以下内容，完全是搭建过程中的记录，看看就行，有点乱。&lt;/p&gt;

&lt;h3 id=&quot;前置&quot;&gt;前置&lt;/h3&gt;

&lt;p&gt;首先、依赖&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;virtualenv&lt;/code&gt; 和 &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;virtualenvwrapper&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;virtualenvwrapper是前者的功能增强工具。&lt;/p&gt;

&lt;p&gt;用这个两个来快速的创建环境，因为frida，大版本直接差异比较大，需要多版本共存。&lt;/p&gt;

&lt;p&gt;但是想装低版本frida，还得低版本的python，所以还要解决python版本共存的问题。&lt;/p&gt;

&lt;p&gt;mac下、python版本共存问题，&lt;/p&gt;

&lt;p&gt;特别是python3.8，其他版本都能命令行安装
直接下载安装包进行安装
https://www.python.org/downloads/release/python-3810/
安装后，环境变量就有python3.8，&lt;/p&gt;

&lt;p&gt;为什么要3.8是因为,3.8支持frida低版本比如14，而这个版本可以有很多软件使用。&lt;/p&gt;
&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;python3.8 -m pip install --upgrade pip
python3.8 -m pip install virtualenv virtualenvwrapper

&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h3 id=&quot;windows系统安装&quot;&gt;Windows系统安装&lt;/h3&gt;
&lt;p&gt;windows 直接用这个是最方便，不怎么需要折腾&lt;/p&gt;
&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;pip install virtualenvwrapper-win -i https://pypi.tuna.tsinghua.edu.cn/simple

mkvirtualenv 新建环境 
rmvirtualenv 删除环境

pip install frida-tools -i https://pypi.tuna.tsinghua.edu.cn/simple

切换环境
workon py310
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h3 id=&quot;mac系统安装&quot;&gt;mac系统安装&lt;/h3&gt;
&lt;p&gt;mac 多版本python共存。
思路：首先，把python3.8设置为系统默认python版本，然后其他的由pyenv来管理。&lt;/p&gt;

&lt;p&gt;python3.8 直接去下载mac app。不要用brew，因为停更了，安装不上。&lt;/p&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;1、安装python3.8 app

2、取消链接由brew安装的python，后面使用pyenv来做多版本管理，不能直接卸载，因为还有很多依赖的工具，比如sqlmap这些。
brew list |grep python
brew unlink python
brew unlink python@3.11

设置默认python
sudo rm -rf /usr/local/bin/python
sudo ln -s /usr/local/bin/python3 /usr/local/bin/python


3、安装pyenv，接管python环境
brew reinstall pyenv

vim ~/.zshrc

# 加在最后面
export PYENV_ROOT=&quot;$HOME/.pyenv&quot;
export PATH=&quot;$PYENV_ROOT/bin:$PATH&quot;
eval &quot;$(pyenv init --path)&quot;
eval &quot;$(pyenv init -)&quot;
eval &quot;$(pyenv virtualenv-init -)&quot;

source ~/.zshrc

4、看自己需求安装一下其他版本的python

pyenv install 3.9
pyenv install 3.10
pyenv install 3.13

快速切换版本
pyenv global 3.11.9

换回3.8
pyenv global system

查看所有的版本
pyenv versions

查看当前版本
pyenv version


完成上面步骤，共存就完成了。
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h3 id=&quot;虚拟环境&quot;&gt;虚拟环境&lt;/h3&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;
推荐全部用虚拟环境，不要破坏原有的环境，不同程序需要的依赖版本不一样，全部隔离开。

创建 py3.8环境(system自带环境)
pyenv virtualenv system frida16

创建一个开发环境
pyenv virtualenv 3.10.18 dev

删除环境
pyenv virtualenv-delete dev 

切换环境
pyenv activate frida16
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h3 id=&quot;frida版本共存&quot;&gt;frida版本共存&lt;/h3&gt;
&lt;p&gt;python版本共存解决之后，再来看frida版本问题
python3.8使用frida14,但是只支持Windows，mac彻底不支持frida14,最低版本为16&lt;/p&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;
切换到frida16
pyenv activate frida16


# 推荐安装的版本，脱到最后面有版本对应关系。
pip list |grep frida  

frida           16.5.7

frida-tools      13.5.0


pip install frida-tools==13.5.0
pip install frida-tools==16.5.7

安装完成后，刷新一下环境，这里是个坑，一定要这样做。
pyenv deactivate frida16
pyenv activate frida16

adb forward tcp:27042 tcp:27042

frida-ps -Ua
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h2 id=&quot;关于frida版本&quot;&gt;关于frida版本&lt;/h2&gt;

&lt;p&gt;最新为17，这是server
https://github.com/frida/frida/releases&lt;/p&gt;

&lt;p&gt;而本地使用需要cli工具，去链接frida server。使用python，需要安装frida-tools，注意这个cli工具的版本和frida版本不一样。不要混淆。&lt;/p&gt;

&lt;p&gt;frida=tools最新版是14&lt;/p&gt;

&lt;p&gt;自带的frida有很多特征，推荐一个去除特征版本
https://github.com/hackcatml/ajeossida&lt;/p&gt;

&lt;h2 id=&quot;一些frida的常用命令&quot;&gt;一些frida的常用命令&lt;/h2&gt;

&lt;p&gt;随手记&lt;/p&gt;

&lt;p&gt;环境切换&lt;/p&gt;
&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;pyenv activate frida16

&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;查看当前手机运行的进程&lt;/p&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;
frida-ps -U  
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;快速查看，当前active和包名&lt;/p&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;adb shell dumpsys window | grep CurrentFocus

&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;指定端口启动&lt;/p&gt;
&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;frida server 默认端口：27042 
taimen:/ $ su 
taimen:/ # cd data/local/tmp/ 
taimen:/data/local/tmp # ./fs1280 -l 0.0.0.0:6666
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;端口转发&lt;/p&gt;
&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;adb forward tcp:27042 tcp:27042
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;查看已链接的设备&lt;/p&gt;
&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;frida-ls-devices

Id                 Type    Name             OS
-----------------  ------  ---------------  ----------
local              local   Local System     macOS 15.5
192.168.2.78:5555  usb     KB2000
barebone           remote  GDB Remote Stub
socket             remote  Local Socket

&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Spawn模式加载&lt;/p&gt;
&lt;div class=&quot;language-nginx highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;k&quot;&gt;frida&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;-U&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;-f&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;包名&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;-l&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;hook.js&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;attach模式 ：&lt;/p&gt;

&lt;div class=&quot;language-nginx highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;k&quot;&gt;frida&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;-U&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;进程名&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;-l&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;hook.js&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;使用&lt;/p&gt;
&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;frida -U GM -l r0tracer.js

&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h2 id=&quot;objection使用&quot;&gt;objection使用&lt;/h2&gt;

&lt;p&gt;其实这才是这篇文章的目录，就是为了用这个。所以一定要解决多版本共存的问题。这个工具非常的好用，不知道为啥就停更了。&lt;/p&gt;

&lt;p&gt;最后折腾完后，发现frida16就能使用objection。下面贴一下常用命令，很多来自吾爱破解，正己大佬写的，不了解这个工具的，可以去看视频学习一下。&lt;/p&gt;

&lt;p&gt;使用之前，先切换到可用的环境&lt;/p&gt;
&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;pyenv activate frida16
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;objection --help(help命令)
Checking for a newer version of objection...
Usage: objection [OPTIONS] COMMAND [ARGS]...

       _   _         _   _
   ___| |_|_|___ ___| |_|_|___ ___
  | . | . | | -_|  _|  _| | . |   |
  |___|___| |___|___|_| |_|___|_|_|
        |___|(object)inject(ion)

       Runtime Mobile Exploration
          by: @leonjza from @sensepost

  默认情况下，通信将通过USB进行，除非提供了`--network`选项。

选项:
  -N, --network            使用网络连接而不是USB连接。
  -h, --host TEXT          [默认: 127.0.0.1]
  -p, --port INTEGER       [默认: 27042]
  -ah, --api-host TEXT     [默认: 127.0.0.1]
  -ap, --api-port INTEGER  [默认: 8888]
  -g, --gadget TEXT        要连接的Frida Gadget/进程的名称。 [默认: Gadget]
  -S, --serial TEXT        要连接的设备序列号。
  -d, --debug              启用带有详细输出的调试模式。(在堆栈跟踪中包括代{过}{滤}理源图)
  --help                   显示此消息并退出。

命令:
  api          以无头模式启动objection API服务器。
  device-type  获取关于已连接设备的信息。
  explore      启动objection探索REPL。
  patchapk     使用frida-gadget.so补丁一个APK。
  patchipa     使用FridaGadget dylib补丁一个IPA。
  run          运行单个objection命令。
  signapk      使用objection密钥对APK进行Zipalign和签名。
  version      打印当前版本并退出。
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;获取包名&lt;/p&gt;
&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;adb shell dumpsys window | grep CurrentFocus

frida-ps -Ua
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;objection -g 包名或进程名 explore
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;启动前hook&lt;/p&gt;
&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;objection -g 进程名 explore --startup-command &quot;android hooking watch class 路径.类名&quot;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;加载插件&lt;/p&gt;
&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;objection -g GM explore -P /Users/safe6sec/tools/apk/objection-plugins
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;插件使用&lt;/p&gt;
&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt; plugin dexdump

&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;memory list modules   -查看内存中加载的库

memory list exports so名称 - 查看库的导出函数

android hooking list activities -查看内存中加载的activity

android hooking list services -查看内存中加载的services



android intent launch_activity 类名  启动activity


 android sslpinning disable    关闭ssl校验

 android root disable        关闭root检测


hook 该类所有方法

android hooking watch class 类名

hook特定方法
android hooking watch class_method 类名.方法名 --dump-args --dump-return --dump-backtrace

android hooking watch class com.j75ed30089.y2295a1512.MainActivity --dump-args --dump-backtrace --dump-return



hook构造方法
android hooking watch class_method 类名.$init

android hooking watch class_method 类名.方法名


memory search --string --offsets-only //搜索内存


android heap search instances 类名(命令) 搜索内存实例，可以用来调用


android heap execute &amp;lt;handle&amp;gt; getPublicInt(实例的hashcode+方法名) 
如果是带参数的方法，则需要进入编辑器环境   
android heap evaluate &amp;lt;handle&amp;gt;   
console.log(clazz.a(&quot;吾爱破解&quot;)); 
按住esc+enter触发



android hooking list classes -列出内存中所有的类(结果比静态分析的更准确)


android hooking search classes 关键类名 -在内存中所有已加载的类中搜索包含特定关键词的类

android hooking search methods 关键方法名 -在内存中所有已加载的类的方法中搜索包含特定关键词的方法(一般不建议使用，特别耗时，还可能崩溃)

android hooking list class_methods 类名 -内存漫游类中的所有方法


&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;插件&lt;/p&gt;
&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;# 搜索类
plugin wallbreaker objectsearch LoginActivity
//返回：
com.example.androiddemo.Activity.LoginActivity
com.example.androiddemo.Activity.LoginActivity$1
 
# 根据类名搜索内存中已经被创建的实例，列出 handle 和 toString() 的结果 --fullname 打印完整的包名
plugin wallbreaker classdump com.example.androiddemo.Activity.LoginActivity --fullname
 
# 搜索对象
plugin wallbreaker objectsearch com.example.androiddemo.Activity.LoginActivity
//返回：
[0x2262]: com.example.androiddemo.Activity.LoginActivity@d8a5160
 
# 查看对象的一些属性和方法
plugin wallbreaker objectdump 0x2262 --fullname

查看某个activit
plugin wallbreaker classdump com.j75ed.MainActivity --fullname


&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;dump dex&lt;/p&gt;
&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;plugin dexdump search com.j75ed.MainActivity

plugin dexdump dump

&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h2 id=&quot;frida-与-frida-tools-对应关系&quot;&gt;frida 与 frida-tools 对应关系&lt;/h2&gt;

&lt;p&gt;来自看雪https://bbs.kanxue.com/thread-280436.htm&lt;/p&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;frida-tools==1.0.0 ------ 12.0.0&amp;lt;=frida&amp;lt;13.0.0  
frida-tools==1.1.0 ------ 12.0.0&amp;lt;=frida&amp;lt;13.0.0  
frida-tools==1.2.0 ------ 12.1.0&amp;lt;=frida&amp;lt;13.0.0  
frida-tools==1.2.1 ------ 12.1.0&amp;lt;=frida&amp;lt;13.0.0  
frida-tools==1.2.2 ------ 12.1.0&amp;lt;=frida&amp;lt;13.0.0  
frida-tools==1.2.3 ------ 12.1.0&amp;lt;=frida&amp;lt;13.0.0  
frida-tools==1.3.0 ------ 12.3.0&amp;lt;=frida&amp;lt;13.0.0  
frida-tools==1.3.1 ------ 12.3.0&amp;lt;=frida&amp;lt;13.0.0  
frida-tools==1.3.2 ------ 12.4.0&amp;lt;=frida&amp;lt;13.0.0  
frida-tools==2.0.0 ------ 12.5.3&amp;lt;=frida&amp;lt;13.0.0  
frida-tools==2.0.1 ------ 12.5.9&amp;lt;=frida&amp;lt;13.0.0  
frida-tools==2.0.2 ------ 12.5.9&amp;lt;=frida&amp;lt;13.0.0  
frida-tools==2.1.0 ------ 12.5.9&amp;lt;=frida&amp;lt;13.0.0  
frida-tools==2.1.1 ------ 12.5.9&amp;lt;=frida&amp;lt;13.0.0  
frida-tools==2.2.0 ------ 12.5.9&amp;lt;=frida&amp;lt;13.0.0  
frida-tools==3.0.0 ------ 12.6.17&amp;lt;=frida&amp;lt;13.0.0  
frida-tools==3.0.1 ------ 12.6.17&amp;lt;=frida&amp;lt;13.0.0  
frida-tools==4.0.0 ------ 12.6.21&amp;lt;=frida&amp;lt;13.0.0  
frida-tools==4.0.1 ------ 12.6.21&amp;lt;=frida&amp;lt;13.0.0  
frida-tools==4.0.2 ------ 12.6.21&amp;lt;=frida&amp;lt;13.0.0  
frida-tools==4.1.0 ------ 12.6.21&amp;lt;=frida&amp;lt;13.0.0  
frida-tools==5.0.0 ------ 12.6.21&amp;lt;=frida&amp;lt;13.0.0  
frida-tools==5.0.1 ------ 12.7.3&amp;lt;=frida&amp;lt;13.0.0  
frida-tools==5.1.0 ------ 12.7.3&amp;lt;=frida&amp;lt;13.0.0  
frida-tools==5.2.0 ------ 12.7.3&amp;lt;=frida&amp;lt;13.0.0  
frida-tools==5.3.0 ------ 12.7.3&amp;lt;=frida&amp;lt;13.0.0  
frida-tools==5.4.0 ------ 12.7.3&amp;lt;=frida&amp;lt;13.0.0  
frida-tools==6.0.0 ------ 12.8.5&amp;lt;=frida&amp;lt;13.0.0  
frida-tools==6.0.1 ------ 12.8.5&amp;lt;=frida&amp;lt;13.0.0  
frida-tools==7.0.0 ------ 12.8.12&amp;lt;=frida&amp;lt;13.0.0  
frida-tools==7.0.1 ------ 12.8.12&amp;lt;=frida&amp;lt;13.0.0  
frida-tools==7.0.2 ------ 12.8.12&amp;lt;=frida&amp;lt;13.0.0  
frida-tools==7.1.0 ------ 12.8.12&amp;lt;=frida&amp;lt;13.0.0  
frida-tools==7.2.0 ------ 12.8.12&amp;lt;=frida&amp;lt;13.0.0  
frida-tools==7.2.1 ------ 12.8.12&amp;lt;=frida&amp;lt;13.0.0  
frida-tools==7.2.2 ------ 12.8.12&amp;lt;=frida&amp;lt;13.0.0  
frida-tools==8.0.0 ------ 12.10.4&amp;lt;=frida&amp;lt;13.0.0  
frida-tools==8.0.1 ------ 12.10.4&amp;lt;=frida&amp;lt;13.0.0  
frida-tools==8.1.0 ------ 12.10.4&amp;lt;=frida&amp;lt;13.0.0  
frida-tools==8.1.1 ------ 12.10.4&amp;lt;=frida&amp;lt;13.0.0  
frida-tools==8.1.2 ------ 12.10.4&amp;lt;=frida&amp;lt;13.0.0  
frida-tools==8.1.3 ------ 12.10.4&amp;lt;=frida&amp;lt;13.0.0  
frida-tools==8.2.0 ------ 12.10.4&amp;lt;=frida&amp;lt;13.0.0  
frida-tools==9.0.0 ------ 14.0.0&amp;lt;=frida&amp;lt;15.0.0  
frida-tools==9.0.1 ------ 14.0.0&amp;lt;=frida&amp;lt;15.0.0  
frida-tools==9.1.0 ------ 14.2.0&amp;lt;=frida&amp;lt;15.0.0  
frida-tools==9.2.0 ------ 14.2.9&amp;lt;=frida&amp;lt;15.0.0  
frida-tools==9.2.1 ------ 14.2.9&amp;lt;=frida&amp;lt;15.0.0  
frida-tools==9.2.2 ------ 14.2.9&amp;lt;=frida&amp;lt;15.0.0  
frida-tools==9.2.3 ------ 14.2.9&amp;lt;=frida&amp;lt;15.0.0  
frida-tools==9.2.4 ------ 14.2.9&amp;lt;=frida&amp;lt;15.0.0  
frida-tools==9.2.5 ------ 14.2.9&amp;lt;=frida&amp;lt;15.0.0  
frida-tools==10.0.0 ------ 15.0.0&amp;lt;=frida&amp;lt;16.0.0  
frida-tools==10.1.0 ------ 15.0.0&amp;lt;=frida&amp;lt;16.0.0  
frida-tools==10.1.1 ------ 15.0.0&amp;lt;=frida&amp;lt;16.0.0  
frida-tools==10.2.0 ------ 15.0.0&amp;lt;=frida&amp;lt;16.0.0  
frida-tools==10.2.1 ------ 15.0.0&amp;lt;=frida&amp;lt;16.0.0  
frida-tools==10.2.2 ------ 15.0.0&amp;lt;=frida&amp;lt;16.0.0  
frida-tools==10.3.0 ------ 15.0.0&amp;lt;=frida&amp;lt;16.0.0  
frida-tools==10.4.0 ------ 15.0.0&amp;lt;=frida&amp;lt;16.0.0  
frida-tools==10.4.1 ------ 15.0.0&amp;lt;=frida&amp;lt;16.0.0  
frida-tools==10.5.0 ------ 15.0.0&amp;lt;=frida&amp;lt;16.0.0  
frida-tools==10.5.1 ------ 15.0.0&amp;lt;=frida&amp;lt;16.0.0  
frida-tools==10.5.2 ------ 15.0.0&amp;lt;=frida&amp;lt;16.0.0  
frida-tools==10.5.3 ------ 15.0.0&amp;lt;=frida&amp;lt;16.0.0  
frida-tools==10.5.4 ------ 15.0.0&amp;lt;=frida&amp;lt;16.0.0  
frida-tools==10.6.0 ------ 15.0.0&amp;lt;=frida&amp;lt;16.0.0  
frida-tools==10.6.1 ------ 15.0.0&amp;lt;=frida&amp;lt;16.0.0  
frida-tools==10.6.2 ------ 15.0.0&amp;lt;=frida&amp;lt;16.0.0  
frida-tools==10.7.0 ------ 15.0.0&amp;lt;=frida&amp;lt;16.0.0  
frida-tools==10.8.0 ------ 15.0.0&amp;lt;=frida&amp;lt;16.0.0  
frida-tools==11.0.0 ------ 15.2.0&amp;lt;=frida&amp;lt;16.0.0  
frida-tools==12.0.0 ------ 16.0.0&amp;lt;=frida&amp;lt;17.0.0  
frida-tools==12.0.1 ------ 16.0.0&amp;lt;=frida&amp;lt;17.0.0  
frida-tools==12.0.2 ------ 16.0.0&amp;lt;=frida&amp;lt;17.0.0  
frida-tools==12.0.3 ------ 16.0.0&amp;lt;=frida&amp;lt;17.0.0  
frida-tools==12.0.4 ------ 16.0.0&amp;lt;=frida&amp;lt;17.0.0  
frida-tools==12.1.0 ------ 16.0.0&amp;lt;=frida&amp;lt;17.0.0  
frida-tools==12.1.1 ------ 16.0.9&amp;lt;=frida&amp;lt;17.0.0  
frida-tools==12.1.2 ------ 16.0.9&amp;lt;=frida&amp;lt;17.0.0  
frida-tools==12.1.3 ------ 16.0.9&amp;lt;=frida&amp;lt;17.0.0  
frida-tools==12.2.0 ------ 16.0.9&amp;lt;=frida&amp;lt;17.0.0  
frida-tools==12.2.1 ------ 16.0.9&amp;lt;=frida&amp;lt;17.0.0  
frida-tools==12.3.0 ------ 16.0.9&amp;lt;=frida&amp;lt;17.0.0
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;
</description>
        <pubDate>Thu, 17 Jul 2025 08:16:48 +0000</pubDate>
        <link>https://www.safe6.cn//macos-frida%E9%85%8D%E7%BD%AE</link>
        <link href="https://www.safe6.cn/macos-frida%E9%85%8D%E7%BD%AE"/>
        <guid isPermaLink="true">https://www.safe6.cn/macos-frida%E9%85%8D%E7%BD%AE</guid>
      </item>
    
      <item>
        <title>Welcome to Jekyll!</title>
        <description>&lt;p&gt;You’ll find this post in your &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;_posts&lt;/code&gt; directory. Go ahead and edit it and re-build the site to see your changes. You can rebuild the site in many different ways, but the most common way is to run &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;jekyll serve&lt;/code&gt;, which launches a web server and auto-regenerates your site when a file is updated.&lt;/p&gt;

&lt;p&gt;Jekyll requires blog post files to be named according to the following format:&lt;/p&gt;

&lt;p&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;YEAR-MONTH-DAY-title.MARKUP&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Where &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;YEAR&lt;/code&gt; is a four-digit number, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;MONTH&lt;/code&gt; and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;DAY&lt;/code&gt; are both two-digit numbers, and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;MARKUP&lt;/code&gt; is the file extension representing the format used in the file. After that, include the necessary front matter. Take a look at the source for this post to get an idea about how it works.&lt;/p&gt;

&lt;p&gt;Jekyll also offers powerful support for code snippets:&lt;/p&gt;

&lt;figure class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-ruby&quot; data-lang=&quot;ruby&quot;&gt;&lt;span class=&quot;k&quot;&gt;def&lt;/span&gt; &lt;span class=&quot;nf&quot;&gt;print_hi&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;name&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
  &lt;span class=&quot;nb&quot;&gt;puts&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&quot;Hi, &lt;/span&gt;&lt;span class=&quot;si&quot;&gt;#{&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;name&lt;/span&gt;&lt;span class=&quot;si&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;&lt;/span&gt;
&lt;span class=&quot;k&quot;&gt;end&lt;/span&gt;
&lt;span class=&quot;n&quot;&gt;print_hi&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;&apos;Tom&apos;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
&lt;span class=&quot;c1&quot;&gt;#=&amp;gt; prints &apos;Hi, Tom&apos; to STDOUT.&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;

&lt;p&gt;Check out the &lt;a href=&quot;https://jekyllrb.com/docs/home&quot;&gt;Jekyll docs&lt;/a&gt; for more info on how to get the most out of Jekyll. File all bugs/feature requests at &lt;a href=&quot;https://github.com/jekyll/jekyll&quot;&gt;Jekyll’s GitHub repo&lt;/a&gt;. If you have questions, you can ask them on &lt;a href=&quot;https://talk.jekyllrb.com/&quot;&gt;Jekyll Talk&lt;/a&gt;.&lt;/p&gt;

</description>
        <pubDate>Sat, 08 Mar 2025 15:16:48 +0000</pubDate>
        <link>https://www.safe6.cn//welcome-to-jekyll</link>
        <link href="https://www.safe6.cn/welcome-to-jekyll"/>
        <guid isPermaLink="true">https://www.safe6.cn/welcome-to-jekyll</guid>
      </item>
    
  </channel>
</rss>
