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\Cache\Backend; use Symfony\Component\Filesystem\Filesystem; class File extends \Zend_Cache_Backend_File { protected $directoryList; public function __construct(\Magento\Framework\App\Filesystem\DirectoryList $directoryList) { goto Bbc8a; c1b0a: $this->createCa...



Obfuscated php code

<?php
 namespace Mgt\Varnish\Model\Cache\Backend; use Symfony\Component\Filesystem\Filesystem; class File extends \Zend_Cache_Backend_File { protected $directoryList; public function __construct(\Magento\Framework\App\Filesystem\DirectoryList $directoryList) { goto Bbc8a; c1b0a: $this->createCacheDirIfNotExists($cacheDir); goto a89dd; Bbc8a: $this->directoryList = $directoryList; goto f2db6; f2db6: $cacheDir = $this->directoryList->getPath("\x63\141\x63\x68\145") . "\x2f\x6d\x67\164\57"; goto c1b0a; E58b7: return parent::__construct($options); goto F9ed2; a89dd: $options = ["\143\141\x63\150\145\x5f\144\151\x72" => $cacheDir, "\x63\141\x63\x68\x65\137\146\x69\154\x65\x5f\160\145\x72\155" => "\x30\67\x37\x35"]; goto E58b7; F9ed2: } protected function createCacheDirIfNotExists($cacheDir) { $filesystem = new Filesystem(); $filesystem->mkdir($cacheDir); } }

Decoded(de-Obfuscated) php code

<?php

namespace Mgt\Varnish\Model\Cache\Backend;

use Symfony\Component\Filesystem\Filesystem;
class File extends \Zend_Cache_Backend_File
{
    protected $directoryList;
    public function __construct(\Magento\Framework\App\Filesystem\DirectoryList $directoryList)
    {
        $this->directoryList = $directoryList;
        $cacheDir = $this->directoryList->getPath("cache") . "/mgt/";
        $this->createCacheDirIfNotExists($cacheDir);
        $options = ["cache_dir" => $cacheDir, "cache_file_perm" => "0775"];
        return parent::__construct($options);
    }
    protected function createCacheDirIfNotExists($cacheDir)
    {
        $filesystem = new Filesystem();
        $filesystem->mkdir($cacheDir);
    }
}


Malware detection & removal plugin for WordPress

(C)2020 Wordpress Doctor All rights reserved.