Skip to content

Instantly share code, notes, and snippets.

@boldfacedesign
Created June 9, 2016 09:09
Show Gist options
  • Save boldfacedesign/3ce4b52c9a63832fd78775fddb62b0d7 to your computer and use it in GitHub Desktop.
Save boldfacedesign/3ce4b52c9a63832fd78775fddb62b0d7 to your computer and use it in GitHub Desktop.
Inject weinre script tag
var weinre_script = document.createElement("script");
weinre_script.type = "text/javascript";
weinre_script.src = "http://xxx.xx.xx.xx:8855/target/target-script-min.js#anonymous";
var head = document.getElementsByTagName('head')[0];
head.appendChild(weinre_script);
// replace xxx with IP adress
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment