Created
July 31, 2014 07:54
-
-
Save jbuda/0d28a712481135ff5944 to your computer and use it in GitHub Desktop.
Weinre android js script injection without having to change the physical html
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
webView.loadUrl( | |
"javascript:"+ | |
"var script = document.createElement('script'); "+ | |
"script.type = 'text/javascript'; "+ | |
"script.src = 'http://XXXXXXXXX:XXXX/target/target-script-min.js#anonymous'; "+ | |
"document.getElementsByTagName('head')[0].appendChild(script); " | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment