!C99Shell v. 1.0 pre-release build #16!

Software: Apache/2.0.54 (Fedora). PHP/5.0.4 

uname -a: Linux mina-info.me 2.6.17-1.2142_FC4smp #1 SMP Tue Jul 11 22:57:02 EDT 2006 i686 

uid=48(apache) gid=48(apache) groups=48(apache)
context=system_u:system_r:httpd_sys_script_t
 

Safe-mode: OFF (not secure)

/usr/libexec/webmin/sendmail/   drwxr-xr-x
Free 5.34 GB of 27.03 GB (19.75%)
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:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 1.0 pre-release build #16 powered by Captain Crunch Security Team | http://ccteam.ru | Generation time: 0.0033 ]--