!C99Shell v. 1.0 pre-release build #16!

Software: Apache/2.0.54 (Fedora). PHP/5.0.4 

uname -a: Linux mina-info.me 2.6.17-1.2142_FC4smp #1 SMP Tue Jul 11 22:57:02 EDT 2006 i686 

uid=48(apache) gid=48(apache) groups=48(apache)
context=system_u:system_r:httpd_sys_script_t
 

Safe-mode: OFF (not secure)

/usr/libexec/webmin/status/   drwxr-xr-x
Free 3.79 GB of 27.03 GB (14.03%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     exec-monitor.pl (1.44 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
# exec-monitor.pl
# Check if some command exits with non-zero status

sub get_exec_status
{
my $re = $_[0]->{'regexp'};
if ($re ne '') {
    # Get output and compare
    my $out = &backquote_logged("($_[0]->{'cmd'}) 2>&1 </dev/null");
    if ($_[0]->{'remode'} == 0 && $out !~ /$re/) {
        return { 'up' => 0 };
        }
    elsif ($_[0]->{'remode'} == 1 && $out =~ /$re/) {
        return { 'up' => 0 };
        }
    }
else {
    # Just get exit status
    &system_logged("($_[0]->{'cmd'}) >/dev/null 2>&1 </dev/null");
    }
if ($_[0]->{'mode'} == 0) {
    return { 'up' => $? == 0 ? 1 : 0 };
    }
elsif ($_[0]->{'mode'} == 1) {
    return { 'up' => $? == 0 ? 0 : 1 };
    }
else {
    return { 'up' => 1 };
    }
}

sub show_exec_dialog
{
print &ui_table_row($text{'exec_cmd'},
    &ui_textbox("cmd", $_[0]->{'cmd'}, 70), 3);

print &ui_table_row($text{'exec_mode'},
    &ui_radio("mode", $_[0]->{'mode'} || 0,
          [ [ 0, $text{'exec_mode0'} ],
            [ 1, $text{'exec_mode1'} ],
            [ 2, $text{'exec_mode2'} ] ]), 3);

print &ui_table_row($text{'exec_regexp'},
    &ui_opt_textbox("regexp", $_[0]->{'regexp'}, 60, $text{'exec_noregexp'}), 3);

print &ui_table_row($text{'exec_remode'},
    &ui_radio("remode", $_[0]->{'remode'} || 0,
          [ [ 0, $text{'exec_remode0'} ],
            [ 1, $text{'exec_remode1'} ] ]), 3);
}

sub parse_exec_dialog
{
$in{'cmd'} || &error($text{'exec_ecmd'});
$_[0]->{'cmd'} = $in{'cmd'};
$_[0]->{'mode'} = $in{'mode'};
$_[0]->{'regexp'} = $in{'regexp_def'} ? undef : $in{'regexp'};
$_[0]->{'remode'} = $in{'remode'};
}


:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 1.0 pre-release build #16 powered by Captain Crunch Security Team | http://ccteam.ru | Generation time: 0.0031 ]--