Created
August 28, 2011 19:01
-
-
Save dux/1177058 to your computer and use it in GitHub Desktop.
try to find login form, user and pass input nodes - used on http://cryptero.com
This file contains hidden or 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 c_user, c_pass, c_form; | |
(function() { | |
for (var i=0;document.forms[i]; i++) { | |
for (j=0;document.forms[i][j];j++) { | |
if(document.forms[i][j].type=='text') { | |
c_user = document.forms[i][j] | |
} | |
if(document.forms[i][j].type=='password') { | |
c_form = document.forms[i] | |
c_pass = document.forms[i][j] | |
return; | |
} | |
} | |
} | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment