-
-
Save AkshayJainG/468b47778a94fed9a1128bc149e7bcd9 to your computer and use it in GitHub Desktop.
Using frida to inspect an Android WebView
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
{ | |
console.log("SIMON TEST Begin!"); | |
console.log("Java.available:" + Java.available); | |
console.log("SIMON TEST End!"); | |
if(Java.available){ | |
Java.perform(function(){ | |
var WebView = Java.use("android.webkit.WebView"); | |
console.log(WebView); | |
console.log(WebView.setWebContentsDebuggingEnabled); | |
WebView.loadUrl.overload('java.lang.String').implementation=function(p0){ | |
console.log("WebView.loadUrl p0:" + p0); | |
var r0 = this.loadUrl(p0); | |
this.setWebContentsDebuggingEnabled(true); | |
console.log("WebView.loadUrl r0:" + r0); | |
return r0; | |
} | |
WebView.loadUrl.overload('java.lang.String', 'java.util.Map').implementation=function(p0,p1){ | |
console.log("WebView.loadUrl p0:" + p0 + "\n p1:"+p1); | |
var r0 = this.loadUrl(p0); | |
this.setWebContentsDebuggingEnabled(true); | |
console.log("WebView.loadUrl r0:" + r0); | |
return r0; | |
} | |
}); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment