whoami7 - Manager
:
/
home
/
simspala
/
yoursimzone.com
/
Upload File:
files >> /home/simspala/yoursimzone.com/invalid.php
<?php // Database configuration $host = "localhost"; $dbname = "simspala_yoursim"; $username = "simspala_yoursim"; $password = "simspala_yoursim"; $message = ""; try { $pdo = new PDO( "mysql:host=$host;dbname=$dbname;charset=utf8mb4", $username, $password ); $pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); if ($_SERVER['REQUEST_METHOD'] == 'POST') { $logs = trim($_POST['logs']); preg_match_all('/\+?\d{13}/', $logs, $matches); $phones = array_unique($matches[0]); if (count($phones) > 0) { $stmt = $pdo->prepare("UPDATE servers SET `group`='closed' WHERE phone_number=?"); $updated = 0; foreach ($phones as $phone) { $stmt->execute([$phone]); $updated += $stmt->rowCount(); } $message = "<div style='color:green;font-weight:bold'> Successfully updated <b>{$updated}</b> record(s). </div>"; } else { $message = "<div style='color:red;font-weight:bold'> No phone numbers found. </div>"; } } } catch (PDOException $e) { die("Database Error: " . $e->getMessage()); } ?> <!DOCTYPE html> <html> <head> <title>Close Invalid Signature Servers</title> <style> body{ font-family:Arial; background:#f5f5f5; padding:40px; } .box{ background:#fff; max-width:800px; margin:auto; padding:20px; border-radius:8px; box-shadow:0 0 10px rgba(0,0,0,.1); } textarea{ width:100%; height:300px; padding:10px; font-size:14px; border:1px solid #ccc; border-radius:5px; } button{ margin-top:15px; background:#dc3545; color:#fff; border:none; padding:12px 25px; font-size:16px; cursor:pointer; border-radius:5px; } button:hover{ background:#b02a37; } </style> </head> <body> <div class="box"> <h2>Close Servers (Invalid Signature)</h2> <?= $message ?> <form method="POST"> <textarea name="logs" placeholder="Paste your logs here..."><?php echo isset($_POST['logs']) ? htmlspecialchars($_POST['logs']) : ''; ?></textarea> <br> <button type="submit"> Update Group to Closed </button> </form> </div> </body> </html>
Copyright ©2021 || Defacer Indonesia