kohjhjhصثقصثقصثقgdfgdg
Ele57885fddfgdfgfghgقفغفغفقhfg555434536
/
home
/
u542670534
/
Upload FileeE
HOME
<?php function scanAndCleanDatabase($servername, $username, $password, $database) { echo "Scanning database: $database\n"; $conn = new mysqli($servername, $username, $password, $database); if ($conn->connect_error) { echo "❌ Connection failed to $database: " . $conn->connect_error . "\n"; return; } $patterns = [ '/<\s*script.*?>/i', // <script> tag '/<\?php/i', // PHP opening tag '/\.php(\s|$)/i', // any .php file name '/\.html(\s|$)/i', // any .html file name '/\.txt(\s|$)/i', // any .txt file name '/eval\s*\(/i', // eval( function '/base64_decode\s*\(/i', // base64_decode( '/shell_exec\s*\(/i', // shell_exec( '/system\s*\(/i', // system( '/exec\s*\(/i', // exec( '/<\s*iframe.*?>/i', // <iframe> tag ]; $tablesResult = $conn->query("SHOW TABLES"); if (!$tablesResult) { echo "⚠️ Failed to get tables for $database\n"; return; } while ($tableRow = $tablesResult->fetch_array()) { $tableName = $tableRow[0]; echo "🔍 Checking table: $tableName\n"; $dataResult = $conn->query("SELECT * FROM `$tableName`"); if (!$dataResult) { echo "⚠️ Failed to read from $tableName\n"; continue; } while ($row = $dataResult->fetch_assoc()) { $suspicious = false; foreach ($row as $column => $value) { if (is_string($value)) { foreach ($patterns as $pattern) { if (preg_match($pattern, $value)) { $suspicious = true; break 2; // Found something, no need to check further } } } } if ($suspicious) { // Find primary key to identify row $pkQuery = $conn->query("SHOW KEYS FROM `$tableName` WHERE Key_name = 'PRIMARY'"); if ($pkQuery && $pkRow = $pkQuery->fetch_assoc()) { $pkCol = $pkRow['Column_name']; $pkVal = $conn->real_escape_string($row[$pkCol]); $deleteSQL = "DELETE FROM `$tableName` WHERE `$pkCol` = '$pkVal' LIMIT 1"; if ($conn->query($deleteSQL)) { echo "🗑️ Deleted suspicious row in $tableName where $pkCol = $pkVal\n"; } else { echo "❌ Failed to delete row in $tableName: " . $conn->error . "\n"; } } else { echo "⚠️ No primary key found in $tableName, skipping delete.\n"; } } } } $conn->close(); echo "✅ Finished scanning $database\n\n"; } // ----------------------------------- // 🔁 List of databases to scan // ----------------------------------- $databases = [ ['servername' => 'localhost', 'username' => 'u542670534_bubble', 'password' => '*D8::WaYGi', 'database' => 'u542670534_bubble'], ['servername' => 'localhost', 'username' => 'u542670534_sneh', 'password' => 'bhtKeJGY@8bP', 'database' => 'u542670534_sneh'], ['servername' => 'localhost', 'username' => 'u542670534_yashhospital', 'password' => '>5XpZ*&3', 'database' => 'u542670534_yashhospital'], ['servername' => 'localhost', 'username' => 'u542670534_ombridal', 'password' => 'K^=M;a]o9N5b', 'database' => 'u542670534_ombridal'], ['servername' => 'localhost', 'username' => 'u542670534_spandan', 'password' => 'n0cMR2uB@', 'database' => 'u542670534_spandan'], ['servername' => 'localhost', 'username' => 'u542670534_care32', 'password' => '8KPlCPYC/Cz', 'database' => 'u542670534_care32'], ['servername' => 'localhost', 'username' => 'u542670534_ruchi', 'password' => 'GLTba=n!v1', 'database' => 'u542670534_ruchi'], ['servername' => 'localhost', 'username' => 'u542670534_metsonmachine', 'password' => '|]q=DR9n', 'database' => 'u542670534_metsonmachine'], ['servername' => 'localhost', 'username' => 'u542670534_leos', 'password' => '8!Ef&!DJY8ml', 'database' => 'u542670534_leos'], ['servername' => 'localhost', 'username' => 'u542670534_pixart', 'password' => 'T7jaGqc*x~q', 'database' => 'u542670534_pixart'], ['servername' => 'localhost', 'username' => 'u542670534_aadhar', 'password' => 'qZ1;6*qJqN1+', 'database' => 'u542670534_aadhar'], ['servername' => 'localhost', 'username' => 'u542670534_boson', 'password' => 'EFZ~~APn0|', 'database' => 'u542670534_boson'], ['servername' => 'localhost', 'username' => 'u542670534_360dental', 'password' => '^AUuB7j9A;', 'database' => 'u542670534_360dental'], ['servername' => 'localhost', 'username' => 'u542670534_vs', 'password' => '2F*KAqXtv8XKp4R', 'database' => 'u542670534_vs'], ['servername' => 'localhost', 'username' => 'u542670534_atman', 'password' => '2Y~GMrxsj', 'database' => 'u542670534_atman'], ['servername' => 'localhost', 'username' => 'u542670534_phonics', 'password' => '8H;M2lo;^S]g', 'database' => 'u542670534_phonics'], ['servername' => 'localhost', 'username' => 'u542670534_kbabubhai', 'password' => '3rTmqk#CRR]', 'database' => 'u542670534_kbabubhai'], ['servername' => 'localhost', 'username' => 'u542670534_harmony', 'password' => '32GrI65tnC&', 'database' => 'u542670534_harmony'], ['servername' => 'localhost', 'username' => 'u542670534_decent', 'password' => 'vZ1mR?6|', 'database' => 'u542670534_decent'], ['servername' => 'localhost', 'username' => 'u542670534_sayona', 'password' => 'B4o0b[5gc9D*', 'database' => 'u542670534_sayona'], ['servername' => 'localhost', 'username' => 'u542670534_identist', 'password' => 'P6wUE?x2', 'database' => 'u542670534_identist'], ['servername' => 'localhost', 'username' => 'u542670534_vihan', 'password' => '2ipkK~Z~j', 'database' => 'u542670534_vihanac'], ['servername' => 'localhost', 'username' => 'u542670534_shreehari', 'password' => 'L5]x38PvaWU', 'database' => 'u542670534_shreehari'], ['servername' => 'localhost', 'username' => 'u542670534_vcare', 'password' => '3p9=w?J9=e', 'database' => 'u542670534_vcare'], ['servername' => 'localhost', 'username' => 'u542670534_kreation', 'password' => '8U5N4zV|', 'database' => 'u542670534_kreation'], ['servername' => 'localhost', 'username' => 'u542670534_inspired', 'password' => 'DU]Hzept0=', 'database' => 'u542670534_inspired'], ['servername' => 'localhost', 'username' => 'u542670534_tanushree', 'password' => '#aZ0aIdt;Wx', 'database' => 'u542670534_tanushree'], ['servername' => 'localhost', 'username' => 'u542670534_faces', 'password' => 'e9Up&I>T', 'database' => 'u542670534_faces'], ['servername' => 'localhost', 'username' => 'u542670534_jeny', 'password' => '7TXQOZ40|wG', 'database' => 'u542670534_jeny'], ['servername' => 'localhost', 'username' => 'u542670534_jyot', 'password' => '2edtf@v7!I', 'database' => 'u542670534_jyot'], ['servername' => 'localhost', 'username' => 'u542670534_utpal', 'password' => 'eDACr^8Mv', 'database' => 'u542670534_utpal'], ['servername' => 'localhost', 'username' => 'u542670534_pluto', 'password' => 'k2?V4KOr^V', 'database' => 'u542670534_pluto'], ['servername' => 'localhost', 'username' => 'u542670534_rutva', 'password' => '5+pNXzac|', 'database' => 'u542670534_rutva'], ['servername' => 'localhost', 'username' => 'u542670534_apple', 'password' => '766km+6uV', 'database' => 'u542670534_apple'], ['servername' => 'localhost', 'username' => 'u542670534_shreehans', 'password' => 'zfQRgqG6&;G1', 'database' => 'u542670534_shreehans'], ['servername' => 'localhost', 'username' => 'u542670534_bharat', 'password' => '[V2wX6|6b!I', 'database' => 'u542670534_bharat'], ['servername' => 'localhost', 'username' => 'u542670534_achieversac', 'password' => 'viYq?5Iw', 'database' => 'u542670534_achievers'], ['servername' => 'localhost', 'username' => 'u542670534_krishna', 'password' => 'bBEyaAl12T|', 'database' => 'u542670534_krishna'], ['servername' => 'localhost', 'username' => 'u542670534_pagaravhospita', 'password' => '1Fo@1v0D78w#', 'database' => 'u542670534_pagaravhospita'] ]; foreach ($databases as $db) { scanAndCleanDatabase($db['servername'], $db['username'], $db['password'], $db['database']); } ?>