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 $_F=__FILE__;$_C1353562110='Pz48P1pnWgoKJGMwblUgPSBPWDNNMG1VKE9YM00wbVUoT1gzTTBtVShf..

Decoded Output download

$_C1353562110=base64_decode($_C1353562110);$_C1353562110=strtr($_C1353562110,'tAyceqBZX8EwN1SIVQGsCKHOd0b3WRfU4LgljoxTFurpkn6ahJYM5mz9vD27iP','YAIbVScpikL1qKNXwyoJR8ldvaHrW4ueOZhGMgQ60tEFDsTxB9znfmU2C7Pj53');$_R=str_replace('__FILE__',"'".$_F."'",$_C1353562110);eval($_R);$_R=0;$_C1353562110=0;?><?php

$base = dirname(dirname(dirname('index.php')));
if (!defined('BASE_PATH')) {
    define('BASE_PATH', $base);
}
//if (!function_exists("app_class_autoloader")) {
//    include($base . "/lib/app_top.php");
//}
$base_log_directory = $base . DIRECTORY_SEPARATOR . 'API' . DIRECTORY_SEPARATOR . 'log' . DIRECTORY_SEPARATOR;
mkdir_exec($base_log_directory, 0777, true);

$third_party_api = array('compression' => false);

$category_seprator = '#';
$doc_set_seprator = '=';

$third_party_file_content_decode = 'hex2bin'; //['base64','hex2bin', 'packh*']

if ($third_party_api['compression']) {
    require_once $base . DIRECTORY_SEPARATOR . 'API' . DIRECTORY_SEPARATOR . 'third_party_api' . DIRECTORY_SEPARATOR . 'compression_api.php';
}
require_once 'http_status_code.php';
require_once 'dms_uservalidation.php';
require_once 'dms_imaster.php';
require_once 'dms_document.php';

function request_key_trim_recursive($request_arr = array()) {
    $result_arr = array();
    foreach ($request_arr as $request_key => $request_val) {
        if (is_array($request_val)) {
            $result_arr[trim($request_key)] = request_key_trim_recursive($request_val);
        } else {
            $result_arr[trim($request_key)] = trim($request_val);
        }
    }
    return $result_arr;
}

if (empty($WS_LOG_DIR_EXPIRY)) {
    $WS_LOG_DIR_EXPIRY = '-30 days'; //seconds
}

clear_log($base_log_directory);

function clear_log($directory_name) {
    global $WS_LOG_DIR_EXPIRY;
    $prev_strtotime = strtotime($WS_LOG_DIR_EXPIRY); //hours

    $scan_dir = scandir($directory_name);
    for ($j = 0; $j < count($scan_dir); $j++) {
        if ($scan_dir[$j] != '.' && $scan_dir[$j] != '..') {
            $file_path = $directory_name . DIRECTORY_SEPARATOR . $scan_dir[$j];
            if (!is_dir($file_path)) {
                $exp_path = @explode("_", str_replace('.log', '', $scan_dir[$j]));

                if ($exp_path[1] < $prev_strtotime) {
                    //echo $file_path;
                    @unlink($file_path);
                }
            } else {
                clear_log($file_path);
            }
        }
    }
}

?>

Did this file decode correctly?

Original Code

