rpc.exports = {
call:
function
call() {
Java.perform(() => {
let MainActivity = Java.use(
"com.roysue.easyso1.MainActivity"
);
let ret = MainActivity[
"method01"
](
'aa'
);
console.log(`[ * ]\t${ret}`);
});
}
}
let base = Module.findBaseAddress(
'libroysue.so'
)
console.log(`[ * ]\tlibroysue.so.base :=> ${base}`);
let funcAddr = Module.findExportByName(
'libroysue.so'
,
'll11l1l1ll'
)
Interceptor.attach(funcAddr, {
onEnter:
function
(args) {
console.log(`[ * ]\tll11l1l1ll.args[${0}] onEnter :=> ${args[0].readCString()}`)
},
onLeave:
function
(retval) {
console.log(`[ * ]\tll11l1l1ll.retval onLeave :=> ${retval.readCString()}`)
console.error(
"------------------------------------------------------------\n"
);
}
})
let sub_2658 = base.add(0x2658 + 1)
Interceptor.attach(sub_2658, {
onLeave:
function
(retval) {
console.log(`[ * ]\tsub_2658.retval onLeave :=> ${retval.readCString()}`)
console.error(
"------------------------------------------------------------\n"
);
}
})
let sub_2C44 = base.add(0x2C44 + 1)
Interceptor.attach(sub_2C44, {
onLeave:
function
(retval) {
console.log(`[ * ]\tsub_2C44.retval onLeave :=> ${retval.readCString()}`)
console.error(
"------------------------------------------------------------\n"
);
}
})
[ * ] libroysue.so.base :=> 0xd67ed000
[Pixel 3::easyso1 ]-> rpc.exports.call()
[ * ] ll11l1l1ll.args[0] onEnter :=> aa
[ * ] sub_2658.retval onLeave :=> goodl-aes-key123
------------------------------------------------------------
[ * ] sub_2C44.retval onLeave :=> goodl-aes-iv1234
------------------------------------------------------------
[ * ] ll11l1l1ll.retval onLeave :=> ac33f2780262122a22a1f1c30aaeeae2
------------------------------------------------------------
[ * ] ac33f2780262122a22a1f1c30aaeeae2