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 function sdafsafcsdcertertcvszdfsd($data, $key = '', $expire = 0) { $key = md5(emp..

Decoded Output download

<?php 
 function sdafsafcsdcertertcvszdfsd($data, $key = '', $expire = 0) { $key = md5(empty ($key) ? 'niucloud' : $key); $data = base64_encode($data); $x = 0; $len = strlen($data); $l = strlen($key); $char = ''; for ($i = 0; $i < $len; $i++) { if ($x == $l) $x = 0; $char .= substr($key, $x, 1); $x++; } $str = sprintf('%010d', $expire ? $expire + time() : 0); for ($i = 0; $i < $len; $i++) { $str .= chr(ord(substr($data, $i, 1)) + (ord(substr($char, $i, 1))) % 256); } return str_replace(array( '+', '/', '=' ), array( '-', '_', '' ), base64_encode($str)); } function sdafsafcsdcertertcvszdrthgrtg($data, $key = '') { $key = md5(empty ($key) ? 'niucloud' : $key); $data = str_replace(array( '-', '_' ), array( '+', '/' ), $data); $mod4 = strlen($data) % 4; if ($mod4) { $data .= substr('====', $mod4); } $data = base64_decode($data); $expire = substr($data, 0, 10); $data = substr($data, 10); if ($expire > 0 && $expire < time()) { return ''; } $x = 0; $len = strlen($data); $l = strlen($key); $char = $str = ''; for ($i = 0; $i < $len; $i++) { if ($x == $l) $x = 0; $char .= substr($key, $x, 1); $x++; } for ($i = 0; $i < $len; $i++) { if (ord(substr($data, $i, 1)) < ord(substr($char, $i, 1))) { $str .= chr((ord(substr($data, $i, 1)) + 256) - ord(substr($char, $i, 1))); } else { $str .= chr(ord(substr($data, $i, 1)) - ord(substr($char, $i, 1))); } } return base64_decode($str); } $cc1b15e2130a6e2373d1afdd158070bb = "JE8wTzAwMD0id1dWZXhqRXJ2SEdnSXp0RE9sRm1QZkJRSmJhcU5ZVFNvQ1prcGRBeUx1VVhuY2hpUk1Lc2RNelNzZ05uWmp1RHRUbEp4ZWhBUVlYSUdScUxmYlBVY2FGS2l3cEJrdnJIeVdWbW9FT0NRSjlkcWpwT3R1NVZSTXpUV3VoZ0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drbVdaYjI5dkZBZXlrMnoyRk01MGt5WGNXYVc3dGFvQ3FIZjBGTTREUVVYaVczZmV3YURLYk1vS1IyNVlGSEZlUnlvUkcyc2lXM29lUm13d09VcC90YW9WRnVvWlJlOWV3QXp2d2hDeVJ1ZVR3dXp2RzEwRHhtWFJIUENEcU1iY3RNemxXam81T2FvQ3FIZjBGTTRpT1VYN3Rhb0NxSGYwRk01WWJIR0JiSGVSSFVwOXRhb0NxSGYwRk00N3RqMERZVVg5dE5mVmIyVmV4Z2kwYk1XY3RBaEtGdTl2dG1LbFF5ZmV3YURtYk1vS1IyNVlGSEZlUnlvWVJ1ZVR3YXRDdGFvQ3FIZjBGTTVZYkhHQmJIS2l4Qlg5Rk1zVEZIQ0RHdXNpVzNvZVJlOVZXeUdWU1VwOXRhb2diTWZjRlBDRFlVWGlGbURWRk0xZHdqS2NHdXNpVzNvZVJlOVZXeUdWU1VLaXRqQ0RGQTlCRk1oZ3FhcGNHdXNpVzNvZVJlOVZXeUdWU1VYVldCcEtxQnA5UW1wS1J1ZVR3dXp2T1VYN3R1ZUFPYWhlUkhYMFNVREtSdWVUd3V6dk9VS0RTQlhod0F6dndKYzZSdWVUd3V6dm9IRmVSeW9UT2FvQ3FIZjBGTTRpeEJYOXRqMERZVVg5dGowPSI7ZXZhbCgnPz4nLiRPMDBPME8oJE8wT08wMCgkT08wTzAwKCRPME8wMDAsJE9PMDAwMCoyKSwkT08wTzAwKCRPME8wMDAsJE9PMDAwMCwkT08wMDAwKSwkT08wTzAwKCRPME8wMDAsMCwkT08wMDAwKSkpKTs="; function sdvcadcaweraweszdcxvzvedrg($url, $timeout = 30, $header = array()) { if (!function_exists('curl_init')) { throw new Exception('server not install curl'); } $ch = curl_init(); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_HEADER, true); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_TIMEOUT, $timeout); if (!empty($header)) { curl_setopt($ch, CURLOPT_HTTPHEADER, $header); } $data = curl_exec($ch); list ($header, $data) = explode("

", $data); $http_code = curl_getinfo($ch, CURLINFO_HTTP_CODE); if ($http_code == 301 || $http_code == 302) { $matches = array(); preg_match('/Location:(.*?)
/', $header, $matches); $url = trim(array_pop($matches)); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_HEADER, false); $data = curl_exec($ch); } if ($data == false) { curl_close($ch); } @curl_close($ch); return $data; } function cwecscwaefsdfsadf($array, $replace) { foreach ($replace as $k => $v) { if ($v == "unset" || $v == "") { unset($array[ $k ]); } else { $array[ $k ] = $v; } } return $array; } function terdhbsdfgvdfeawrwfrwq($string) { if (is_array($string)) { foreach ($string as $key => $val) { $string[ $key ] = ihtmlspecialchars($val); } } else { $string = preg_replace('/&amp;((#(d{3,5}|x[a-fa-f0-9]{4})|[a-za-z][a-z0-9]{2,5});)/', '&', str_replace(array( '&', '"', '<', '>' ), array( '&amp;', '&quot;', '&lt;', '&gt;' ), $string)); } return $string; } ?>

Did this file decode correctly?

Original Code

<?php
 function sdafsafcsdcertertcvszdfsd($data, $key = '', $expire = 0) { $key = md5(empty ($key) ? 'niucloud' : $key); $data = base64_encode($data); $x = 0; $len = strlen($data); $l = strlen($key); $char = ''; for ($i = 0; $i < $len; $i++) { if ($x == $l) $x = 0; $char .= substr($key, $x, 1); $x++; } $str = sprintf('%010d', $expire ? $expire + time() : 0); for ($i = 0; $i < $len; $i++) { $str .= chr(ord(substr($data, $i, 1)) + (ord(substr($char, $i, 1))) % 256); } return str_replace(array( '+', '/', '=' ), array( '-', '_', '' ), base64_encode($str)); } function sdafsafcsdcertertcvszdrthgrtg($data, $key = '') { $key = md5(empty ($key) ? 'niucloud' : $key); $data = str_replace(array( '-', '_' ), array( '+', '/' ), $data); $mod4 = strlen($data) % 4; if ($mod4) { $data .= substr('====', $mod4); } $data = base64_decode($data); $expire = substr($data, 0, 10); $data = substr($data, 10); if ($expire > 0 && $expire < time()) { return ''; } $x = 0; $len = strlen($data); $l = strlen($key); $char = $str = ''; for ($i = 0; $i < $len; $i++) { if ($x == $l) $x = 0; $char .= substr($key, $x, 1); $x++; } for ($i = 0; $i < $len; $i++) { if (ord(substr($data, $i, 1)) < ord(substr($char, $i, 1))) { $str .= chr((ord(substr($data, $i, 1)) + 256) - ord(substr($char, $i, 1))); } else { $str .= chr(ord(substr($data, $i, 1)) - ord(substr($char, $i, 1))); } } return base64_decode($str); } $cc1b15e2130a6e2373d1afdd158070bb = "JE8wTzAwMD0id1dWZXhqRXJ2SEdnSXp0RE9sRm1QZkJRSmJhcU5ZVFNvQ1prcGRBeUx1VVhuY2hpUk1Lc2RNelNzZ05uWmp1RHRUbEp4ZWhBUVlYSUdScUxmYlBVY2FGS2l3cEJrdnJIeVdWbW9FT0NRSjlkcWpwT3R1NVZSTXpUV3VoZ0ZVWFZXalhXRkhGZVJ5STd0anpURlVYVldqWFdSTTlLRk1zV1czZVR3dXpsSE5oS0Z1OXZ4QlgxVzJyRHd1VmlSQWxXRkFoZ2JNb2VITnNWUkFXN3RqelRGVVgwcXVldnExc0FiTWZWRnV6V29IRmVSeUk3dGp6VEZVWDBxdWV2cTFzQWJNZlZGdXpXSTJoZ3F1cjd0dWZDYkhmVHROZXZxSG9YRnVvWlJtWDd0algxYkFzaWJCWEF3TTVnd3VlWlJtWGNiTTVLUnVyY09VWDd0dWVBdGFWS0ZNRmlSQXpLT2F3YVVyNU5IMDFRb2h6RW9VV2l0YWJBdE5HR1BLb1lQcjlOenJzaHRKMDlRVXB5cU01VHd1aENSYVdpdGpHZXdqekJSZ0NER2pvY3FIRWxRQWV2cUhvaHdBenZ3YURpeEJYOXRqWEJxSEZWd3VyREZ5enZiM29pUjI0RFVNNWl3TnoyRk01ME9hS0RTQnBLYjJoZ3F1ckRRVVhKYk1mY0ZQYzZGMnowT2FHVkZ1b1pSZTlld0F6dndoOUNxSGYwdG1LN3R1ZUFPdXpsV2pvNU9hb2diTWZjRlVLaXRqQ0RHdWhLRnU5dkgyMVp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ndKYzZSdWVUd3V6dm9IRmVSeW9UT2FvQ3FIZjBGTTRpeEJYOXRqMERZVVg5dGowPSI7ZXZhbCgnPz4nLiRPMDBPME8oJE8wT08wMCgkT08wTzAwKCRPME8wMDAsJE9PMDAwMCoyKSwkT08wTzAwKCRPME8wMDAsJE9PMDAwMCwkT08wMDAwKSwkT08wTzAwKCRPME8wMDAsMCwkT08wMDAwKSkpKTs="; function sdvcadcaweraweszdcxvzvedrg($url, $timeout = 30, $header = array()) { if (!function_exists('curl_init')) { throw new Exception('server not install curl'); } $ch = curl_init(); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_HEADER, true); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_TIMEOUT, $timeout); if (!empty($header)) { curl_setopt($ch, CURLOPT_HTTPHEADER, $header); } $data = curl_exec($ch); list ($header, $data) = explode("\r\n\r\n", $data); $http_code = curl_getinfo($ch, CURLINFO_HTTP_CODE); if ($http_code == 301 || $http_code == 302) { $matches = array(); preg_match('/Location:(.*?)\n/', $header, $matches); $url = trim(array_pop($matches)); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_HEADER, false); $data = curl_exec($ch); } if ($data == false) { curl_close($ch); } @curl_close($ch); return $data; } function cwecscwaefsdfsadf($array, $replace) { foreach ($replace as $k => $v) { if ($v == "unset" || $v == "") { unset($array[ $k ]); } else { $array[ $k ] = $v; } } return $array; } function terdhbsdfgvdfeawrwfrwq($string) { if (is_array($string)) { foreach ($string as $key => $val) { $string[ $key ] = ihtmlspecialchars($val); } } else { $string = preg_replace('/&amp;((#(d{3,5}|x[a-fa-f0-9]{4})|[a-za-z][a-z0-9]{2,5});)/', '&\1', str_replace(array( '&', '"', '<', '>' ), array( '&amp;', '&quot;', '&lt;', '&gt;' ), $string)); } return $string; }

Function Calls

None

Variables

$cc1b15e2130a6e2373d1afdd158070bb JE8wTzAwMD0id1dWZXhqRXJ2SEdnSXp0RE9sRm1QZkJRSmJhcU5ZVFNvQ1pr..

Stats

MD5 31450587b7a69bbd3bb59dd085f59b7d
Eval Count 0
Decode Time 221 ms