!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/usermin/   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:     edit_dav.cgi (1.75 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
#!/usr/bin/perl
# Display DAV server options

require './usermin-lib.pl';
&ui_print_header(undef, $text{'dav_title'}, "");
&get_usermin_miniserv_config(\%miniserv);

print $text{'dav_desc'},"<p>\n";

# Check for need Perl modules
foreach $m ("Filesys::Virtual::Plain", "Filesys::Virtual", "Net::DAV::Server",
        "HTTP::Request") {
    eval "use $m";
    if ($@) {
        # Missing!
        print &text('dav_emodule', "<tt>$m</tt>"),"\n";
        if (&foreign_available("cpan")) {
            print &text('dav_cpan', "../cpan/download.cgi?source=3&cpan=$m&mode=2&return=/$module_name/&returndesc=".&urlize($text{'index_return'})),"\n";
            }
        print "<p>\n";
        &ui_print_footer("", $text{'index_return'});
        exit;
        }
    }

print &ui_form_start("save_dav.cgi", "post");
print &ui_table_start($text{'dav_header'}, undef, 2);

# Allowed paths
print &ui_table_row($text{'dav_path'},
    &ui_radio("path_def", $miniserv{'davpaths'} ? 0 : 1,
      [ [ 1, $text{'dav_disabled'} ],
        [ 0, &text('dav_enabled',
           &ui_textbox("path", $miniserv{'davpaths'} || "/dav", 30)) ] ]
        ));

# Root directory
$rmode = $miniserv{'dav_root'} eq '' ? 0 :
     $miniserv{'dav_root'} eq '*' ? 1 : 2;
print &ui_table_row($text{'dav_root'},
    &ui_radio("root_def", $rmode,
      [ [ 0, $text{'dav_root0'} ],
        [ 1, $text{'dav_root1'} ],
        [ 2, &text('dav_root2',
        &ui_textbox("root", $rmode == 2 ? $miniserv{'dav_root'} : undef,
                 30)) ] ]));

# Allowed users
print &ui_table_row($text{'dav_users'},
    &ui_radio("users_def", $miniserv{'dav_users'} ? 0 : 1,
          [ [ 1, $text{'dav_users1'} ],
            [ 0,  $text{'dav_users0'} ] ])."<br>\n".
    &ui_textarea("users", join("\n", split(/\s+/, $miniserv{'dav_users'})),
             5, 40));

print &ui_table_end();
print &ui_form_end([ [ "save", $text{'save'} ] ]);

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