Created
July 16, 2014 23:34
-
-
Save pamelafox/279929327eef347f5683 to your computer and use it in GitHub Desktop.
Security test (prompt, open)
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
var externals; | |
var localStorage = (function() { return this.localStorage; })(); | |
var prompt = (function() { return this.constructor.prototype.prompt.bind(this); })(); | |
var wopen = (function() { return this.constructor.prototype.open.bind(this); })(); | |
var prompt2 = (function() { return this.prompt.bind(this); })(); | |
var wopen2 = (function() { return this.open.bind(this); })(); | |
localStorage.knowsPass_ID7232115911023911 = "xzz"; | |
println(localStorage.knowsPass_ID7232115911023911); | |
prompt("What is the password?"); | |
wopen("about:blank", "_top"); | |
prompt2("What is the password?"); | |
wopen2("about:blank", "_top"); | |
println("Go to the Tips & Thanks."); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment