第一台机器
adb connect 192.168.31.6:5555
adb -s 192.168.31.6 shell
su
/data/local/tmp/firda
.16
python调用
# 解决 vscode的路径问题
import
os, sys
os.chdir(sys.path[
0
])
sys
time
frida
device
=
frida.get_device(
"192.168.31.6:5555"
)
pid
device.spawn([
"com.google.chrome"
device.resume(pid)
session
device.attach(pid)
scr
"""
Java.perform(function () {
var RequestUtils = Java.use("com.shizhuang.duapp.common.utils.RequestUtils");
RequestUtils.a.overload('java.util.Map', 'long').implementation = function(map,j){
var res = this.a(map,j);
console.log("a-->newSign=", res);
return res;
}
RequestUtils.b.overload('java.util.Map', 'long').implementation = function(map,j){
var res = this.b(map,j);
console.log("b-->newSign=", res);
RequestUtils.c.overload('java.util.Map', 'long').implementation = function(map,j){
var res = this.c(map,j);
console.log("c-->newSign=", res);
});
script
session.create_script(scr)
script.load()
sys.stdin.read()
第二台机器
adb connect
192.168
.
31.8
:
5555
adb
-
s
shell
/
data
local
tmp
firda.
16
[注意]传递专业知识、拓宽行业人脉——看雪讲师团队等你加入!
https://github.com/rev1si0n/lamda 超简单
from lamda.client import * d = Device("192.168.2.x") print (d.frida.enumerate_applications())