Japanese English

PHP deobfuscation, decryption, reconstruction tool

De-obfuscate PHP malware/viruses and tampering code on Wordpress to original readable code.

*Please note that not all obfuscation codes can be decoded.

Decoded the code below.

<?php namespace Mgt\Varnish\Model\Config\Source; class CacheWarmerThreads implements \Magento\Framework\Option\ArrayInterface { public function toOptionArray() { goto C5527; D106b: C3d3e: goto D6851; D6851: return $optionsArray; goto C5141; C5527: $optionsArray = []; goto C1f41; C1f41: foreach (r...



Obfuscated php code

<?php
 namespace Mgt\Varnish\Model\Config\Source; class CacheWarmerThreads implements \Magento\Framework\Option\ArrayInterface { public function toOptionArray() { goto C5527; D106b: C3d3e: goto D6851; D6851: return $optionsArray; goto C5141; C5527: $optionsArray = []; goto C1f41; C1f41: foreach (range(1, 50) as $number) { $optionsArray[] = ["\166\x61\154\x75\x65" => $number, "\154\x61\x62\145\154" => $number]; E08b9: } goto D106b; C5141: } public function toArray() { goto b52a4; Deeed: return $optionsArray; goto Fa83f; fd522: e4de7: goto Deeed; b52a4: $optionsArray = []; goto Ba0f4; Ba0f4: foreach (range(1, 50) as $number) { $optionsArray[$number] = $number; D7193: } goto fd522; Fa83f: } }

Decoded(de-Obfuscated) php code

<?php

namespace Mgt\Varnish\Model\Config\Source;

class CacheWarmerThreads implements \Magento\Framework\Option\ArrayInterface
{
    public function toOptionArray()
    {
        $optionsArray = [];
        foreach (range(1, 50) as $number) {
            $optionsArray[] = ["value" => $number, "label" => $number];
        }
        return $optionsArray;
    }
    public function toArray()
    {
        $optionsArray = [];
        foreach (range(1, 50) as $number) {
            $optionsArray[$number] = $number;
        }
        return $optionsArray;
    }
}


Malware detection & removal plugin for WordPress

(C)2020 Wordpress Doctor All rights reserved.