!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.86%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     view_queue.cgi (2.23 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
#!/usr/bin/perl
# view_queue.cgi
# Display some message from the mail queue

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

$mail = &read_mail_file($in{'file'});
&parse_mail($mail);

$desc = &text('qview_desc', "<tt>$in{'file'}</tt>");
&ui_print_header($desc, $text{'qview_title'}, "");

print "<form action=delete_queue.cgi method=post>\n";
print "<input type=hidden name=file value='$in{'file'}'>\n";
print "<table width=100% border=1>\n";
print "<tr> <td $tb><b>$text{'qview_headers'}</b></td> </tr>\n";
print "<tr> <td $cb><table width=100%>\n";
print "<tr> <td><b>$text{'queue_from'}</b></td> ",
      "<td>",&html_escape($mail->{'header'}->{'from'}),"</td> </tr>\n";
print "<tr> <td><b>$text{'queue_to'}</b></td> ",
      "<td>",&html_escape($mail->{'header'}->{'to'}),"</td> </tr>\n";
print "<tr> <td><b>$text{'queue_cc'}</b></td> ",
      "<td>",&html_escape($mail->{'header'}->{'cc'}),"</td> </tr>\n"
    if ($mail->{'header'}->{'cc'});
print "<tr> <td><b>$text{'queue_date'}</b></td> ",
      "<td>",&html_escape($mail->{'header'}->{'date'}),"</td> </tr>\n";
print "<tr> <td><b>$text{'queue_subject'}</b></td> ",
      "<td>",&html_escape($mail->{'header'}->{'subject'}),"</td> </tr>\n";
print "</table></td></tr></table><p>\n";

# Find body attachment
@attach = @{$mail->{'attach'}};
foreach $a (@attach) {
    if ($a->{'type'} eq 'text/plain') {
        $body = $a;
        last;
        }
    }
if ($body) {
    print "<table width=100% border=1><tr><td $cb><pre>\n";
    foreach $l (&wrap_lines($body->{'data'}, $config{'wrap_width'})) {
        print &link_urls_and_escape($l),"\n";
        }
    print "</pre></td></tr></table><p>\n";
    }

# Display other attachments
@attach = grep { $_ ne $body } @attach;
@attach = grep { !$_->{'attach'} } @attach;
if (@attach) {
    print "<table width=100% border=1>\n";
    print "<tr> <td $tb><b>$text{'qview_attach'}</b></td> </tr>\n";
    print "<tr> <td $cb>\n";
    foreach $a (@attach) {
        push(@titles, $a->{'filename'} ? $a->{'filename'}
                           : $a->{'type'});
        push(@links, "detach_queue.cgi?file=$in{'file'}&attach=$a->{'idx'}");
        push(@icons, "images/boxes.gif");
        }
    &icons_table(\@links, \@titles, \@icons, 8);
    print "</td></tr></table><p>\n";
    }

print "<input type=submit value='$text{'delete'}'></form>\n";

&ui_print_footer("list_queue.cgi", $text{'queue_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.0132 ]--