!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/quota/   drwxr-xr-x
Free 49.31 GB of 127.8 GB (38.58%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     index.cgi (3.22 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
#!/usr/bin/perl
# index.cgi
# Display a list of all local filesystems, and allow editing of quotas
# on those which have quotas turned on. The actual turning on of quotas must
# be done in the mount module first.

require './quota-lib.pl';
&ui_print_header(undef, $text{'index_title'}, "", "intro", 1, 1, 0,
    &help_search_link("quota", "man", "howto"));

$err = &quotas_init();
if ($err) {
    print "<p><b>$err</b><p>\n";
    &ui_print_footer("/", $text{'index_return'});
    exit;
    }

@list = &list_filesystems();
if (@list) {
    print &ui_columns_start([
        $text{'index_fs'},
        $text{'index_type'},
        $text{'index_mount'},
        $text{'index_status'},
        $access{'enable'} ? ( $text{'index_action'} ) : (),
        ], 100);
    @tds = ( "", "valign=top", "valign=top", "valign=top", "valign=top" );
    foreach $f (@list) {
        $qc = $f->[4];
        $qc = $qc&1 if ($access{'gmode'} == 3);
        next if (!$qc);
        next if (!&can_edit_filesys($f->[0]));
        $qn = $f->[5];
        if ($qc == 1) { $msg = $text{'index_quser'}; }
        elsif ($qc == 2) { $msg = $text{'index_qgroup'}; }
        elsif ($qc == 3) { $msg = $text{'index_qboth'}; }
        $canactivate = 1;
        if ($qn >= 4) {
            $chg = $text{'index_mountonly'};
            $qn -= 4;
            $canactivate = 0;
            if ($qn) {
                $msg .= " $text{'index_active'}";
                }
            else {
                $msg .= " $text{'index_inactive'}";
                }
            }
        elsif ($qn) {
            $msg .= " $text{'index_active'}";
            $chg = $text{'index_disable'};
            }
        else {
            $msg .= " $text{'index_inactive'}";
            $chg = $text{'index_enable'};
            }
        if ($qn%2 == 1) { $useractive++; }
        if ($qn > 1) { $groupactive++; }

        local @cols;
        $dir = $f->[0];
        if (!$qn) {
            push(@cols, $dir);
            }
        elsif ($qc == 1) {
            push(@cols, "<a href=\"list_users.cgi?dir=".
               &urlize($dir)."&can=",&urlize($qc),"\">$dir</a>");
            }
        elsif ($qc == 2) {
            push(@cols, "<a href=\"list_groups.cgi?dir=".
                &urlize($dir)."&can=",&urlize($qc),"\">$dir</a>");
            }
        elsif ($qc == 3) {
            push(@cols, "<a href=\"list_users.cgi?dir=".
                &urlize($dir)."&can=".&urlize($qc).
                "\">$dir (users)</a><br>".
                "<a href=\"list_groups.cgi?dir=".&urlize($dir).
                "&can=".&urlize($qc)."\">$dir (groups)</a>");
            }

        push(@cols, &foreign_call("mount", "fstype_name", $f->[2]));
        push(@cols, &foreign_call("mount", "device_name", $f->[1]));
        push(@cols, $msg);
        if ($access{'enable'}) {
            if ($canactivate) {
                push(@cols, "<a href=\"activate.cgi?dir=$dir&active=$qn&mode=$qc\">$chg</a>");
                }
            else {
                push(@cols, $chg);
                }
            }
        print &ui_columns_row(\@cols, \@tds);
        }
    print &ui_columns_end();
    }
else {
    print "<b>$text{'index_nosupport'}</b><p>\n";
    if (&foreign_available("mount")) {
        print &text('index_mountmod', "../mount/"),"<p>\n";
        }
    }

# Buttons to edit and specific user or group
if ($useractive || $groupactive) {
    print &ui_hr();
    print &ui_buttons_start();
    }
if ($useractive) {
    print &ui_buttons_row("user_filesys.cgi", $text{'index_euser'},
                  $text{'index_euserdesc'}, undef,
                  &ui_user_textbox("user"));
    }
if ($groupactive) {
    print &ui_buttons_row("group_filesys.cgi", $text{'index_egroup'},
                  $text{'index_egroupdesc'}, undef,
                  &ui_group_textbox("group"));
    }
if ($useractive || $groupactive) {
    print &ui_buttons_end();
    }

&ui_print_footer("/", $text{'index_return'});


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