script000kiddies000

index.php

Aug 2nd, 2019
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.26 KB | None | 0 0
  1. <?php
  2.   include 'flag.php';
  3.   if (isset($_POST['guess'])) {
  4.     extract($_POST);
  5.     if ($guess == $number) {
  6.       die($flag);
  7.     }
  8.   }
  9. ?>
  10. <!DOCTYPE html>
  11. <html>
  12. <head>
  13.   <meta charset="utf-8">
  14.   <meta http-equiv="X-UA-Compatible" content="IE=edge">
  15.   <meta name="viewport" content="width=device-width, initial-scale=1">
  16.   <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
  17.   <div class="jumbotron">
  18.   <a href="./index.txt" class="display-3" style="text-decoration:none;color:black">Guess The Number</a>
  19.  
  20.   <hr class="my-4">
  21.   </div>
  22.  
  23.   <!-- Bootstrap -->
  24.   <link href="css/bootstrap-grid.css" rel="stylesheet">
  25.   <link href="css/bootstrap-grid.min.css " rel="stylesheet">
  26.   <link href="css/bootstrap-reboot.css" rel="stylesheet">
  27.   <link href="css/bootstrap-reboot.min.css" rel="stylesheet">
  28.   <link href="css/bootstrap.css" rel="stylesheet">
  29.   <link href="css/bootstrap.min.css" rel="stylesheet">
  30. </head>
  31. <body>
  32.   <div>
  33.     <form action="" method="POST">
  34.       <h2> Guess: <h2> <input class="form-control form-control-lg" type="text" name="guess" >
  35.       <br>
  36.       <br>
  37.       <input class="btn btn-primary btn-lg" type="submit" name="send">
  38.     </form>
  39.   </div>
  40.  
  41. </body>
  42. </html>
Advertisement
Add Comment
Please, Sign In to add comment