!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/dfsadmin/   drwxr-xr-x
Free 50.94 GB of 127.8 GB (39.86%)
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 (2.76 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
#!/usr/bin/perl
# index.cgi

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

@shlist = &list_shares();
if (@shlist && $access{'icons'}) {
    # Display shares as icons
    print "<a href=\"edit_share.cgi\">$text{'index_add'}</a><br>\n";
    foreach $s (@shlist) {
        next if ($s->{'type'} ne 'nfs');
        push(@icons, "images/share.gif");
        push(@titles, $s->{'dir'});
        push(@links, "edit_share.cgi?$s->{'index'}");
        }
    &icons_table(\@links, \@titles, \@icons);
    if (!$access{'view'}) {
        print "<a href=\"edit_share.cgi\">$text{'index_add'}</a><br>\n";
        }
    }
elsif (@shlist) {
    # Display shares as table
    if (!$access{'view'}) {
        print &ui_form_start("delete_shares.cgi", "post");
        print &select_all_link("d"),"\n";
        print &select_invert_link("d"),"\n";
        print "<a href=\"edit_share.cgi\">$text{'index_add'}</a><br>\n";
        @tds = ( "width=5" );
        }
    print &ui_columns_start([
        $access{'view'} ? ( ) : ( "" ),
        $text{'index_dir'},
        $text{'index_clients'} ], 100, 0, \@tds);
    foreach $s (@shlist) {
        next if ($s->{'type'} ne 'nfs');
        &parse_options($s->{'opts'});
        local @cols;
        if ($access{'view'}) {
            push(@cols, &html_escape($s->{'dir'}));
            }
        elsif (defined($options{'public'})) {
            push(@cols, "<a href=\"edit_share.cgi?$s->{'index'}\">".
                    &html_escape($s->{'dir'})."</a>");
            }
        else {
            push(@cols, "<a href=\"edit_share.cgi?$s->{'index'}\">".                    &html_escape($s->{'dir'})."</a>");
            }
        undef(%clients);
        foreach (split(/:/, $options{"ro"})) { $clients{$_}++; }
        foreach (split(/:/, $options{"rw"})) { $clients{$_}++; }
        foreach (split(/:/, $options{"root"})) { $clients{$_}++; }
        if (%clients) {
            $clients = join(' &nbsp;|&nbsp; ' , sort { $a cmp $b }
                map { &html_escape($_ =~ /^\@(.*)/ ? "$1.*" : $_) }
                     (keys %clients) );
            if (length($clients) > 80) {
                $clients = substr($clients, 0, 80)."...";
                }
            }
        else {
            $clients = $text{'index_everyone'};
            }
        push(@cols, $clients);
        if ($access{'view'}) {
            print &ui_columns_row(\@cols, \@tds);
            }
        else {
            print &ui_checked_columns_row(\@cols, \@tds, "d",
                              $s->{'index'});
            }
        }
    print &ui_columns_end();
    if (!$access{'view'}) {
        print &select_all_link("d"),"\n";
        print &select_invert_link("d"),"\n";
        print "<a href=\"edit_share.cgi\">$text{'index_add'}</a><br>\n";
        print &ui_form_end([ [ "delete", $text{'index_delete'} ] ]);
        }
    }
else {
    print "<b>$text{'index_none'}</b><p>\n";
    print "<a href=\"edit_share.cgi\">$text{'index_add'}</a><p>\n";
    }

if (!$access{'view'}) {
    print &ui_hr();
    print &ui_buttons_start();
    print &ui_buttons_row("restart_sharing.cgi",
                  $text{'index_apply'},
                  $text{'index_applydesc'});
    print &ui_buttons_end();
    }

&ui_print_footer("/", "index");


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