Dumper2
8 views
7c8f72b2...
Description
a
How to Use
Download the script and run it with Frida CLI:
Download ScriptThen run with Frida:
frida -U -f YOUR_PACKAGE_NAME -l dumper2.js
Replace YOUR_PACKAGE_NAME with the target app's package name.
Source Code
JavaScript
Java.perform(function () {
var PackageManager = Java.use('android.content.pm.PackageManager');
console.log("Hookeando hasSystemFeature...");
// Usando a sobrecarga correta: (java.lang.String)
PackageManager.hasSystemFeature.overload('java.lang.String').implementation = function(feature) {
console.log("Feature verificada: " + feature);
return this.hasSystemFeature(feature);
};
// Se precisar hookear a segunda sobrecarga, use a assinatura (java.lang.String, int):
PackageManager.hasSystemFeature.overload('java.lang.String', 'int').implementation = function(feature, version) {
console.log("Feature verificada: " + feature + ", Versão: " + version);
return this.hasSystemFeature(feature, version);
};
});
Comments