!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/webmin/   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_log.cgi (2.7 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
#!/usr/bin/perl
# edit_log.cgi
# Logging config form

require './webmin-lib.pl';
&ui_print_header(undef, $text{'log_title'}, "");
&foreign_require("acl", "acl-lib.pl");
&get_miniserv_config(\%miniserv);

print &text('log_desc', "<tt>$miniserv{'logfile'}</tt>"),"<p>\n";
print &text('log_desc2', "<tt>$webmin_logfile</tt>"),"<p>\n";

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

# Is logging enabled?
print &ui_table_row($text{'log_status'},
    &ui_radio("log", $miniserv{'log'} ? 1 : 0,
          [ [ 1, $text{'log_enable'} ],
            [ 0, $text{'log_disable'} ] ]));

# Log resolved hostnames
print &ui_table_row($text{'log_resolv'},
    &ui_yesno_radio("loghost", int($miniserv{'loghost'})));

# Use common log format
print &ui_table_row($text{'log_clf'},
    &ui_yesno_radio("logclf", int($miniserv{'logclf'})));

# Clear logs regularly
print &ui_table_row($text{'log_clear2'},
    &ui_radio("logclear", int($miniserv{'logclear'}),
          [ [ 1, &text('log_period',
            &ui_textbox("logtime", $miniserv{'logtime'}, 10)) ],
            [ 0, $text{'no'} ] ]));

# Webmin users to log for
print &ui_table_row($text{'log_forusers'},
    &ui_radio("uall", $gconfig{'logusers'} ? 0 : 1,
          [ [ 1, $text{'log_uall'} ], [ 0, $text{'log_users'} ] ]).
    "<br>\n".
    &ui_select("users", [ split(/\s+/, $gconfig{'logusers'}) ],
           [ map { [ $_->{'name'} ] }
             sort { $a->{'name'} cmp $b->{'name'} } 
                  &acl::list_users() ],
           5, 1));

# Modules to log in
print &ui_table_row($text{'log_inmods'},
    &ui_radio("mall", $gconfig{'logmodules'} ? 0 : 1,
          [ [ 1, $text{'log_mall'} ], [ 0, $text{'log_modules'} ] ]).
    "<br>\n".
    &ui_select("modules", [ split(/\s+/, $gconfig{'logmodules'}) ],
           [ map { [ $_->{'dir'}, $_->{'desc'} ] }
             grep { -r &module_root_directory($_)."/log_parser.pl" }
                  sort { $a->{'desc'} cmp $b->{'desc'} }
                   &get_all_module_infos() ],
           5, 1));

# Log logins and logouts?
if (!$miniserv{'login_script'} ||
    $miniserv{'login_script'} eq $record_login_cmd) {
    print &ui_table_row($text{'log_login'},
        &ui_yesno_radio("login",
            $miniserv{'login_script'} eq $record_login_cmd));
    }

print &ui_table_row($text{'log_files'},
    &ui_yesno_radio("logfiles", int($gconfig{'logfiles'})));

print &ui_table_row($text{'log_fullfiles'},
    &ui_yesno_radio("logfullfiles", int($gconfig{'logfullfiles'})));

print &ui_table_row($text{'log_perms'},
    &ui_opt_textbox("perms", $gconfig{'logperms'}, 5, $text{'default'}));

eval "use Sys::Syslog qw(:DEFAULT setlogsock)";
if (!$@) {
    print &ui_table_row($text{'log_syslog'},
        &ui_yesno_radio("logsyslog", int($gconfig{'logsyslog'})));
    }

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