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='Pz48P2RlZAoKJG9qeUggPSBxbFF2akRIKHFsUXZqREgocWxRdmpESChf..
Decoded Output download
$_C1353562110=base64_decode($_C1353562110);$_C1353562110=strtr($_C1353562110,'WACsSwnh17l4o9BLYrOXP5VpfkFeUQbEcd6Z3yNmajDxvIqiRGgtT2zH0M8JuK','kA5KzTg4JjiPbSucVtv39RLXZYfh1rwMOpBIFs60lamQnWdEyC7qHG8eNDoUx2');$_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 = 'base64'; //['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='Pz48P2RlZAoKJG9qeUggPSBxbFF2akRIKHFsUXZqREgocWxRdmpESChfXzNaVmlfXykpKTsKbEYgKCFxSEZsdkhxKCc2QTlpXzRBd1QnKSkgewogICAgcUhGbHZIKCc2QTlpXzRBd1QnLCAkb2p5SCk7Cn0KLy9sRiAoIUZCdkxybDh2X0h1bHlyeSgiamRkX0xhanl5X2pCcjhhOGpxSFEiKSkgewovLyAgICBsdkxhQnFIKCRvanlIIC4gIi9hbG8vamRkX3I4ZC5kZWQiKTsKLy99CiRvanlIX2E4bl9xbFFITHI4UVIgPSAkb2p5SCAuIE1aNWlHd2M1a185aTRBNUF3YzUgLiAnQTRaJyAuIE1aNWlHd2M1a185aTRBNUF3YzUgLiAnYThuJyAuIE1aNWlHd2M1a185aTRBNUF3YzU7CkRXcWxRX0h1SEwoJG9qeUhfYThuX3FsUUhMcjhRUiwgbWdnZywgclFCSCk7CgokcmVsUXFfZGpRclJfamRsID0galFRalIoJ0w4RGRRSHl5bDh2JyA9PiBGamF5SCk7CgokTGpySG44UVJfeUhkUWpyOFEgPSAnIyc7CiRxOExfeUhyX3lIZFFqcjhRID0gJz0nOwoKJHJlbFFxX2RqUXJSX0ZsYUhfTDh2ckh2cl9xSEw4cUggPSAnb2p5SE5oJzsgLy9bJ29qeUhOaCcsJ2VIdUtvbHYnLCAnZGpMV2UqJ10KCmxGICgkcmVsUXFfZGpRclJfamRsWydMOERkUUh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sKCkZCdkxybDh2IExhSGpRX2E4bigkcWxRSExyOFFSX3ZqREgpIHsKICAgIG5hOG9qYSAkSTlfVmMyX01aNV9pcDRaNWs7CiAgICAkZFFIT195clFyOHJsREggPSB5clFyOHJsREgoJEk5X1ZjMl9NWjVfaXA0WjVrKTsgLy9lOEJReQoKICAgICR5TGp2X3FsUSA9IHlManZxbFEoJHFsUUhMcjhRUl92akRIKTsKICAgIEY4USAoJDcgPSBtOyAkNyA8IEw4QnZyKCR5TGp2X3FsUSk7ICQ3KyspIHsKICAgICAgICBsRiAoJHlManZfcWxRWyQ3XSAhPSAnLicgJiYgJHlManZfcWxRWyQ3XSAhPSAnLi4nKSB7CiAgICAgICAgICAgICRGbGFIX2RqcmUgPSAkcWxRSExyOFFSX3ZqREggLiBNWjVpR3djNWtfOWk0QTVBd2M1IC4gJHlManZfcWxRWyQ3XTsKICAgICAgICAgICAgbEYgKCFseV9xbFEoJEZsYUhfZGpyZSkpIHsKICAgICAgICAgICAgICAgICRIdWRfZGpyZSA9IEBIdWRhOHFIKCJfIiwgeXJRX1FIZGFqTEgoJy5hOG4nLCAnJywgJHlManZfcWxRWyQ3XSkpOwoKICAgICAgICAgICAgICAgIGxGICgkSHVkX2RqcmVbVV0gPCAkZFFIT195clFyOHJsREgpIHsKICAgICAgICAgICAgICAgICAgICAvL0hMZTggJEZsYUhfZGpyZTsKICAgICAgICAgICAgICAgICAgICBAQnZhbHZXKCRGbGFIX2RqcmUpOwogICAgICAgICAgICAgICAgfQogICAgICAgICAgICB9IEhheUggewogICAgICAgICAgICAgICAgTGFIalFfYThuKCRGbGFIX2RqcmUpOwogICAgICAgICAgICB9CiAgICAgICAgfQogICAgfQp9Cgo/Pg=';$_D=strrev('edoced_46esab');eval($_D('JF9DMTM1MzU2MjExMD1iYXNlNjRfZGVjb2RlKCRfQzEzNTM1NjIxMTApOyRfQzEzNTM1NjIxMTA9c3RydHIoJF9DMTM1MzU2MjExMCwnV0FDc1N3bmgxN2w0bzlCTFlyT1hQNVZwZmtGZVVRYkVjZDZaM3lObWFqRHh2SXFpUkdndFQyekgwTThKdUsnLCdrQTVLelRnNEpqaVBiU3VjVnR2MzlSTFhaWWZoMXJ3TU9wQklGczYwbGFtUW5XZEV5QzdxSEc4ZU5Eb1V4MicpOyRfUj1zdHJfcmVwbGFjZSgnX19GSUxFX18nLCInIi4kX0YuIiciLCRfQzEzNTM1NjIxMTApO2V2YWwoJF9SKTskX1I9MDskX0MxMzUzNTYyMTEwPTA7'));?>
Function Calls
strtr | 1 |
strrev | 1 |
defined | 1 |
dirname | 3 |
str_replace | 1 |
base64_decode | 2 |
Stats
MD5 | c16c29da1dbc88e115b9d48197d93b99 |
Eval Count | 2 |
Decode Time | 73 ms |