Skip to content

Instantly share code, notes, and snippets.

@luca-regne
Last active January 4, 2025 13:34
Show Gist options
  • Save luca-regne/6d32789e6bf1e355a14986a43272b290 to your computer and use it in GitHub Desktop.
Save luca-regne/6d32789e6bf1e355a14986a43272b290 to your computer and use it in GitHub Desktop.
Java.perform(function() {
var Intent = Java.use("android.content.Intent");
Intent.getStringExtra.overload('java.lang.String').implementation = function(str) {
let extra = this.getStringExtra(str);
let action = this.getAction();
if (action == "TALSEC_INFO") {
console.log(`[+] Hooking getStringExtra("${str}") from ${action}`);
console.log(`\t Bypassing ${extra} detection`);
extra = "";
}
return extra;
};
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment