!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/postfix/   drwxr-xr-x
Free 51.95 GB of 127.8 GB (40.65%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     mailq.cgi (2.5 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
#!/usr/bin/perl
# mailq.cgi
# Display messages currently in the queue.

require './postfix-lib.pl';
require './boxes-lib.pl';
&ReadParse();

$access{'mailq'} || &error($text{'mailq_ecannot'});
&ui_print_header(undef, $text{'mailq_title'}, "");

# Get queued messages and sort
@qfiles = &list_queue(1);
if ($config{'mailq_sort'} == 0) {
    @qfiles = sort { $a->{'id'} cmp $b->{'id'} } @qfiles;
    }
elsif ($config{'mailq_sort'} == 1) {
    @qfiles = sort { lc($a->{'from'}) cmp lc($b->{'from'}) } @qfiles;
    }
elsif ($config{'mailq_sort'} == 2) {
    @qfiles = sort { lc($a->{'to'}) cmp lc($b->{'to'}) } @qfiles;
    }
elsif ($config{'mailq_sort'} == 4) {
    @qfiles = sort { lc($a->{'status'}) cmp lc($b->{'status'}) } @qfiles;
    }
elsif ($config{'mailq_sort'} == 5) {
    @qfiles = sort { $b->{'size'} <=> $a->{'size'} } @qfiles;
    }
elsif ($config{'mailq_sort'} == 6) {
    @qfiles = sort { $b->{'time'} <=> $a->{'time'} } @qfiles;
    }

if (@qfiles) {
    if (@qfiles > $config{'perpage'}) {
        # Need to show arrows
        print "<center>\n";
        $s = int($in{'start'});
        $e = $in{'start'} + $config{'perpage'} - 1;
        $e = @qfiles-1 if ($e >= @qfiles);
        if ($s) {
            printf "<a href='mailq.cgi?start=%d'>%s</a>\n",
                $s - $config{'perpage'},
                "<img src=/images/left.gif border=0 align=middle>";
            }
        print "<font size=+1>",&text('mail_pos', $s+1, $e+1,
                         scalar(@qfiles)),"</font>\n";
        if ($e < @qfiles-1) {
            printf "<a href='mailq.cgi?start=%d'>%s</a>\n",
                $s + $config{'perpage'},
                "<img src=/images/right.gif border=0 align=middle>";
            }
        print "</center>\n";
        }
    else {
        # Can show them all
        $s = 0;
        $e = @qfiles - 1;
        }

    # Show the mails
    &mailq_table([ @qfiles[$s .. $e] ]);

    # Show queue search form
    print &ui_form_start("mailq_search.cgi");
    print "<b>$text{'mailq_search'}</b>\n";
    print &ui_select("field", "from",
        [ map { [ $_, $text{'match_'.$_} ] }
            ('from', 'to', 'date', 'size', '',
             '!from', '!to', '!date', '!size') ]);
    print &ui_textbox("match", undef, 40);
    print &ui_submit($text{'mail_ok'});
    print &ui_form_end();

    # Show flush button, if the needed command is installed
    if (&has_command($config{'postfix_queue_command'})) {
        print &ui_hr();
        print &ui_buttons_start();
        print &ui_buttons_row("flushq.cgi", $text{'mailq_flush'},
                      $text{'mailq_flushdesc'});
        print &ui_buttons_row("mailq.cgi?$in", $text{'mailq_refresh'},
                      $text{'mailq_refreshdesc'});
        print &ui_buttons_end();
        }
    }
else {
    print "<b>$text{'mailq_none'}</b> <p>\n";
    }

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