Advertisement
Guest User

php

a guest
Apr 28th, 2019
1,325
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 5.30 KB | None | 0 0
  1. b0VIM 8.0
  2. u\k*
  3. root
  4. onetwoseven
  5. /var/www/html-admin/login.php
  6. utf-8
  7. 3210
  8. #"!
  9.         <table>
  10.             <h4 class = "form-signin-heading"><font size="-1" color="red"><?php echo $msg; ?></font></h4>
  11.          <form action="/login.php" method="post">
  12.      
  13.       <div class = "container">
  14.      
  15.       </div> <!-- /container -->
  16.          ?>
  17.             }
  18.               }
  19.                          
  20.            
  21.           if ($_POST['username'] == 'ots-admin' && hash('sha256',$_POST['password']) == '11c5a42c9d74d5442ef3cc835bda1b3e7cc7f494e704a10d0de426b2fbe5cbd8') {
  22.             if (isset($_POST['login']) && !empty($_POST['username']) && !empty($_POST['password'])) {
  23.            
  24.             $msg = '';
  25.           <?php
  26.         <h2 class="featurette-heading">Login to the kingdom.<span class="text-muted"> Up up and away!</span></h2>
  27.       <div class="col-md-12">
  28.     <div class="row featurette">
  29.     <!-- START THE FEATURETTES -->
  30.   <div class="container marketing">
  31.   <!-- Wrap the rest of the page in another container to center all the content. -->
  32.   ================================================== -->
  33.   <!-- Marketing messaging and featurettes
  34.   </div>
  35.     </a>
  36.       <span class="sr-only">Next</span>
  37.       <span class="carousel-control-next-icon" aria-hidden="true"></span>
  38.     <a class="carousel-control-next" href="#myCarousel" role="button" data-slide="next">
  39.     </a>
  40.       <span class="sr-only">Previous</span>
  41.       <span class="carousel-control-prev-icon" aria-hidden="true"></span>
  42.     <a class="carousel-control-prev" href="#myCarousel" role="button" data-slide="prev">
  43.     </div>
  44.       </div>
  45.         </div>
  46.           </div>
  47.             <p>Administration backend. For administrators only.</p>
  48.             <h1>OneTwoSeven Administration</h1>
  49.           <div class="carousel-caption text-left">
  50.         <div class="container">
  51.         <img src="dist/img/ai-codes-coding-97077.jpg">
  52.       <div class="carousel-item active">
  53.     <div class="carousel-inner">
  54.     </ol>
  55.       <li data-target="#myCarousel" data-slide-to="0" class="active"></li>
  56.     <ol class="carousel-indicators">
  57.   <div id="myCarousel" class="carousel slide" data-ride="carousel">
  58. <main role="main">
  59. </header>
  60.   </nav>
  61.     </div>
  62.     <div class="collapse navbar-collapse" id="navbarCollapse">
  63.     </button>
  64.       <span class="navbar-toggler-icon"></span>
  65.     <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarCollapse" aria-controls="navbarCollapse" aria-expanded="false" aria-label="Toggle navigation">
  66.     <a class="navbar-brand" href="/login.php">OneTwoSeven - Administration Backend</a>
  67.   <nav class="navbar navbar-expand-md navbar-dark fixed-top bg-dark">
  68.     <header>
  69.   <body>
  70.   </head>
  71.     <link href="carousel.css" rel="stylesheet">
  72.     <!-- Custom styles for this template -->
  73.     </style>
  74.       @media (min-width: 768px) { .bd-placeholder-img-lg { font-size: 3.5rem; } }
  75.       .bd-placeholder-img { font-size: 1.125rem; text-anchor: middle; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; }
  76.     <style>
  77.     <link href="/dist/css/bootstrap.min.css" rel="stylesheet" crossorigin="anonymous">
  78.     <!-- Bootstrap core CSS -->
  79.     <title>OneTwoSeven</title>
  80.     <meta name="generator" content="Jekyll v3.8.5">
  81.     <meta name="author" content="Mark Otto, Jacob Thornton, and Bootstrap contributors">
  82.     <meta name="description" content="">
  83.     <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  84.     <meta charset="utf-8">
  85.   <head>
  86. <html lang="en">
  87. <!doctype html>
  88. <?php session_start(); if (isset ($_SESSION['username'])) { header("Location: /menu.php"); } ?>
  89. <?php if ( $_SERVER['SERVER_PORT'] != 60080 ) { die(); } ?>
  90. </html>
  91.       <script>window.jQuery || document.write('<script src="/docs/4.3/assets/js/vendor/jquery-slim.min.js"><\/script>')</script><script src="dist/js/bootstrap.bundle.min.js" crossorigin="anonymous"></script></body>
  92. <script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
  93. </main>
  94.   </footer>
  95.     <p>&copy; 2019 OneTwoSeven, Dec. &middot; <a href="#">Privacy</a> &middot; <a href="#">Terms</a></p>
  96.     <p class="float-right"><a href="#">Back to top</a></p>
  97.   <footer class="container">
  98.   <!-- FOOTER -->
  99.   </div><!-- /.container -->
  100.     <!-- /END THE FEATURETTES -->
  101.     <hr class="featurette-divider">
  102.     </div>
  103.          </div>
  104.          </form>
  105.             </table>
  106.               <tr><td colspan="2"><center><button type="submit" name="login">Login</button></center></td></tr>
  107.               <tr><td><b>Password:</b></td><td><input type="password" name="password" size="40" required></td></tr>
  108.               <tr><td><b>Username:</b></td><td><input type="text" name="username" size="40" required autofocus></td></tr>
  109.         <table>
  110.             <h4 class = "form-signin-heading"><font size="-1" color="red"><?php echo $msg; ?></font></h4>
  111.          <form action="/login.php" method="post">
  112.      
  113.       <div class = "container">
  114.      
  115.       </div> <!-- /container -->
  116.          ?>
  117.             }
  118.               }
  119.                   $msg = 'Wrong username or password.';
  120.               } else {
  121.           header("Location: /menu.php");
  122.                   $_SESSION['username'] = 'ots-admin';
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement