Created
June 17, 2020 05:02
-
-
Save bet4it/b62ac2d5bd45b8cb699905fa498baf5e to your computer and use it in GitHub Desktop.
Monitor android intents with frida
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Java.perform(function () { | |
var act = Java.use("android.app.Activity"); | |
act.getIntent.overload().implementation = function () { | |
var intent = this.getIntent() | |
var cp = intent.getComponent() | |
console.log("Starting " + cp.getPackageName() + "/" + cp.getClassName()) | |
var ext = intent.getExtras(); | |
if (ext) { | |
var keys = ext.keySet() | |
var iterator = keys.iterator() | |
while (iterator.hasNext()) { | |
var k = iterator.next().toString() | |
var v = ext.get(k) | |
console.log("\t" + v.getClass().getName()) | |
console.log("\t" + k + ' : ' + v.toString()) | |
} | |
} | |
return intent; | |
}; | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment