!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/krb5/   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.66 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
#!/usr/bin/perl
# index.cgi

require './krb5-lib.pl';

&ui_print_header(undef, $text{'index_title'}, "", undef, 1, 1, 0,
         &help_search_link("krb5", "man"));

if (!-r $config{'krb5_conf'}) {
    &ui_print_endpage(
        &ui_config_link('index_econf',
            [ "<tt>$config{'krb5_conf'}</tt>", undef ]));
    }

%conf = &get_config();

print "<form action=\"save.cgi\">\n";
print "<table border width=100%>\n";
print "<tr $cb> <td><table width=100%>\n";
print "<tr $tb> <td colspan=4><b>$text{'logging'}</b></td> </tr>\n";

print "<tr $cb> <td>",&hlink("<b>$text{'default_log'}</b>","default_log"),"</td>\n";
print "<td><input name=default_log size=40 value=\"$conf{'default_log'}\">",
    &file_chooser_button("default_log", 1), "</td></tr>\n";

print "<tr $cb> <td>",&hlink("<b>$text{'kdc_log'}</b>","kdc_log"),"</td>\n";
print "<td><input name=kdc_log size=40 value=\"$conf{'kdc_log'}\">",
    &file_chooser_button("kdc_log", 1), "</td></tr>\n";

print "<tr $cb> <td>",&hlink("<b>$text{'admin_log'}</b>","admin_log"),"</td>\n";
print "<td><input name=admin_log size=40 value=\"$conf{'admin_server_log'}\">",
    &file_chooser_button("admin_log", 1), "</td></tr>\n";

print "<tr $tb> <td colspan=3><b>$text{'libdefaults'}</b></td> </tr>\n";

print "<tr> <td>",&hlink("<b>$text{'default_realm'}</b>","default_realm"),"</td>\n";
print "<td><input name=default_realm size=40 value=\"$conf{'realm'}\"> </td></tr>\n";

print "<tr> <td>",&hlink("<b>$text{'domain'}</b>","domain"),"</td>\n";
print "<td><input name=domain size=40 value=\"$conf{'domain'}\"> </td></tr>\n";

print "<tr> <td>",&hlink("<b>$text{'default_domain'}</b>","default_domain"),"</td>\n";
print "<td><input name=default_domain size=40 value=\"$conf{'default_domain'}\"> </td></tr>\n";

print "<tr> <td>",&hlink("<b>$text{'dns_kdc'}</b>","dns_kdc"),"</td>\n";
printf "<td><input type=radio name=dns_kdc value=1 %s> $text{'yes'}\n",
    ($conf{'dns_lookup_kdc'} eq "false") ? "" : "checked";
printf "<input type=radio name=dns_kdc value=0 %s> $text{'no'}</td></tr>\n",
    ($conf{'dns_lookup_kdc'} eq "false") ? "checked" : "";

print "<tr> <td>",&hlink("<b>$text{'default_kdc'}</b>","default_kdc"),"</td>\n";
print "<td><input name=default_kdc size=40 value=\"$conf{'kdc'}\"> : ";
print "<input name=default_kdc_port size=5 value=\"$conf{'kdc_port'}\"> </td></tr>\n";

print "<tr> <td>",&hlink("<b>$text{'default_admin'}</b>","default_admin"),"</td>\n";
print "<td><input name=default_admin size=40 value=\"$conf{'admin_server'}\"> : ";
print "<input name=default_admin_port size=5 value=\"$conf{'admin_port'}\"> </td></tr>\n";

print "</table></td></tr></table>\n";
print "<input type=submit value=\"$text{'save'}\"></form>\n";

&ui_print_footer("/", $text{'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.0064 ]--