!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 53.79 GB of 127.8 GB (42.09%)
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 (4.09 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
#!/usr/bin/perl
# index.cgi
# Display a table of icons for different types of webmin configuration

use strict;
use warnings;
require './webmin-lib.pl';
our (%in, %text, %gconfig, %config);
my $ver = &get_webmin_version();
&ui_print_header(undef, $text{'index_title'}, "", undef, 1, 1, 0,
    undef, undef, undef, &text('index_version', $ver));
my %access = &get_module_acl();
&ReadParse();

my (@wlinks, @wtitles, @wicons);
@wlinks = ( "edit_access.cgi", "edit_bind.cgi", "edit_log.cgi",
        "edit_proxy.cgi", "edit_ui.cgi", "edit_mods.cgi",
        "edit_os.cgi", "edit_lang.cgi", "edit_startpage.cgi",
        "edit_upgrade.cgi", "edit_session.cgi", "edit_assignment.cgi",
        "edit_categories.cgi", "edit_descs.cgi", "edit_themes.cgi",
        "edit_referers.cgi", "edit_anon.cgi", "edit_lock.cgi",
        "edit_mobile.cgi", "edit_blocked.cgi", "edit_status.cgi",
            "edit_advanced.cgi", "edit_debug.cgi", "edit_web.cgi",
        "edit_webmincron.cgi", );
@wtitles = ( $text{'access_title'}, $text{'bind_title'},
         $text{'log_title'}, $text{'proxy_title'},
         $text{'ui_title'}, $text{'mods_title'},
         $text{'os_title'}, $text{'lang_title'},
         $text{'startpage_title'}, $text{'upgrade_title'},
         $text{'session_title'}, $text{'assignment_title'},
         $text{'categories_title'}, $text{'descs_title'},
         $text{'themes_title'}, $text{'referers_title'},
         $text{'anon_title'}, $text{'lock_title'},
         $text{'mobile_title'}, $text{'blocked_title'},
         $text{'status_title'}, $text{'advanced_title'},
         $text{'debug_title'}, $text{'web_title'},
         $text{'webmincron_title'}, );
@wicons = ( "images/access.gif", "images/bind.gif", "images/log.gif",
        "images/proxy.gif", "images/ui.gif", "images/mods.gif",
        "images/os.gif", "images/lang.gif", "images/startpage.gif",
            "images/upgrade.gif", "images/session.gif",
        "images/assignment.gif", "images/categories.gif",
        "images/descs.gif", "images/themes.gif", "images/referers.gif",
        "images/anon.gif", "images/lock.gif", "images/mobile.gif",
        "images/blocked.gif", "images/status.gif",
        "images/advanced.gif", "images/debug.gif", "images/web.gif",
        "images/webmincron.gif", );
if ($gconfig{'eazel'}) {
    push(@wlinks, "edit_syslet.cgi");
    push(@wtitles, $text{'syslet_title'});
    push(@wicons, "images/syslet.gif");
    }
if (&foreign_check("mailboxes")) {
    push(@wlinks, "edit_sendmail.cgi");
    push(@wtitles, $text{'sendmail_title'});
    push(@wicons, "images/sendmail.gif");
    }
push(@wlinks, "edit_ssl.cgi", "edit_ca.cgi");
push(@wtitles, $text{'ssl_title'}, $text{'ca_title'});
push(@wicons, "images/ssl.gif", "images/ca.gif");

# Hide dis-allowed pages
my %allow = map { $_, 1 } split(/\s+/, $access{'allow'});
my %disallow = map { $_, 1 } split(/\s+/, $access{'disallow'});
for(my $i=0; $i<@wlinks; $i++) {
    $wlinks[$i] =~ /edit_(\S+)\.cgi/;
    if (%allow && !$allow{$1} ||
        $disallow{$1} ||
        $1 eq "webmin" && $gconfig{'os_type'} eq 'windows') {
        splice(@wlinks, $i, 1);
        splice(@wtitles, $i, 1);
        splice(@wicons, $i, 1);
        $i--;
        }
    }
&icons_table(\@wlinks, \@wtitles, \@wicons);

print &ui_hr();

print &ui_buttons_start();

my %miniserv;
&get_miniserv_config(\%miniserv);

if (&foreign_check("init")) {
    &foreign_require("init", "init-lib.pl");
    my $starting = &init::action_status("webmin");
    print &ui_buttons_row("bootup.cgi",
          $text{'index_boot'},
          $text{'index_bootmsg'}.
          ($miniserv{'inetd'} ? "<b>$text{'index_inetd'}</b>" :
           !$ENV{'MINISERV_CONFIG'} ? "<b>$text{'index_apache'}</b>" : ""),
          &ui_hidden("starting", $starting),
          &ui_radio("boot", $starting == 2 ? 1 : 0,
            [ [ 1, $text{'yes'} ],
              [ 0, $text{'no'} ] ]));
    }

# Restart Webmin
if (!$miniserv{'inetd'} && $ENV{'MINISERV_CONFIG'}) {
    print &ui_buttons_row("restart.cgi",
              $text{'index_restart'}, $text{'index_restartmsg'});
    }

# Refresh modules
print &ui_buttons_row("refresh_modules.cgi",
          $text{'index_refresh'}, $text{'index_refreshmsg'});

print &ui_buttons_end();

if ($in{'refresh'} && defined(&theme_post_change_modules)) {
    # Refresh left menu
    &theme_post_change_modules();
    }

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