!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/mailcap/   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:     edit.cgi (2 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
#!/usr/bin/perl
# Show a form for editing or creating a mailcap entry

require './mailcap-lib.pl';
&ReadParse();
if ($in{'new'}) {
    &ui_print_header(undef, $text{'edit_title1'}, "");
    $mailcap = { 'enabled' => 1 };
    }
else {
    &ui_print_header(undef, $text{'edit_title2'}, "");
    @mailcap = &list_mailcap();
    ($mailcap) = grep { $_->{'index'} == $in{'index'} } @mailcap;
    $mailcap || &error($text{'edit_egone'});
    }
$args = $mailcap->{'args'};

# Form header
print &ui_form_start("save.cgi", "post");
print &ui_hidden("new", $in{'new'}),"\n";
print &ui_hidden("index", $in{'index'}),"\n";
print &ui_table_start($text{'edit_header'}, "width=100%", 2);

# MIME type, program and description fields
print &ui_table_row($text{'edit_type'},
            &ui_textbox("type", $mailcap->{'type'}, 30));
print &ui_table_row($text{'edit_enabled'},
            &ui_yesno_radio("enabled", int($mailcap->{'enabled'})));
print &ui_table_row($text{'edit_program'},
            &ui_textbox("program", $mailcap->{'program'}, 70));
if ($mailcap->{'cmt'} =~ /\n/) {
    # Multi-line comment from file comments
    print &ui_table_row($text{'edit_cmt'},
            &ui_textarea("cmt", $mailcap->{'cmt'}, 3, 70, "off"));
    }
else {
    # Single line comment from file comment
    print &ui_table_row($text{'edit_cmt'},
            &ui_textbox("cmt", $mailcap->{'cmt'}, 70));
    }

# Other options
print &ui_table_hr();

print &ui_table_row($text{'edit_test'},
    &ui_opt_textbox("test", $args->{'test'}, 50, $text{'edit_none'}));

print &ui_table_row($text{'edit_term'},
    &ui_yesno_radio("term", defined($args->{'needsterminal'}) ? 1 : 0));
print &ui_table_row($text{'edit_copious'},
    &ui_yesno_radio("copious", defined($args->{'copiousoutput'}) ? 1 : 0));

print &ui_table_row($text{'edit_desc'},
    &ui_opt_textbox("desc", $args->{'description'}, 50, $text{'edit_none'}));

# Form footer
print &ui_table_end();
print &ui_form_end([
    $in{'new'} ? ( [ "create", $text{'create'} ] )
           : ( [ "save", $text{'save'} ],
               [ "delete", $text{'delete'} ] ) ]);

&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.0138 ]--