Compare commits

...

9 Commits

Author SHA1 Message Date
wangsiyuan 8fc63ad9c0 删除 X.js 2023-09-25 15:14:00 +08:00
wangsiyuan 26622767e6 更新 test.py 2023-09-25 15:13:57 +08:00
wangsiyuan 2311f5ad29 删除 SettingServiceImpl.js 2023-09-25 15:13:54 +08:00
wangsiyuan 1c199de379 删除 RegionMockConfig.js 2023-09-25 15:13:53 +08:00
wangsiyuan c8e27de06b 删除 AppLogReaperServiceImpl.js 2023-09-25 15:13:51 +08:00
wangsiyuan 132bc23c8c 删除 AppLog.js 2023-09-25 15:13:49 +08:00
wangsiyuan 0059733ffd 更新 misc.xml 2023-09-25 15:13:47 +08:00
wangsiyuan d8e7976afc 创建 .DS_Store 2023-09-25 15:13:45 +08:00
wangsiyuan cf74259b5e 更新 hook.iml 2023-09-25 15:13:44 +08:00
9 changed files with 4 additions and 49 deletions

BIN
.DS_Store vendored Normal file

Binary file not shown.

View File

@ -6,7 +6,7 @@
<excludeFolder url="file://$MODULE_DIR$/venv 3.11" />
<excludeFolder url="file://$MODULE_DIR$/venv 3.9" />
</content>
<orderEntry type="jdk" jdkName="Python 3.9 (hook-frida)" jdkType="Python SDK" />
<orderEntry type="jdk" jdkName="Python 3.9 (hook) (2)" jdkType="Python SDK" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>

View File

@ -1,4 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.9 (hook-frida)" project-jdk-type="Python SDK" />
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.9 (hook) (2)" project-jdk-type="Python SDK" />
</project>

View File

@ -1,6 +0,0 @@
Java.perform(function() {
var AppLog = Java.use("com.ss.android.common.applog.AppLog");
console.log("BASE_HEADER_KEYS value: " + AppLog.BASE_HEADER_KEYS.value);
return AppLog.BASE_HEADER_KEYS.value;
});

View File

@ -1,11 +0,0 @@
//AppLogReaperServiceImpl类的LIZ方法
Java.perform(function() {
var AppLogReaperServiceImpl = Java.use("com.ss.android.ugc.aweme.lancet.AppLogReaperServiceImpl");
AppLogReaperServiceImpl.LIZ.overload('org.json.JSONObject').implementation = function(jsonObject) {
console.log("Logged JSON: " + jsonObject.toString());
// Call the original function
return this.LIZ(jsonObject);
};
});

View File

@ -1,7 +0,0 @@
//RegionMockConfig类
Java.perform(function() {
var AppLog = Java.use("com.ss.android.common.applog.AppLog");
console.log("BASE_HEADER_KEYS value: " + AppLog.BASE_HEADER_KEYS.value);
});

View File

@ -1,22 +0,0 @@
Java.perform(function() {
var SettingServiceImpl = Java.use("com.p314ss.android.ugc.aweme.setting.services.SettingServiceImpl");
var originalLJIILL = SettingServiceImpl.LJIILL.implementation;
SettingServiceImpl.LJIILL.implementation = function() {
// 打印日志表示方法被hook
console.log("LJIILL method is called!");
// 尝试获取 accountRegion 字段的值
if (this.hasOwnProperty('accountRegion')) {
console.log("accountRegion: " + this.accountRegion);
} else {
console.log("accountRegion field not found in SettingServiceImpl.");
}
// 调用原始方法
originalLJIILL.call(this);
}
});

0
X.js
View File

View File

@ -5,7 +5,7 @@ def list_devices():
for device in devices:
print(device)
# list_devices()
list_devices()
def connect_to_device(device_id):
device = frida.get_device(id=device_id, timeout=10)
@ -20,3 +20,4 @@ def on_message(message, data):