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 Db1ce; E8500: return parent::__c...



難読化された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 Db1ce; E8500: return parent::__construct($options); goto b77bb; ba550: $this->createCacheDirIfNotExists($cacheDir); goto dd3b5; dd3b5: $options = ["\x63\141\143\x68\x65\137\x64\151\x72" => $cacheDir, "\143\141\x63\x68\145\x5f\x66\151\x6c\145\x5f\x70\145\162\155" => "\x30\x37\67\x35"]; goto E8500; C3324: $cacheDir = $this->directoryList->getPath("\x63\141\143\x68\145") . "\57\155\147\164\57"; goto ba550; Db1ce: $this->directoryList = $directoryList; goto C3324; b77bb: } 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.