!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_score.cgi (2.05 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
#!/usr/bin/perl
# save_score.cgi
# Save message scoring options

require './spam-lib.pl';
&error_setup($text{'score_err'});
&ReadParse();
&set_config_file_in(\%in);
&can_use_check("score");
&execute_before("score");
&lock_spam_files();
$conf = &get_config();

$hits_param = &version_atleast(3.0) ? "required_score" : "required_hits";
&parse_opt($conf, $hits_param, \&hits_check);
&parse_opt($conf, "auto_whitelist_factor", \&auto_check);
&parse_yes_no($conf, "use_bayes");
&parse_opt($conf, "check_mx_attempts", \&mx_check);
&parse_opt($conf, "check_mx_delay", \&mxdelay_check);
&parse_yes_no($conf, "skip_rbl_checks");
&parse_opt($conf, "rbl_timeout", \&timeout_check);
&parse_opt($conf, "num_check_received", \&received_check);

@trusted = grep { /\S/ } split(/\r?\n/, $in{'trusted_networks'});
&save_directives($conf, "trusted_networks", \@trusted, 1);

if (defined($in{'langs_def'})) {
    if ($in{'langs_def'} == 2) {
        &save_directives($conf, "ok_languages", [ ], 1);
        }
    elsif ($in{'langs_def'} == 1) {
        &save_directives($conf, "ok_languages", [ "all" ], 1);
        }
    else {
        &save_directives($conf, "ok_languages",
                 [ join(" ", split(/\0/, $in{'langs'})) ], 1);
        }
    }

if (defined($in{'locales_def'})) {
    if ($in{'locales_def'} == 2) {
        &save_directives($conf, "ok_locales", [ ], 1);
        }
    elsif ($in{'locales_def'} == 1) {
        &save_directives($conf, "ok_locales", [ "all" ], 1);
        }
    else {
        &save_directives($conf, "ok_locales",
                 [ join(" ", split(/\0/, $in{'locales'})) ], 1);
        }
    }

&flush_file_lines();
&unlock_spam_files();
&execute_after("score");
&webmin_log("score");
&redirect($redirect_url);

sub hits_check
{
$_[0] =~ /^\d+(\.\d+)?$/ || &error($text{'score_ehits'});
}

sub auto_check
{
$_[0] =~ /^\d+(\.\d+)?$/ && $_[0] >= 0 && $_[0] <= 1 ||
    &error($text{'score_eauto'});
}

sub mx_check
{
$_[0] =~ /^\d+$/ || &error($text{'score_emx'});
}

sub mxdelay_check
{
$_[0] =~ /^\d+$/ || &error($text{'score_emxdelay'});
}

sub timeout_check
{
$_[0] =~ /^\d+$/ || &error($text{'score_etimeout'});
}

sub received_check
{
$_[0] =~ /^\d+$/ || &error($text{'score_ereceived'});
}


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