Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <title></title>
- </head>
- <body>
- <center><h1>Login</h1></center>
- <form action="/esteerceempe/prob.php" method="POST">
- <p>
- <br>Username:</br>
- <input type="text" name="username">
- <br>Password:<br>
- <input type="text" name="password"></br>
- <br><input type="submit" value="Login"></br>
- </p>
- <?php
- $PASSWORD = "PETIR{strcmp_VuLn_st1LL__3x1sT}";
- $USERNAME = "administrator";
- if(isset($_POST['username']))
- {
- if($_POST['username'] === $USERNAME)
- {
- if(isset($_POST['password']))
- {
- if(strcmp($PASSWORD, $_POST['password']) == 0)
- {
- echo $PASSWORD;
- }
- else
- {
- echo "wrong password";
- }
- }
- }
- }
- ?>
- </form>
- <!-- source at source.txt -->
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement