Skip to content

Commit

Permalink
Merge pull request #46 from TongchengOpenSource/feature-updateFrida&Adb
Browse files Browse the repository at this point in the history
Feature update frida&adb
  • Loading branch information
ChnMig authored Oct 28, 2023
2 parents f539dcc + 0936606 commit 562f954
Show file tree
Hide file tree
Showing 13 changed files with 43 additions and 11 deletions.
27 changes: 27 additions & 0 deletions doc/dev.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,32 @@
### 前置条件
- 本地安装python版本为3.10.X

### 解压static
> 因为github上传文件大小限制, 所以将static文件夹下的静态资源文件压缩成了static.7z, 需要解压才可以正常跑起来代码
1. 进入helper/static目录
2. 通过解压软件解压static.7z文件到**当前目录(static)**
3. 解压后的文件夹结构如下
```
$ tree
.
├── darwin
│ └── adb
├── gadget-android-arm64.so
├── hluda-server-arm64
├── hluda-server-x86
├── sdk.json
├── static.7z
└── windows
├── adb.exe
├── AdbWinApi.dll
└── AdbWinUsbApi.dll
3 directories, 9 files
```
此时可删除static.7z文件

### 安装依赖
1. 进入helper目录
2. 打开命令行(或者使用vscode等专业软件打开文件夹)
Expand All @@ -14,6 +40,7 @@

### 启动
> websocket 可以通过 postman 或在线网站 http://www.websocket-test.com/ 进行连接和调试
1. 根据 [api](./api.md) 进行API调试

## view
Expand Down
5 changes: 5 additions & 0 deletions helper/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,8 @@ ENV/

*.pcap
*.out

# static
static/gadget-android-arm64.so
static/hluda-server-arm64
static/hluda-server-x86
8 changes: 4 additions & 4 deletions helper/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@

> <https://github.com/hzzheyang/strongR-frida-android/releases>
15.2.2
16.1.4

# adb version

> <https://developer.android.com/studio/releases/platform-tools>
33.0.3
RC34.0.5

# powered by

Expand All @@ -35,10 +35,10 @@ pyinstaller ./main.spec

# server start

adb shell "su -c '/data/local/tmp/frida-server-16.0.7-android-arm64 &'"
adb shell "su -c '/data/local/tmp/frida-server-arm64 &'"

# kill frida-server

> <https://blog.csdn.net/yizhuanlu9607/article/details/85101860>
adb shell "su -c 'killall -9 frida-server-16.0.7-android-arm64'"
adb shell "su -c 'killall -9 frida-server-arm64'"
4 changes: 2 additions & 2 deletions helper/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ click==8.1.3
colorama==0.4.6
dnspython==2.2.1
fastapi==0.86.0
frida==15.2.2
frida-tools==11.0.0
frida==16.1.4
frida-tools==12.3.0
h11==0.14.0
hexdump==3.3
idna==3.4
Expand Down
8 changes: 4 additions & 4 deletions helper/routers/adb/init.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@
+ os.sep
+ "adb"
) # 默认mac环境
frida_server_arm = "hluda-server-15.2.2-arm64"
frida_server_x86 = "hluda-server-15.2.2-x86"
frida_server_arm = "hluda-server-arm64"
frida_server_x86 = "hluda-server-x86"
# 根据手机架构选择 frida-server, arm和x86
# 兼容模拟器
detecting_phone_architecture_cmd = [adb_path, "shell", "su -c 'getprop ro.product.cpu.abi'"]
Expand Down Expand Up @@ -115,8 +115,8 @@ def generation_cmd():
+ os.sep
+ "adb"
) # 默认mac环境
frida_server_arm = "hluda-server-15.2.2-arm64"
frida_server_x86 = "hluda-server-15.2.2-x86"
frida_server_arm = "hluda-server-arm64"
frida_server_x86 = "hluda-server-x86"
# 根据手机架构选择 frida-server, arm和x86
# 兼容模拟器
detecting_phone_architecture_cmd = [adb_path, "shell", "su -c 'getprop ro.product.cpu.abi'"]
Expand Down
Loading

0 comments on commit 562f954

Please sign in to comment.