Advertisement
KeyStrOke

src

Apr 12th, 2015
215
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.14 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>HackFest - WEB200</title>
  6. <link rel='stylesheet' href='css/jquery-ui.css'>
  7. <link rel="stylesheet" href="css/style.css">
  8. </head>
  9. <body>
  10. <?php if (isset($_POST['user']) && isset($_POST['login'])){
  11. require_once 'func.php'; // http://192.168.1.251/web200/func.txt
  12. include 'config.php';
  13. $hashed_input = digest(custom_crc($_POST['pass']));
  14. if ($_POST['user'] === 'admin' && $hashed_input === "bae0eda7") {
  15. showFlag();
  16. } else {
  17. wrong();
  18. }
  19. } ?>
  20. <div class="login-card">
  21. <h1>Log-in</h1><br>
  22. <form method="post">
  23. <input type="text" name="user" placeholder="Username">
  24. <input type="password" name="pass" placeholder="Password">
  25. <input type="submit" name="login" class="login login-submit" value="login">
  26. <a href="?show_source" title="">Show source</a>
  27. </form>
  28. </div>
  29. <?php if (isset($_GET['show_source'])) { ?>
  30. <div class="source">
  31. <?php show_source(__FILE__) ?>
  32. </div>
  33. <?php } ?>
  34. <script src='js/jquery_and_jqueryui.js'></script>
  35. </body>
  36. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement