%PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
| Server IP : 49.231.201.246 / Your IP : 216.73.216.146 Web Server : Apache/2.4.18 (Ubuntu) System : Linux 246 4.4.0-210-generic #242-Ubuntu SMP Fri Apr 16 09:57:56 UTC 2021 x86_64 User : root ( 0) PHP Version : 7.0.33-0ubuntu0.16.04.16 Disable Function : exec,passthru,shell_exec,system,proc_open,popen,pcntl_exec MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /proc/11585/root/proc/thread-self/root/usr/share/webmin/proc/ |
Upload File : |
#!/usr/bin/perl
# index_run.cgi
# Allows running of a new command
require './proc-lib.pl';
if (!$access{'run'}) {
&redirect("index_tree.cgi");
}
use Config;
&ui_print_header(undef, $text{'index_title'}, "", "run", !$no_module_config, 1);
&ReadParse();
&index_links("run");
print &ui_form_start("run.cgi", "post");
print &ui_table_start(undef, undef, 2);
# Command to run
print &ui_table_row(&hlink($text{'run_command'}, "cmd"),
&ui_textbox("cmd", undef, 60)." ".
&ui_submit($text{'run_submit'}));
# Foreground mode
print &ui_table_row(&hlink($text{'run_mode'}, "mode"),
&ui_radio("mode", 0, [ [ 1, $text{'run_bg'} ],
[ 0, $text{'run_fg'} ] ]));
# Run as user
if (&supports_users()) {
if ($< == 0) {
print &ui_table_row(&hlink($text{'run_as'}, "runas"),
&ui_user_textbox("user", $default_run_user));
}
else {
print &ui_hidden("user", $remote_user),"\n";
}
}
# Input to command
print &ui_table_row(&hlink($text{'run_input'}, "input"),
&ui_textarea("input", undef, 5, 60));
print &ui_table_end();
print &ui_form_end();
&ui_print_footer("/", $text{'index'});