Skip to content

Commit 562f954

Browse files
authored
Merge pull request #46 from TongchengOpenSource/feature-updateFrida&Adb
Feature update frida&adb
2 parents f539dcc + 0936606 commit 562f954

File tree

13 files changed

+43
-11
lines changed

13 files changed

+43
-11
lines changed

doc/dev.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,32 @@
44
### 前置条件
55
- 本地安装python版本为3.10.X
66

7+
### 解压static
8+
> 因为github上传文件大小限制, 所以将static文件夹下的静态资源文件压缩成了static.7z, 需要解压才可以正常跑起来代码
9+
10+
1. 进入helper/static目录
11+
2. 通过解压软件解压static.7z文件到**当前目录(static)**
12+
3. 解压后的文件夹结构如下
13+
```
14+
$ tree
15+
.
16+
├── darwin
17+
│ └── adb
18+
├── gadget-android-arm64.so
19+
├── hluda-server-arm64
20+
├── hluda-server-x86
21+
├── sdk.json
22+
├── static.7z
23+
└── windows
24+
├── adb.exe
25+
├── AdbWinApi.dll
26+
└── AdbWinUsbApi.dll
27+
28+
3 directories, 9 files
29+
30+
```
31+
此时可删除static.7z文件
32+
733
### 安装依赖
834
1. 进入helper目录
935
2. 打开命令行(或者使用vscode等专业软件打开文件夹)
@@ -14,6 +40,7 @@
1440

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

1946
## view

helper/.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,8 @@ ENV/
3636

3737
*.pcap
3838
*.out
39+
40+
# static
41+
static/gadget-android-arm64.so
42+
static/hluda-server-arm64
43+
static/hluda-server-x86

helper/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@
88

99
> <https://github.com/hzzheyang/strongR-frida-android/releases>
1010
11-
15.2.2
11+
16.1.4
1212

1313
# adb version
1414

1515
> <https://developer.android.com/studio/releases/platform-tools>
1616
17-
33.0.3
17+
RC34.0.5
1818

1919
# powered by
2020

@@ -35,10 +35,10 @@ pyinstaller ./main.spec
3535

3636
# server start
3737

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

4040
# kill frida-server
4141

4242
> <https://blog.csdn.net/yizhuanlu9607/article/details/85101860>
4343
44-
adb shell "su -c 'killall -9 frida-server-16.0.7-android-arm64'"
44+
adb shell "su -c 'killall -9 frida-server-arm64'"

helper/requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ click==8.1.3
66
colorama==0.4.6
77
dnspython==2.2.1
88
fastapi==0.86.0
9-
frida==15.2.2
10-
frida-tools==11.0.0
9+
frida==16.1.4
10+
frida-tools==12.3.0
1111
h11==0.14.0
1212
hexdump==3.3
1313
idna==3.4

helper/routers/adb/init.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@
3636
+ os.sep
3737
+ "adb"
3838
) # 默认mac环境
39-
frida_server_arm = "hluda-server-15.2.2-arm64"
40-
frida_server_x86 = "hluda-server-15.2.2-x86"
39+
frida_server_arm = "hluda-server-arm64"
40+
frida_server_x86 = "hluda-server-x86"
4141
# 根据手机架构选择 frida-server, arm和x86
4242
# 兼容模拟器
4343
detecting_phone_architecture_cmd = [adb_path, "shell", "su -c 'getprop ro.product.cpu.abi'"]
@@ -115,8 +115,8 @@ def generation_cmd():
115115
+ os.sep
116116
+ "adb"
117117
) # 默认mac环境
118-
frida_server_arm = "hluda-server-15.2.2-arm64"
119-
frida_server_x86 = "hluda-server-15.2.2-x86"
118+
frida_server_arm = "hluda-server-arm64"
119+
frida_server_x86 = "hluda-server-x86"
120120
# 根据手机架构选择 frida-server, arm和x86
121121
# 兼容模拟器
122122
detecting_phone_architecture_cmd = [adb_path, "shell", "su -c 'getprop ro.product.cpu.abi'"]

0 commit comments

Comments
 (0)