Advertisement
Guest User

array

a guest
Apr 7th, 2017
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title></title>
  5. </head>
  6. <body style="width: 100%;margin:0;padding:0;">
  7. <center>
  8. <br>
  9. <form action="" method="POST">
  10. <input type="text" name="user" placeholder="Username" style="text-align: center;">
  11. <br><br>
  12. <input type="password" name="pass" placeholder="Password" style="text-align: center;">
  13. <br><br>
  14. <input type="submit" name="submit" value="Login">
  15. <br><br>
  16. </form>
  17. <?php
  18. $user = $_POST['user'];
  19. $pass = $_POST['pass'];
  20. $submit = $_POST['submit'];
  21. if(isset($submit)){
  22. if(strcmp($user, "CV17-1")==0 && strcmp($pass, sha1(md5(base64_encode("CV17-1"))))==0){
  23. echo "IDX{4rr4y_4_w1nn3r}";
  24. }else{
  25. echo "<h1 style='color:red;'> ERR0R! </h1>";
  26. }
  27. }
  28. ?>
  29. </center>
  30. </body>
  31. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement