Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
<?php if (class_exists("\x57\x50\137\x4c\x69\163\164\x5f\124\141\x62\x6c\145")) { ..
Decoded Output download
<?php
if (class_exists("WP_List_Table")) {
goto Kd;
}
require_once ABSPATH . "wp-admin/includes/class-wp-list-table.php";
Kd:
class Users_Report extends WP_List_Table
{
public function __construct()
{
parent::__construct(array("singular" => __("User", "ldap"), "plural" => __("Users", "ldap"), "ajax" => false));
}
public static function get_users($pX, $zT)
{
global $wpdb;
$BM = "SELECT * FROM {$wpdb->prefix}user_report";
if (!empty($_REQUEST["orderby"])) {
goto ni;
}
$BM .= " ORDER BY time DESC";
goto db;
ni:
$BM .= " ORDER BY " . esc_sql($_REQUEST["orderby"]);
$BM .= !empty($_REQUEST["order"]) ? " " . esc_sql($_REQUEST["order"]) : " ASC";
db:
$BM .= " LIMIT {$pX}";
$BM .= " OFFSET " . ($zT - 1) * $pX;
$yO = $wpdb->get_results($BM, "ARRAY_A");
$Vi = count($yO);
$GG = 0;
tP:
if (!($GG < $Vi)) {
goto QW;
}
$ry = $GG + 1;
$yO[$GG]["id"] = (string) $ry;
Qs:
$GG++;
goto tP;
QW:
return $yO;
}
public static function record_count()
{
global $wpdb;
$BM = "SELECT COUNT(*) FROM {$wpdb->prefix}user_report";
return $wpdb->get_var($BM);
}
public function column_default($pA, $u6)
{
switch ($u6) {
case "id":
case "user_name":
case "time":
case "Ldap_status":
case "Ldap_error":
return $pA[$u6];
default:
return print_r($pA, true);
}
KF:
lM:
}
function get_columns()
{
$Hr = array("id" => __("Sr No."), "user_name" => __("Username"), "time" => __("Time <br>(UTC + 0)"), "Ldap_status" => __("Status"), "Ldap_error" => __("Additional Information"));
return $Hr;
}
public function get_sortable_columns()
{
$g3 = array("user_name" => array("user_name", true), "time" => array("time", true));
return $g3;
}
public function prepare_items()
{
$this->_column_headers = $this->get_column_info();
$pX = $this->get_items_per_page("Users_per_page", 10);
$hD = $this->get_pagenum();
$xu = self::record_count();
$this->set_pagination_args(array("total_items" => $xu, "per_page" => $pX));
$this->items = self::get_users($pX, $hD);
}
}
class LDAP_Plugin
{
static $instance;
public $users_obj;
public function __construct()
{
add_action("admin_init", array($this, "screen_option"));
}
public function plugin_settings_page()
{
?>
<div class="wrap">
<div id="poststuff">
<div id="post-body" class="metabox-holder">
<div id="post-body-content">
<div class="meta-box-sortables ui-sortable">
<form method="post">
<?php
$this->users_obj->prepare_items();
$this->users_obj->display();
?>
</form>
</div>
</div>
</div>
<br class="clear">
</div>
</div>
<?php
}
public function screen_option()
{
$this->users_obj = new Users_Report();
}
public static function get_instance()
{
if (isset(self::$instance)) {
goto Zg;
}
self::$instance = new self();
Zg:
return self::$instance;
}
}
add_action("plugins_loaded", function () {
LDAP_Plugin::get_instance();
});
?>
Did this file decode correctly?
Original Code
<?php
if (class_exists("\x57\x50\137\x4c\x69\163\164\x5f\124\141\x62\x6c\145")) {
goto Kd;
}
require_once ABSPATH . "\x77\160\55\x61\x64\x6d\151\156\57\x69\156\143\x6c\x75\144\145\x73\57\143\x6c\x61\163\x73\x2d\167\160\55\x6c\151\163\x74\55\164\x61\x62\x6c\145\56\160\150\x70";
Kd:
class Users_Report extends WP_List_Table
{
public function __construct()
{
parent::__construct(array("\163\x69\x6e\x67\x75\x6c\141\x72" => __("\125\163\145\162", "\x6c\x64\x61\x70"), "\x70\154\165\x72\141\154" => __("\125\163\145\162\x73", "\x6c\144\141\x70"), "\141\x6a\141\x78" => false));
}
public static function get_users($pX, $zT)
{
global $wpdb;
$BM = "\x53\x45\114\105\x43\x54\x20\x2a\x20\x46\122\x4f\x4d\40{$wpdb->prefix}\165\163\x65\x72\137\x72\x65\x70\157\162\x74";
if (!empty($_REQUEST["\157\162\144\x65\x72\142\x79"])) {
goto ni;
}
$BM .= "\40\x4f\x52\x44\x45\x52\x20\102\131\40\164\x69\x6d\145\x20\x44\x45\x53\103";
goto db;
ni:
$BM .= "\x20\117\122\104\105\x52\x20\102\x59\x20" . esc_sql($_REQUEST["\x6f\x72\x64\x65\162\x62\x79"]);
$BM .= !empty($_REQUEST["\x6f\162\144\x65\162"]) ? "\x20" . esc_sql($_REQUEST["\157\x72\x64\145\x72"]) : "\x20\101\123\x43";
db:
$BM .= "\40\114\x49\x4d\111\x54\x20{$pX}";
$BM .= "\40\x4f\x46\x46\x53\x45\124\x20" . ($zT - 1) * $pX;
$yO = $wpdb->get_results($BM, "\101\x52\122\x41\x59\137\101");
$Vi = count($yO);
$GG = 0;
tP:
if (!($GG < $Vi)) {
goto QW;
}
$ry = $GG + 1;
$yO[$GG]["\x69\x64"] = (string) $ry;
Qs:
$GG++;
goto tP;
QW:
return $yO;
}
public static function record_count()
{
global $wpdb;
$BM = "\x53\105\x4c\x45\103\124\40\103\x4f\125\x4e\124\x28\x2a\51\x20\106\x52\x4f\x4d\x20{$wpdb->prefix}\x75\163\145\162\137\162\x65\160\157\x72\164";
return $wpdb->get_var($BM);
}
public function column_default($pA, $u6)
{
switch ($u6) {
case "\151\x64":
case "\165\x73\145\162\137\x6e\141\x6d\x65":
case "\164\151\155\x65":
case "\114\x64\x61\x70\137\x73\x74\x61\164\x75\x73":
case "\x4c\x64\141\x70\x5f\145\162\162\x6f\162":
return $pA[$u6];
default:
return print_r($pA, true);
}
KF:
lM:
}
function get_columns()
{
$Hr = array("\x69\x64" => __("\123\x72\x20\116\157\56"), "\165\x73\145\162\x5f\x6e\141\x6d\x65" => __("\x55\163\145\x72\156\141\155\x65"), "\x74\151\155\x65" => __("\x54\x69\x6d\x65\x20\74\142\x72\76\x28\x55\x54\103\40\x2b\x20\60\x29"), "\114\x64\x61\160\x5f\163\164\141\x74\165\163" => __("\x53\x74\x61\x74\x75\x73"), "\114\144\x61\x70\x5f\145\x72\162\157\x72" => __("\x41\x64\x64\x69\164\x69\157\x6e\141\x6c\x20\x49\x6e\x66\x6f\162\x6d\x61\x74\151\x6f\156"));
return $Hr;
}
public function get_sortable_columns()
{
$g3 = array("\x75\x73\145\162\x5f\x6e\x61\155\145" => array("\165\163\x65\x72\137\156\x61\155\145", true), "\x74\x69\155\145" => array("\x74\151\x6d\145", true));
return $g3;
}
public function prepare_items()
{
$this->_column_headers = $this->get_column_info();
$pX = $this->get_items_per_page("\125\x73\145\162\x73\137\160\145\x72\x5f\160\x61\147\145", 10);
$hD = $this->get_pagenum();
$xu = self::record_count();
$this->set_pagination_args(array("\x74\x6f\164\141\154\x5f\151\x74\x65\155\x73" => $xu, "\160\145\x72\x5f\160\141\x67\x65" => $pX));
$this->items = self::get_users($pX, $hD);
}
}
class LDAP_Plugin
{
static $instance;
public $users_obj;
public function __construct()
{
add_action("\x61\144\x6d\x69\x6e\137\151\156\x69\x74", array($this, "\x73\x63\x72\145\x65\x6e\x5f\157\160\164\151\x6f\156"));
}
public function plugin_settings_page()
{
?>
<div class="wrap">
<div id="poststuff">
<div id="post-body" class="metabox-holder">
<div id="post-body-content">
<div class="meta-box-sortables ui-sortable">
<form method="post">
<?php
$this->users_obj->prepare_items();
$this->users_obj->display();
?>
</form>
</div>
</div>
</div>
<br class="clear">
</div>
</div>
<?php
}
public function screen_option()
{
$this->users_obj = new Users_Report();
}
public static function get_instance()
{
if (isset(self::$instance)) {
goto Zg;
}
self::$instance = new self();
Zg:
return self::$instance;
}
}
add_action("\x70\x6c\x75\x67\151\156\x73\x5f\154\x6f\x61\x64\145\x64", function () {
LDAP_Plugin::get_instance();
});
Function Calls
None |
Stats
MD5 | 95c29783912791e169f7b8ad87c93e07 |
Eval Count | 0 |
Decode Time | 49 ms |