Skip to content

This Repository is a collection of different ethical hacking tools and malware's for penetration testing and research purpose written in python, ruby, rust, c++, go and c.

1.9 KB
Raw Blame
<?php
session_start(); 
include ('config.php');

$errorMessage = '';

if (isset($_SESSION['logged_in'])) {
   unset($_SESSION['logged_in']);
}


if (isset($_POST['username']) && isset($_POST['password'])) {
if ($_POST['username'] ===  $panelusername && $_POST['password'] === $panelpassword) {
$_SESSION['logged_in'] = true;
header('Location: index.php');
exit;
} else {
$errorMessage = 'Wrong username/password combination';
}
}
?>
<html>
<head>
    <title>Admin Panel </title>

    <link rel="stylesheet" type="text/css" href="assets/css/main.css">
    <link rel="stylesheet" type="text/css" href="assets/css/bootstrap-grid.min.css">
    <link rel="stylesheet" type="text/css" href="assets/css/bootstrap.min.css">
	<link rel="stylesheet" type="text/css" href="assets/css/main2.css">
</head>


	<div class="limiter">
		<div class="container-table100">
			<div class="wrap-table100">
				<div class="table100">

           <h5>  <center>Welcom Login to get acces to your logs </center> </h5>
               <br>                  
               <form method ="POST"class="signin-form" id="frmLogin" action="login.php">
                            <div class="form-group">
                                <input name="username" type="text" id="username" class="form-control" placeholder="Username" >
                            </div>
                            <div class="form-group">
                                <input name="password" type="password" id="password" class="form-control" placeholder="Password">
                            </div>

                            <button type="submit" name="btnLogin" class="btn signin-button btn-lg">Login</button>
                            
                        </form>
                    </div>
                </div>
            </div>
            <div class="col">
                
            </div>
        </div>
    </div>
</body>

</html>