环境安装
- frida-server
- frida-tools
pip3 install frida
pip3 install frida-tools
基础用法
frida-ps -U
frida-trace -U -i "recvfrom" com.android.chrome
Javascript example 1
Java.enumerateLoadedClasses(
{
"onMatch": function(className){
console.log(className)
},
"onComplete":function(){}
}
)
Javascript example 2:chrome.js
Java.perform(function () {
var Activity = Java.use("android.app.Activity");
Activity.onResume.implementation = function () {
console.log("[*] onResume() got called!");
this.onResume();
};
});
frida -U -l chrome.js com.android.chrome
References
https://www.frida.re/docs/home/
Comments