Japanese English

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

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

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

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

<?php /* __________________________________________________ | Built by Clearly IP Inc. | | on 2023-01-02 21:42:57 | |__________________________________________________| */ namespace FreePBX\modules\Clearlysp\CIP; if (!file_exists(__DIR__ . "\x2f\56\56\x2f\166\145\156\144\x6f\162\57\141\165\x74\x6...



難読化されたPHPコード

<?php
/*   __________________________________________________
    |  Built by Clearly IP Inc.                        |
    |              on 2023-01-02 21:42:57              |
    |__________________________________________________|
*/
 namespace FreePBX\modules\Clearlysp\CIP; if (!file_exists(__DIR__ . "\x2f\56\56\x2f\166\145\156\144\x6f\162\57\141\165\x74\x6f\154\x6f\141\144\56\x70\150\x70")) { goto RpxFp; } include __DIR__ . "\57\x2e\56\x2f\166\145\156\144\x6f\162\x2f\x61\x75\164\157\154\157\141\144\56\x70\x68\160"; RpxFp: use FreePBX; class ClearlyAPI { protected $FreePBX; public function __construct($freepbx = null) { goto skVfU; skVfU: $this->FreePBX = $freepbx; goto aWm9k; aWm9k: if ($freepbx) { goto v38x2; } goto n7g1J; n7g1J: $this->FreePBX = FreePBX::Create(); goto NKGrg; NKGrg: v38x2: goto PffzR; PffzR: } public function handleRest() { goto QYKbG; xyQOB: foreach (new \RecursiveIteratorIterator($routesDir) as $file) { goto T6DnB; XwHIK: h2q58: goto v85pg; f1C1A: F3SsF: goto XwHIK; T6DnB: if (!(is_file($file) && !empty(trim(file_get_contents($file))))) { goto F3SsF; } goto IJb6c; IJb6c: include $file; goto f1C1A; v85pg: } goto wc5T6; wc5T6: H3fwv: goto FR00H; FR00H: $app->run(); goto esjUl; esjUl: return $this; goto rm_TJ; Fy_59: $app->add(new ClearlyAuthMiddleware()); goto IhM3y; kAmXd: $app->add(new ClearlyMiddleware()); goto Fy_59; iLU9l: $app = new \Slim\App(array("\x73\145\x74\164\x69\x6e\x67\163" => $config)); goto kAmXd; QYKbG: $config = array("\x64\x65\164\x65\x72\x6d\151\x6e\145\122\x6f\165\164\x65\102\145\x66\x6f\162\145\101\160\160\115\151\144\144\154\x65\x77\x61\162\145" => true, "\144\x69\163\x70\x6c\x61\171\x45\x72\x72\157\162\x44\145\164\141\x69\x6c\x73" => true, "\144\x65\x62\165\147" => true); goto iLU9l; IhM3y: $routesDir = new \RecursiveDirectoryIterator(__DIR__ . "\57\x52\x6f\x75\x74\145\x73\x2f"); goto xyQOB; rm_TJ: } }

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

<?php

/*   __________________________________________________
    |  Built by Clearly IP Inc.                        |
    |              on 2023-01-02 21:42:57              |
    |__________________________________________________|
*/
namespace FreePBX\modules\Clearlysp\CIP;

if (!file_exists("/var/www/html/../vendor/autoload.php")) {
    goto RpxFp;
}
include "/var/www/html/../vendor/autoload.php";
RpxFp:
use FreePBX;
class ClearlyAPI
{
    protected $FreePBX;
    public function __construct($freepbx = null)
    {
        $this->FreePBX = $freepbx;
        if ($freepbx) {
            goto v38x2;
        }
        $this->FreePBX = FreePBX::Create();
        v38x2:
    }
    public function handleRest()
    {
        $config = array("determineRouteBeforeAppMiddleware" => true, "displayErrorDetails" => true, "debug" => true);
        $app = new \Slim\App(array("settings" => $config));
        $app->add(new ClearlyMiddleware());
        $app->add(new ClearlyAuthMiddleware());
        $routesDir = new \RecursiveDirectoryIterator("/var/www/html/Routes/");
        foreach (new \RecursiveIteratorIterator($routesDir) as $file) {
            if (!(is_file($file) && !empty(trim(file_get_contents($file))))) {
                goto F3SsF;
            }
            include $file;
            F3SsF:
        }
        $app->run();
        return $this;
    }
}


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

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

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