Skip to content

Instantly share code, notes, and snippets.

@luca-regne
Last active April 11, 2026 13:33
Show Gist options
  • Select an option

  • Save luca-regne/6d32789e6bf1e355a14986a43272b290 to your computer and use it in GitHub Desktop.

Select an option

Save luca-regne/6d32789e6bf1e355a14986a43272b290 to your computer and use it in GitHub Desktop.
Frida Script to Bypass freeRasp
/*
frida -U -f package.name --codeshare luca-regne/android-freerasp-bypass --no-pause
Android freeRASP Bypass by regne
https://fireshellsecurity.team/bhackctf2024-bypass-freerasp-callbacks/
*/
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