Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <script>
- function ReverseCheck()
- {
- var prompt = "Bad password / Username.";
- if(document.getElementById("utb").value=="admin")
- {
- if(document.getElementById("ptb").value.length!=7)
- {
- }
- else
- {
- if(document.getElementById("ptb").value.charCodeAt(0)+document.getElementById("ptb").value.charCodeAt(1)==206 && document.getElementById("ptb").value.charCodeAt(1) + document.getElementById("ptb").value.charCodeAt(2) == 201 && document.getElementById("ptb").value.charCodeAt(2) + document.getElementById("ptb").value.charCodeAt(3) == 184 && document.getElementById("ptb").value.charCodeAt(3)+document.getElementById("ptb").value.charCodeAt(4) == 177 && document.getElementById("ptb").value.charCodeAt(4)+document.getElementById("ptb").value.charCodeAt(5)==180 && document.getElementById("ptb").value.charCodeAt(5)+document.getElementById("ptb").value.charCodeAt(6)==198)
- {
- prompt="you made it!";
- }
- }
- }
- alert(prompt);
- }
- </script>
- </head>
- <body>
- <h3><center> Log in </h3> </center>
- <h5>username: <input type="text" name="username" id="utb" placeholder="insert username here."><br>
- password: <input type="text" name="password" id="ptb" placeholder = "insert password here."><br></h5>
- <button onclick="ReverseCheck()">Click me</button>
- </body>
- </html>
Add Comment
Please, Sign In to add comment