Full version: jsB@nk » Security » Passwordor » Access v5
URL: https://www.javascriptbank.com/access-v5-index.html
A simple login and JavaScript password script.
Full version: jsB@nk » Security » Passwordor » Access v5
URL: https://www.javascriptbank.com/access-v5-index.html
<script language="Javascript" type="text/javascript"><!--//Access v5.0 - © Aaron Stinson/*var passed = 1, a = 1;var aaa = 'javascriptbank.com';for(i = 0; i < aaa.length; i++) {a *= aaa.charCodeAt(i);}document.write(a);*/function login() {var pass = document.accessform.accesstext.value.toLowerCase()var passed = 1;for(i = 0; i < pass.length; i++) {passed *= pass.charCodeAt(i);}//EDIT THE PAGES THE USER WILL BE SENT TO IF THE PASSWORD IS CORRECT BELOWvar user1='correct1.html'var user2='correct2.html'var user3='correct3.html'var user4='correct4.html'var user5='correct5.html'var user6='correct6.html'var user7='correct7.html'var user8='correct8.html'var user9='correct9.html'var user10='correct10.html'// EDIT THE PASSWORDS HERE//2.415176132861209e+22if (passed=="1.2845508893988202e+36") { alert('Acess Granted!\n\nWelcome Webmaster !'); top.location=user1}else if ( passed=="2") { alert('Acess Granted!\n\nWelcome User 2'); top.location=user2}else if ( passed=="3") { alert('Acess Granted!\n\nWelcome User 3!'); window.location=user3 }else if (passed=="4") { alert('Acess Granted!\n\nWelcome User 4!'); window.location=user4}else if (passed=="5") { alert('Acess Granted!\n\nWelcome User 5!'); window.location=user5}else if (passed=="6") { alert('Acess Granted!\n\nWelcome User 6!'); window.location=user6}else if (passed=="7") { alert('Acess Granted!\n\nWelcome User 7!'); window.location=user7}else if (passed=="8") { alert('Acess Granted!\n\nWelcome User 8!'); window.location=user8}else if (passed=="9") { alert('Acess Granted!\n\nWelcome User 9!'); window.location=user9}else if (passed=="10") { alert('Acess Granted!\n\nWelcome User 10!'); window.location=user10}else { alert('* * * * * * * * * * * *\n\nAccess Denied to Password Protected Page!\n\n* * * * * * * * * * * *'); }}/* CHANGE THE VARIABLE TO THE PAGE THE USER WILL BE SENT TO IF THEY TRY TO LOAD THIS PAGE DIRECTLY (WITHOUT A FRAME) */var leave='access50.html'// DONE EDITING//Do not load this page directly must view in a frameif (self.location == top.location){alert('YOU MAY NOT LOAD THIS PAGE DIRECTLY\nPlease do not open this page again');window.location=leave}//No right clickif (window.Event) document.captureEvents(Event.MOUSEUP); function nocontextmenu() {event.cancelBubble = trueevent.returnValue = false;return false;}function norightclick(e){if (window.Event){if (e.which == 2 || e.which == 3)return false;}elseif (event.button == 2 || event.button == 3){event.cancelBubble = trueevent.returnValue = false;return false;}}document.oncontextmenu = nocontextmenu;document.onmousedown = norightclick;// --></script><!-- This script downloaded from www.JavaScriptBank.com Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->
<form name="accessform" onsubmit="login();"><table bgcolor="#ff0000" border="1" width="190"><tbody><tr bgcolor="#e3e3ea"><td><center><b>Enter your password:</b><br><input type="password" name="accesstext" value="" size="10"><br><input type="button" name="ENTER" value=" ENTER " onclick="login();"></center></td></tr></tbody></table></form><!-- This script downloaded from www.JavaScriptBank.com Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->