Great password Script

Status
Not open for further replies.

HomerJ

New Member
Messages
181
Reaction score
0
Points
0
That's pretty easy to bypass. For one, the passwords are in the source. Just view the source of the page and you can see the password. Second, it's in Javascript, which can be disabled. Third, you can just navigate to the pages it "protects" by entering the URL in your browser's address bar.

Javascript is not well-suited to passwords at all.
 

noerrorsfound

New Member
Messages
1,736
Reaction score
1
Points
0
<form>
<p>ENTER USER NAME :
<input type="text" name="text2">
</p>
<p> ENTER PASSWORD :
<input type="password" name="text1">
<input type="button" value="Check In" name="Submit" onclick=javascript:validate(text2.value,"free",text1.value,"javascript") >
</p>

</form>
<script language = "javascript">

/*
Script by Anubhav Misra (anubhav_misra@hotmail.com)
Submitted to JavaScript Kit (http://javascriptkit.com)
For this and 400+ free scripts, visit http://javascriptkit.com
*/

function validate(text1,text2,text3,text4)
{
if (text1==text2 && text3==text4)
load('success.htm');
else
{
load('failure.htm');
}
}
function load(url)
{
location.href=url;
}
</script>

<p align="center"><font face="arial" size="-2">This free script provided by <a href="http://javascriptkit.com">JavaScript Kit</a></font></p>
Username and password in bold (in this example they told you on the site anyway, but you still see how easy it is). You really are a moron if you actually try to protect something using this.
 
Last edited:
Status
Not open for further replies.
Top