Created
March 22, 2015 17:49
-
-
Save vanhoefm/58e287257277dcae8e78 to your computer and use it in GitHub Desktop.
Codegate 2015
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
function validate() { | |
var x = document.forms["formxx"]["pwz"].value; | |
if (!x.match(/^[A-Za-z]+$/)) | |
return false; | |
if (!sha1(x).match(/^ff7b948953ac/)) | |
return false; | |
alert("Flag: " + x); | |
return true; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment