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


Viewing file:     build.cgi (1.84 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
#!/usr/bin/perl
# build.cgi
# Build a new sendmail.cf, after first confirming the changes

require './sendmail-lib.pl';
require './features-lib.pl';
$features_access || &error($text{'features_ecannot'});
&ReadParse();
$cmd = "cd $config{'sendmail_features'}/m4 ; m4 $config{'sendmail_features'}/m4/cf.m4 $config{'sendmail_mc'}";

if ($in{'confirm'}) {
    # Replace sendmail.cf with new version
    &lock_file($config{'sendmail_cf'});
    system("$cmd 2>/dev/null >$config{'sendmail_cf'} </dev/null");
    &unlock_file($config{'sendmail_cf'});
    &restart_sendmail();
    &webmin_log("build");
    &redirect("");
    }
else {
    # Just show user what would be done
    &ui_print_header(undef, $text{'build_title'}, "");

    if (!&has_command("m4")) {
        print &text('build_em4', "<tt>m4</tt>"),"<p>\n";
        &ui_print_footer("list_features.cgi", $text{'features_return'});
        exit;
        }

    $temp = &transname();
    $out = `$cmd 2>&1 >$temp`;
    if ($?) {
        print &text('build_ebuild', "<pre>$out</pre>"),"<p>\n";
        &ui_print_footer("list_features.cgi", $text{'features_return'});
        exit;
        }
    if (&has_command("diff") && -r $config{'sendmail_cf'}) {
        $diff = `diff $config{'sendmail_cf'} $temp 2>/dev/null`;
        if (!$diff) {
            print "$text{'build_nodiff'}<p>\n";
            &ui_print_footer("list_features.cgi", $text{'features_return'});
            exit;
            }
        }
    
    print "<center><form action=build.cgi>\n";
    print "<input type=hidden name=confirm value=1>\n";
    print &text('build_rusure', "<tt>$config{'sendmail_cf'}</tt>",
            "<tt>$config{'sendmail_mc'}</tt>"),"<p>\n";
    print $text{'build_rusure2'},"<p>\n";
    print "<input type=submit value='$text{'build_ok'}'>\n";
    print "</form></center>\n";

    if ($diff) {
        print "<b>$text{'build_diff'}</b><p>\n";
        print "<table border><tr $cb><td><pre>",
              $diff,"</pre></td></tr></table><p>\n";
        }
    unlink($temp);

    &ui_print_footer("list_features.cgi", $text{'features_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.0056 ]--