Japanese English

PHP 難読化コードの復元・デコード

Wordpress 等でのPHPのマルウェア・ウィルス・改ざんコードをデコードして難読化をオンラインで解除し、
元の読みやすいコードに戻し解読できます。

※すべての難読化コードを解除できるわけではございませんのでご理解とご了承をお願いいたします。

下記のコードを難読化解除しました

<?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...



難読化されたPHPコード

<?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); } }

デコード(難読化解除)されたコード

<?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);
    }
}


■【無料】ワードプレス:マルウェアスキャン&セキュリティープラグイン [マルウェア・ウィルス検出と駆除]

■WordPress のマルウェア駆除、セキュリティー対策 カスタマイズや修正、引っ越し・復旧のご依頼承ります

(C)2019 ワードプレス ドクター All rights reserved.