Advertisement
Guest User

test

a guest
Jan 6th, 2019
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title></title>
  5. </head>
  6. <body>
  7. <center><h1>Login</h1></center>
  8. <form action="/esteerceempe/prob.php" method="POST">
  9. <p>
  10. <br>Username:</br>
  11. <input type="text" name="username">
  12. <br>Password:<br>
  13. <input type="text" name="password"></br>
  14. <br><input type="submit" value="Login"></br>
  15. </p>
  16. <?php
  17. $PASSWORD = "PETIR{strcmp_VuLn_st1LL__3x1sT}";
  18. $USERNAME = "administrator";
  19.  
  20. if(isset($_POST['username']))
  21. {
  22. if($_POST['username'] === $USERNAME)
  23. {
  24.  
  25. if(isset($_POST['password']))
  26. {
  27. if(strcmp($PASSWORD, $_POST['password']) == 0)
  28. {
  29. echo $PASSWORD;
  30. }
  31. else
  32. {
  33. echo "wrong password";
  34. }
  35. }
  36. }
  37.  
  38.  
  39. }
  40.  
  41.  
  42.  
  43. ?>
  44. </form>
  45. <!-- source at source.txt -->
  46. </body>
  47. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement