!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:     file-monitor.pl (1.93 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
# file-monitor.pl
# Check the status of some file

sub get_file_status
{
local @files;
if ($_[0]->{'file'} =~ /\*|\?/) {
    @files = glob($_[0]->{'file'});
    }
else {
    @files = ( $_[0]->{'file'} );
    }
my $allup = 1;
my @allfiles;
my @allsizes;
foreach my $f (@files) {
    local @st = stat($f);
    local $size;
    if ($_[0]->{'test'} >= 2) {
        $size = -d $f ? &disk_usage_kb($f)*1024 : $st[7];
        }
    if ($_[0]->{'test'} == 0) {
        $up = @st ? 1 : 0;
        }
    elsif ($_[0]->{'test'} == 1) {
        $up = @st ? 0 : 1;
        }
    elsif ($_[0]->{'test'} == 2) {
        $up = $size > $_[0]->{'greater'} ? 1 : 0;
        }
    elsif ($_[0]->{'test'} == 3) {
        $up = $size < $_[0]->{'lesser'} ? 1 : 0;
        }
    if (!$up) {
        $allup = 0;
        push(@allfiles, $f);
        }
    push(@allsizes, $size) if (defined($size));
    }
my $desc;
if (@files > 1 && @allfiles) {
    $desc = join(" ", @allfiles);
    if ($_[0]->{'test'} == 2) {
        $desc = &text('file_esmall', $desc);
        }
    elsif ($_[0]->{'test'} == 3) {
        $desc = &text('file_elarge', $desc);
        }
    }
my $rv = { 'up' => $up,
       'desc' => $desc };
if (@allsizes == 1) {
    $rv->{'value'} = $allsizes[0];
    $rv->{'nice_value'} = &nice_size($allsizes[0]);
    }
return $rv;
}

sub show_file_dialog
{
print &ui_table_row($text{'file_file'},
&ui_textbox("file", $_[0]->{'file'}, 50), 3);

print &ui_table_row($text{'file_test'},
&ui_radio("test", int($_[0]->{'test'}),
    [ [ 0, $text{'file_test_0'}."<br>" ],
      [ 1, $text{'file_test_1'}."<br>" ],
      [ 2, $text{'file_test_2'}.
           &ui_textbox("greater", $_[0]->{'greater'}, 10)." ".
           $text{'file_bytes'}."<br>" ],
      [ 3, $text{'file_test_3'}.
           &ui_textbox("lesser", $_[0]->{'lesser'}, 10)." ".
           $text{'file_bytes'}."<br>" ] ]), 3);
}

sub parse_file_dialog
{
$in{'file'} || &error($text{'file_efile'});
$_[0]->{'file'} = $in{'file'};
$_[0]->{'test'} = $in{'test'};
$in{'greater'} =~ /^\d*$/ && $in{'lesser'} =~ /^\d*$/ ||
&error($text{'file_esize'});
$_[0]->{'greater'} = $in{'greater'};
$_[0]->{'lesser'} = $in{'lesser'};
}


:: 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.0119 ]--