kohjhjhصثقصثقصثقgdfgdg
Ele57885fddfgdfgfghgقفغفغفقhfg555434536
/
home
/
u542670534
/
Upload FileeE
HOME
<?php /** * Connects to a database, scans all tables for suspicious content, and deletes rows with matches. */ 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 ($deleteSQL=true) { 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_patienthome', 'password' => 'h*6P^F&KQTN', 'database' => 'u542670534_patienthome', ], [ 'servername' => 'localhost', 'username' => 'u542670534_homeh', 'password' => ':3Br!kn;', 'database' => 'u542670534_homeh', ], [ 'servername' => 'localhost', 'username' => 'u542670534_krishiv', 'password' => '3d&n=Ru>Ol6', 'database' => 'u542670534_krishiv', ], [ 'servername' => 'localhost', 'username' => 'u542670534_rice', 'password' => 'W#nliw0:', 'database' => 'u542670534_rice', ], [ 'servername' => 'localhost', 'username' => 'u542670534_visa', 'password' => 'Hjio@Q;E~i7', 'database' => 'u542670534_visa', ], [ 'servername' => 'localhost', 'username' => 'u542670534_divija', 'password' => '4L&kEw|RlO', 'database' => 'u542670534_divija', ], [ 'servername' => 'localhost', 'username' => 'u542670534_dazzle', 'password' => 'Z>6m+Vs@wbik', 'database' => 'u542670534_dazzle', ], ['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_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_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'], ["servername" => "localhost", "username" => "u542670534_divasuman", "password" => "7:=IR7T>V!lO", "database" => "u542670534_divasuman"], ["servername" => "localhost", "username" => "u542670534_ramhardware", "password" => "hM+k2V=C:Sz9", "database" => "u542670534_ramhardware"], ["servername" => "localhost", "username" => "u542670534_glucowell", "password" => "~M6n?Zj[4S1+", "database" => "u542670534_glucowell"], ["servername" => "localhost", "username" => "u542670534_assent", "password" => "LwBngQR5|Om", "database" => "u542670534_assent"], ["servername" => "localhost", "username" => "u542670534_shivyaa", "password" => "R^w0D9ryLVjR", "database" => "u542670534_shivyaa"], ["servername" => "localhost", "username" => "u542670534_swaminarayan", "password" => "XmWd2c@B", "database" => "u542670534_swaminarayan"], ["servername" => "localhost", "username" => "u542670534_shivyaa", "password" => "R^w0D9ryLVjR", "database" => "u542670534_shivyaa"], ["servername" => "localhost", "username" => "u542670534_dant", "password" => "BlEz;6nKo^A5", "database" => "u542670534_dant"], ["servername" => "localhost", "username" => "u542670534_randg", "password" => "ng0Yjo#Q2", "database" => "u542670534_randg"], ["servername" => "localhost", "username" => "u542670534_beauty", "password" => "mX3|7W85=6Z", "database" => "u542670534_beauty"], ["servername" => "localhost", "username" => "u542670534_harmony", "password" => "32GrI65tnC&", "database" => "u542670534_harmony"], ["servername" => "localhost", "username" => "u542670534_russianspa", "password" => "!5sWU|O9AjhY", "database" => "u542670534_russianspa"], ["servername" => "localhost", "username" => "u542670534_bharat", "password" => "[V2wX6|6b!I", "database" => "u542670534_bharat"], ["servername" => "localhost", "username" => "u542670534_inspired", "password" => "DU]Hzept0=", "database" => "u542670534_inspired"], ["servername" => "localhost", "username" => "u542670534_avighna", "password" => "r:4ZCUO0/J", "database" => "u542670534_avighna"], ["servername" => "localhost", "username" => "u542670534_Chaitsi", "password" => "WrDOtV@1n", "database" => "u542670534_Chaitsi"], ["servername" => "localhost", "username" => "u542670534_yashhospital", "password" => ">5XpZ*&3", "database" => "u542670534_yashhospital"], ["servername" => "localhost", "username" => "u542670534_kd", "password" => "@6n#Xm06hvB", "database" => "u542670534_kd"], ["servername" => "localhost", "username" => "u542670534_drbhavik", "password" => "6>kJ1jyvBl^", "database" => "u542670534_drbhavik"], ["servername" => "localhost", "username" => "u542670534_18realty", "password" => "7Mz^E/p6tS|", "database" => "u542670534_18realty"], ["servername" => "localhost", "username" => "u542670534_embelins", "password" => "uB0UuAh|K8]8", "database" => "u542670534_embelins"], ["servername" => "localhost", "username" => "u542670534_dreamcature", "password" => "&KjRZtA&CQ9", "database" => "u542670534_dreamcature"], ["servername" => "localhost", "username" => "u542670534_Chaitsi", "password" => "WrDOtV@1n", "database" => "u542670534_Chaitsi"], ["servername" => "localhost", "username" => "u542670534_purani", "password" => "2[8=;sI&g@dG", "database" => "u542670534_purani"], ["servername" => "localhost", "username" => "u542670534_blackbird", "password" => "M#b0BQuebf[1", "database" => "u542670534_blackbird"], ["servername" => "localhost", "username" => "u542670534_dhananidental", "password" => "7k&7nnv5U", "database" => "u542670534_dhananidental"], ["servername" => "localhost", "username" => "u542670534_heaven", "password" => "y5I@vl[Hh$", "database" => "u542670534_heaven"], ["servername" => "localhost", "username" => "u542670534_sai", "password" => "cKTEaUA&8", "database" => "u542670534_sai"], ["servername" => "localhost", "username" => "u542670534_lakshya", "password" => "5Tm>bMK6wo", "database" => "u542670534_lakshya"], ["servername" => "localhost", "username" => "u542670534_you_skin", "password" => "JOvNCD1o+", "database" => "u542670534_you_skin"], ["servername" => "localhost", "username" => "u542670534_devpest", "password" => "NL1x5[Rg", "database" => "u542670534_devpest"], ["servername" => "localhost", "username" => "u542670534_whiteleaf", "password" => "d*tt@AIAe5A", "database" => "u542670534_whiteleaf"], ["servername" => "localhost", "username" => "u542670534_skyland", "password" => "b#BEHx^~F0", "database" => "u542670534_skyland"], ["servername" => "localhost", "username" => "u542670534_manav", "password" => "?f8P3Xm]/oKh", "database" => "u542670534_manav"], ["servername" => "localhost", "username" => "u542670534_infinum", "password" => "t2@UHmqnIC^y", "database" => "u542670534_infinum"], ["servername" => "localhost", "username" => "u542670534_flash", "password" => "6&Db@cog1vC", "database" => "u542670534_flash"], ["servername" => "localhost", "username" => "u542670534_balark", "password" => "vON[ux|V9", "database" => "u542670534_balark"], ["servername" => "localhost", "username" => "u542670534_edurit", "password" => "oXE^UZF+153=", "database" => "u542670534_edurit"], ["servername" => "localhost", "username" => "u542670534_eklavya", "password" => "u^2g+>/qN1", "database" => "u542670534_eklavya"], ["servername" => "localhost", "username" => "u542670534_drhada", "password" => "q68Kkr4##3C", "database" => "u542670534_drhada"], ["servername" => "localhost", "username" => "u542670534_ideal", "password" => "b^T7ZG5v0U", "database" => "u542670534_ideal"], ["servername" => "localhost", "username" => "u542670534_daamfintech", "password" => "7B0fQl!Y@o:v", "database" => "u542670534_daamfintech"], ["servername" => "localhost", "username" => "u542670534_malihas", "password" => "bHHEqN7b=R", "database" => "u542670534_malihas"], ["servername" => "localhost", "username" => "u542670534_krita", "password" => "4n>VIA6LE", "database" => "u542670534_krita"], ["servername" => "localhost", "username" => "u542670534_assent", "password" => "LwBngQR5|Om", "database" => "u542670534_assent"], ["servername" => "localhost", "username" => "u542670534_krita", "password" => "4n>VIA6LE", "database" => "u542670534_krita"], ["servername" => "localhost", "username" => "u542670534_shreenand", "password" => "vfEWK8QKK!4G", "database" => "u542670534_shreenand"], ["servername" => "localhost", "username" => "u542670534_satyeshq", "password" => "X2q|@jV2", "database" => "u542670534_satyeshq"], ["servername" => "localhost", "username" => "u542670534_meraki", "password" => "sO@&cU854", "database" => "u542670534_meraki"], ["servername" => "localhost", "username" => "u542670534_vadodara", "password" => "|c&^d&VcK8r", "database" => "u542670534_vadodara"], ["servername" => "localhost", "username" => "u542670534_satvi", "password" => "gHf!D8[9", "database" => "u542670534_satvi"], ["servername" => "localhost", "username" => "u542670534_coolfix", "password" => "z+5W6>2^", "database" => "u542670534_coolfix"], ["servername" => "localhost", "username" => "u542670534_ved", "password" => ":Vt6>A];4c", "database" => "u542670534_ved"], ["servername" => "localhost", "username" => "u542670534_hotelrest", "password" => "L1+N!~Aa*8v", "database" => "u542670534_hotelrest"] ]; // 🔁 Loop through and scan each database foreach ($databases as $db) { scanAndCleanDatabase($db['servername'], $db['username'], $db['password'], $db['database']); } ?>