Guest User

Untitled

a guest
Apr 4th, 2019
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. <html>
  3.   <head>
  4.   <script>
  5.   function ReverseCheck()
  6.   {
  7.   var prompt = "Bad password / Username.";
  8.   if(document.getElementById("utb").value=="admin")
  9.   {
  10.   if(document.getElementById("ptb").value.length!=7)
  11.   {
  12.   }
  13.   else
  14.   {
  15.   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)
  16.   {
  17.   prompt="you made it!";
  18.   }
  19.   }
  20.   }
  21.   alert(prompt);
  22.   }
  23.   </script>
  24.   </head>
  25.   <body>
  26.   <h3><center> Log in </h3> </center>
  27.   <h5>username: <input type="text" name="username" id="utb" placeholder="insert username here."><br>
  28.   password: <input type="text" name="password" id="ptb" placeholder = "insert password here."><br></h5>
  29.   <button onclick="ReverseCheck()">Click me</button>
  30.   </body>
  31. </html>
Add Comment
Please, Sign In to add comment