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\Block\Adminhtml\System\Config\Form\Field; class License extends \Magento\Config\Block\System\Config\Form\Field { protected $license; public function __construct(\Magento\Backend\Block\Template\Context $context, \Mgt\Varnish\Model\License $license, array $data = []) { $...



Obfuscated php code

<?php
 namespace Mgt\Varnish\Block\Adminhtml\System\Config\Form\Field; class License extends \Magento\Config\Block\System\Config\Form\Field { protected $license; public function __construct(\Magento\Backend\Block\Template\Context $context, \Mgt\Varnish\Model\License $license, array $data = []) { $this->license = $license; parent::__construct($context, $data); } public function render(\Magento\Framework\Data\Form\Element\AbstractElement $element) { goto B29ab; Ead83: $element->setDisabled(true); goto cf4fc; B29ab: $isCheckboxRequired = $this->_isInheritCheckboxRequired($element); goto d41fc; e97fd: return $this->_decorateRowHtml($element, $html); goto Ff327; d41fc: if (!($element->getInherit() == 1 && $isCheckboxRequired)) { goto cda9f; } goto Ead83; d513d: $html = "\74\x74\x64\x20\143\x6c\x61\x73\163\x3d\x22\x6c\x61\142\145\x6c\42\76\x3c\x6c\141\142\x65\154\40\x66\x6f\162\x3d\x22" . $element->getHtmlId() . "\42\x3e\x3c\163\160\x61\x6e" . $this->_renderScopeLabel($element) . "\x3e" . $element->getLabel() . "\74\57\163\160\x61\x6e\x3e\74\x2f\x6c\141\x62\x65\154\x3e\74\x2f\x74\144\76"; goto dcf67; dcf67: $html .= $this->_renderValue($element); goto d6588; d6588: $html .= $this->_renderHint($element); goto e97fd; cf4fc: cda9f: goto d513d; Ff327: } protected function _renderValue(\Magento\Framework\Data\Form\Element\AbstractElement $element) { goto daba6; E4cd4: if (!$element->getComment()) { goto a6b21; } goto D467c; e7366: $html .= "\74\57\x74\144\76"; goto fdff1; fdff1: return $html; goto a59da; F0bc7: if (!$licensedDomains) { goto b29a8; } goto f3f5a; B474f: a6b21: goto e7366; daba6: $html = "\x3c\x74\x64\x20\143\154\x61\x73\x73\75\x22\x76\141\x6c\x75\x65\x22\x3e"; goto C9da6; f3f5a: $html .= implode("\x3c\142\x72\76", $licensedDomains); goto faa9a; D467c: $html .= "\74\160\40\143\154\141\x73\x73\75\42\x6e\157\164\145\x22\76\x3c\x73\160\141\156\x3e" . $element->getComment() . "\74\57\163\160\x61\156\x3e\x3c\x2f\x70\76"; goto B474f; faa9a: b29a8: goto E4cd4; C9da6: $licensedDomains = $this->license->getDomains(); goto F0bc7; a59da: } }

Decoded(de-Obfuscated) php code

<?php

namespace Mgt\Varnish\Block\Adminhtml\System\Config\Form\Field;

class License extends \Magento\Config\Block\System\Config\Form\Field
{
    protected $license;
    public function __construct(\Magento\Backend\Block\Template\Context $context, \Mgt\Varnish\Model\License $license, array $data = array())
    {
        $this->license = $license;
        parent::__construct($context, $data);
    }
    public function render(\Magento\Framework\Data\Form\Element\AbstractElement $element)
    {
        $isCheckboxRequired = $this->_isInheritCheckboxRequired($element);
        if (!($element->getInherit() == 1 && $isCheckboxRequired)) {
            goto cda9f;
        }
        $element->setDisabled(true);
        cda9f:
        $html = "<td class=\"label\"><label for=\"" . $element->getHtmlId() . "\"><span" . $this->_renderScopeLabel($element) . ">" . $element->getLabel() . "</span></label></td>";
        $html .= $this->_renderValue($element);
        $html .= $this->_renderHint($element);
        return $this->_decorateRowHtml($element, $html);
    }
    protected function _renderValue(\Magento\Framework\Data\Form\Element\AbstractElement $element)
    {
        $html = "<td class=\"value\">";
        $licensedDomains = $this->license->getDomains();
        if (!$licensedDomains) {
            goto b29a8;
        }
        $html .= implode("<br>", $licensedDomains);
        b29a8:
        if (!$element->getComment()) {
            goto a6b21;
        }
        $html .= "<p class=\"note\"><span>" . $element->getComment() . "</span></p>";
        a6b21:
        $html .= "</td>";
        return $html;
    }
}


Malware detection & removal plugin for WordPress

(C)2020 Wordpress Doctor All rights reserved.