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


Viewing file:     save_sched.cgi (2.21 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
#!/usr/bin/perl
# save_sched.cgi
# Save scheduled monitoring options

require './status-lib.pl';
$access{'sched'} || &error($text{'sched_ecannot'});
&ReadParse();
&error_setup($text{'sched_err'});

# Parse and save inputs
$in{'email_def'} || $in{'email'} =~ /\S/ || &error($text{'sched_eemail'});
$config{'sched_email'} = $in{'email_def'} ? '' : $in{'email'};
if ($config{'pager_cmd'}) {
    $config{'sched_pager'} = $in{'pager_def'} ? '' : $in{'pager'};
    }
if ($in{'sms_def'}) {
    delete($config{'sched_carrier'});
    delete($config{'sched_sms'});
    }
else {
    $config{'sched_carrier'} = $in{'carrier'};
    ($carrier) = grep { $_->{'id'} eq $in{'carrier'} }
              &list_sms_carriers();
    if ($carrier->{'alpha'}) {
        $in{'sms'} =~ /^\S+$/ || &error($text{'sched_esmsname'});
        }
    else {
        $in{'sms'} =~ /^\d+$/ || &error($text{'sched_esmsnumber'});
        }
    $config{'sched_sms'} = $in{'sms'};
    }
if ($in{'from_def'}) {
    delete($config{'sched_from'});
    }
else {
    $in{'from'} =~ /^\S+$/ || &error($text{'sched_efrom'});
    $config{'sched_from'} = $in{'from'};
    }
if ($in{'smtp_def'}) {
    if (!$in{'from_def'}) {
        &foreign_require("mailboxes");
        $err = &mailboxes::test_mail_system();
        $err && &error(&text('sched_eemailserver', $err));
        }
    delete($config{'sched_smtp'});
    }
else {
    if (!$in{'from_def'}) {
        &to_ipaddress($in{'smtp'}) || &to_ip6address($in{'smtp'}) ||
            &error($text{'sched_esmtp'});
        }
    $config{'sched_smtp'} = $in{'smtp'};
    }
$config{'sched_mode'} = $in{'mode'};
$in{'int'} =~ /^\d+$/ || &error($text{'sched_eint'});
$config{'sched_int'} = $in{'int'};
$config{'sched_period'} = $in{'period'};
$in{'offset'} =~ /^\d+$/ || &error($text{'sched_eoffset'});
$config{'sched_offset'} = $in{'offset'};
$config{'sched_warn'} = $in{'warn'};
$config{'sched_single'} = $in{'single'};
@hours = split(/\0/, $in{'hours'});
@hours || &error($text{'sched_ehours'});
$config{'sched_hours'} = @hours == 24 ? '' : join(" ", @hours);
@days = split(/\0/, $in{'days'});
@days || &error($text{'sched_edays'});
$config{'sched_days'} = @days == 7 ? '' : join(" ", @days);
&lock_file("$module_config_directory/config");
&save_module_config();
&unlock_file("$module_config_directory/config");

# Setup or remove the cron job
&setup_cron_job();

&webmin_log("sched");
&redirect("");



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