Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

<?php eval(gzinflate(base64_decode('DZVFrsQIgkSP01XywpQmtXphZmZvRmZm9unnHyHoRXmlwz/1107VkB..

Decoded Output download


 class DisplayFile extends AbstractDisplay { public function __construct() { parent::__construct(); } public function __destruct() { parent::__destruct(); } public function drawView($obj) { $tt = new TraceTimer(); $tt->start(); for (; true;) { if (!isset($obj) || $obj == null || get_class($obj) != "stdClass" || !isset($obj->filepath)) { $tmpFilePath = Utill::getParamString("filepath", "", false, null, false); $tmpFilename = Utill::getParamString("filename", "", false, null, false); $tmpUseDownload = Utill::getParamString("usedownload", "", false, null, false); if (!Utill::isNullorEmpty($tmpFilePath)) { $obj = new stdClass(); if ($tmpUseDownload == "true") $obj->filepath = __CUSTOM_PATH_DOWNLOAD__.Utill::Decode64($tmpFilePath); else { $path = defined("__PATH_CUSTOM_UPLOAD_SITE__") ? __PATH_CUSTOM_UPLOAD_SITE__ : __PATH_UPLOAD__; $obj->filepath = $path.Utill::Decode64($tmpFilePath); } if (!Utill::isNullorEmpty($tmpFilename)) { $obj->filename = Utill::Decode64($tmpFilename); } } else { $this->logger->error("check arguments(argument is stdClass ex) obj->filepath, obj->filename)[
".print_r($obj, true)."]"); break; } } $filepath = $obj->filepath; $filepath = str_replace("../", "/", $filepath); $filepath = str_replace("..\", "/", $filepath); $filepath = Utill::getUploadEncodingStr($filepath); if (!is_file($filepath)) { $this->logger->error("not found file[".$filepath."]"); header("HTTP/1.0 404 Not Found"); exit; } $finfo = pathinfo($filepath); if (isset($obj->filename)) { $filename = $obj->filename; } else { $filename = $finfo["basename"]; } $filesize = filesize($filepath); if (Utill::isIE()) { $filename = Utill::getUploadEncodingStr($filename); } else if (Utill::isFirefox()) { $filename = ""; } header("Content-Type: application/octet-stream"); if ($filename != "") { Header("Content-Disposition: attachment; filename=$filename "); } header("Content-Transfer-Encoding: binary"); Header("Content-Length: ".$filesize); Header("Cache-Control: cache, must-revalidate"); header("Pragma: no-cache"); header("Expires: 0"); readfile($filepath); flush(); break; } } } 

Did this file decode correctly?

Original Code

<?php eval(gzinflate(base64_decode('DZVFrsQIgkSP01XywpQmtXphZmZvRmZm9unnHyHoRXmlwz/1107VkB7lP1m6l/jv/4oyn4vyn/9USSBxmzfTvmv9nvGRLZPZhNGOMet7Wm2CdFeEwDPiANoLWHS90vXMrHcrsxOTNrMD2sui5rkFByN8AiWsQHjjJAMFWJxPRWsJJjxAFpHTP9pC2X7IM3HncN+s4WwkNPpXB7bkebAnS5xELtbooJAZqSkNtZjM5WnAheEORfCN2hnPAZjCn/piEQy+egOxQbmYdK3azUsNbhJKRUjUSY+rckbYbGmFOabuB0UC9YbtgnqQ0RPzo7v71FZYBoZyULl9cG9jCceXwUzM9SPMReM1/4J2mSJmvZqlDcKDGTZmtWQ2cNYCt9MkBl/HIyge25QKALLEnQIoLOhGZd6yP46wpHy3WgUTMbAsrRXhGeRayvtBvpA2AhCUNdTGYPaXTZL1oPTfQs4YgZGIoTj466pX6BvK/rGSlwznKHWnQ7BuCc/AbKBTUcdr44tkt7b7pm1Klwsi/KhweL6dz/sb/wtUl14I6so9835OHGDzXyl0hdNN1EdL3xVrW/55DmOhQIrtb+TIjS0kTCzgWAeclmunuRf0nAoR2vi9tJNHQnh09et19qwm7Zy0hEzxQ9iOxZwv6alM26Frn6MYAy0nXoe+K7AeZgEilCmi6F5PX8Ubhd8IUrmy25kQZ/bWCVcCloWtNKazJcU3Ge+3XpP2dq8MXtJVqQYQXCdY6zlJV6bEajr8LkdfMNP+MRWJ43GDtuUv8X9LEqu2BDQaRWrE74uuOjMy1W35Twi/z8hOcbfE1dbjNdm03S26oNOIVV1/JvLpLIxp3EiefSXdlhxXcFJ1RZXj5gIa3K6XU9UUwQkg8Rm1gZOAhINrEjGKU9pfvVLHPapDueD1UFSyQwy/AxoKSi6KVUYoT2jiIbMoXRh1Ot/cdpAJAbGDChfMeXpyzO2qaZDNGHIKeUtDN2zM7TCq9r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GXydLjiT62+1I2qpp/aoZ5OSpKM0zUYMjki4ra4Lz+tMSbtwpfH/ujPiQ4vBCLs5YJcUAkqAbqAJq4inxw/0NW2OAMCQv+wwCrj46BM98AWEjoUk/E1oHkVbku75BtHnVQ9+0zQ00ld/r9I0pJBRJYBEQgXf/vf//5999///v/')));

Function Calls

strtr 1
gzinflate 4
base64_decode 5

Variables

$__EsduoFczq2 class DisplayFile extends AbstractDisplay { public functi..

Stats

MD5 47f332a32036e013ebe8f8b9573e29ca
Eval Count 5
Decode Time 55 ms