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


Viewing file:     save_procmail.cgi (1.75 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
#!/usr/bin/perl
# Change the procmail rule that delivers spam

require './spam-lib.pl';
&error_setup($text{'procmail_err'});
&ReadParse();
&set_config_file_in(\%in);
&can_use_check("procmail");

# Validate inputs
$type = undef;
if ($in{'to'} == 0) {
    $file = "/dev/null";
    }
elsif ($in{'to'} == 1) {
    $in{'mbox'} =~ /^\S+$/ || &error($text{'setup_efile'});
    $file = $in{'mbox'};
    }
elsif ($in{'to'} == 2) {
    $in{'maildir'} =~ /^\S+$/ || &error($text{'setup_emaildir'});
    $file = "$in{'maildir'}/";
    }
elsif ($in{'to'} == 3) {
    $in{'mhdir'} =~ /^\S+$/ || &error($text{'setup_emhdir'});
    $file = "$in{'mhdir'}/.";
    }
elsif ($in{'to'} == 4) {
    $file = "\$DEFAULT";
    }
elsif ($in{'to'} == 5) {
    $in{'email'} =~ /^\S+$/ || &error($text{'setup_eemail'});
    $file = $in{'email'};
    $type = "!";
    }

# Find the existing recipe
&foreign_require("procmail", "procmail-lib.pl");
@pmrcs = &get_procmailrc();
$pmrc = $pmrcs[$#pmrcs];
@recipes = &procmail::parse_procmail_file($pmrc);
$spamrec = &find_file_recipe(\@recipes);

&lock_file($pmrc);
if ($file) {
    if ($spamrec) {
        # Update the recipe
        $spamrec->{'action'} = $file;
        $spamrec->{'type'} = $type;
        &procmail::modify_recipe($spamrec);
        }
    else {
        # Add a new recipe
        $spamrec = { 'flags' => [ ],
                 'conds' => [ [ '', '^X-Spam-Status: Yes' ] ],
                 'type' => $type,
                 'action' => $file };
        &procmail::create_recipe($spamrec, $pmrc);
        }
    }
elsif ($spamrec) {
    # Remove the recipe, to fall back to default delivery
    &procmail::delete_recipe($spamrec);
    }
&unlock_file($pmrc);

if ($module_info{'usermin'} && $file ne "/dev/null") {
    # Remember spam mail file
    $userconfig{'spam_file'} = $file;
    &write_file("$user_module_config_directory/config", \%userconfig);
    }

# All done!
&webmin_log("procmail");
&redirect($redirect_url);


:: 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.0032 ]--