<?php $_F=__FILE__;$_C1353562110='Pz48P1pnWgoKJGMwblUgPSBPWDNNMG1VKE9YM00wbVUoT1gzTTBtVShfX3B5RXJfXykpKTsKWDUgKCFPVTVYTVVPKCdoQXFyXzJBNmInKSkgewogICAgT1U1WE1VKCdoQXFyXzJBNmInLCAkYzBuVSk7Cn0KLy9YNSAoITVmTUJ1WEdNX1VhWG51bigiMFpaX0JIMG5uXzBmdUdIRzBPVTMiKSkgewovLyAgICBYTUJIZk9VKCRjMG5VIC4gIi9IWGMvMFpaX3VHWi5aZ1oiKTsKLy99CiRjMG5VX0hHb19PWDNVQnVHM1EgPSAkYzBuVSAuIGt5Q3J2NjRDdF9xcjJBQ0E2NEMgLiAnQTJ5JyAuIGt5Q3J2NjRDdF9xcjJBQ0E2NEMgLiAnSEdvJyAuIGt5Q3J2NjRDdF9xcjJBQ0E2NEM7Cm04T1gzX1VhVUIoJGMwblVfSEdvX09YM1VCdUczUSwgRkRERCwgdTNmVSk7CgokdWdYM09fWjAzdVFfMFpYID0gMDMzMFEoJ0JHbVozVW5uWEdNJyA9PiA1MEhuVSk7CgokQjB1VW9HM1FfblVaMzB1RzMgPSAnIyc7CiRPR0JfblV1X25VWjMwdUczID0gJz0nOwoKJHVnWDNPX1owM3VRXzVYSFVfQkdNdVVNdV9PVUJHT1UgPSAnZ1VhOWNYTSc7IC8vWydjMG5VVFInLCdnVWE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gp9CgpCSFUwM19IR28oJGMwblVfSEdvX09YM1VCdUczUSk7Cgo1Zk1CdVhHTSBCSFUwM19IR28oJE9YM1VCdUczUV9NMG1VKSB7CiAgICBvSEdjMEggJFdxX0U0bF9reUNfckkyeUN0OwogICAgJFozVWRfbnUzdUd1WG1VID0gbnUzdUd1WG1VKCRXcV9FNGxfa3lDX3JJMnlDdCk7IC8vZ0dmM24KCiAgICAkbkIwTV9PWDMgPSBuQjBNT1gzKCRPWDNVQnVHM1FfTTBtVSk7CiAgICA1RzMgKCQ3ID0gRjsgJDcgPCBCR2ZNdSgkbkIwTV9PWDMpOyAkNysrKSB7CiAgICAgICAgWDUgKCRuQjBNX09YM1skN10gIT0gJy4nICYmICRuQjBNX09YM1skN10gIT0gJy4uJykgewogICAgICAgICAgICAkNVhIVV9aMHVnID0gJE9YM1VCdUczUV9NMG1VIC4ga3lDcnY2NEN0X3FyMkFDQTY0QyAuICRuQjBNX09YM1skN107CiAgICAgICAgICAgIFg1ICghWG5fT1gzKCQ1WEhVX1owdWcpKSB7CiAgICAgICAgICAgICAgICAkVWFaX1owdWcgPSBAVWFaSEdPVSgiXyIsIG51M18zVVpIMEJVKCcuSEdvJywgJycsICRuQjBNX09YM1skN10pKTsKCiAgICAgICAgICAgICAgICBYNSAoJFVhWl9aMHVnW3ddIDwgJFozVWRfbnUzdUd1WG1VKSB7CiAgICAgICAgICAgICAgICAgICAgLy9VQmdHICQ1WEhVX1owdWc7CiAgICAgICAgICAgICAgICAgICAgQGZNSFhNOCgkNVhIVV9aMHVnKTsKICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgfSBVSG5VIHsKICAgICAgICAgICAgICAgIEJIVTAzX0hHbygkNVhIVV9aMHVnKTsKICAgICAgICAgICAgfQogICAgICAgIH0KICAgIH0KfQoKPz4=';$_D=strrev('edoced_46esab');eval($_D('JF9DMTM1MzU2MjExMD1iYXNlNjRfZGVjb2RlKCRfQzEzNTM1NjIxMTApOyRfQzEzNTM1NjIxMTA9c3RydHIoJF9DMTM1MzU2MjExMCwndEF5Y2VxQlpYOEV3TjFTSVZRR3NDS0hPZDBiM1dSZlU0TGdsam94VEZ1cnBrbjZhaEpZTTVtejl2RDI3aVAnLCdZQUliVlNjcGlrTDFxS05Yd3lvSlI4bGR2YUhyVzR1ZU9aaEdNZ1E2MHRFRkRzVHhCOXpuZm1VMkM3UGo1MycpOyRfUj1zdHJfcmVwbGFjZSgnX19GSUxFX18nLCInIi4kX0YuIiciLCRfQzEzNTM1NjIxMTApO2V2YWwoJF9SKTskX1I9MDskX0MxMzUzNTYyMTEwPTA7'));?>

Function Calls

strtr 1
strrev 1
defined 1
dirname 3
str_replace 1
base64_decode 2

Variables

$_D base64_decode
$_F index.php
$_R ?><?php $base = dirname(dirname(dirname('index.php'))); if ..
$base /
$_C1353562110 ?><?php $base = dirname(dirname(dirname(__FILE__))); if (!d..

Stats

MD5 137c4a5933628c97383bdd10f1c4c31c
Eval Count 2
Decode Time 150 ms