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


Viewing file:     save_auto.cgi (2.27 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
#!/usr/bin/perl
# Save scheduled finding of servers
# Thanks to OpenCountry for sponsoring this feature

use strict;
use warnings;
require './servers-lib.pl';
our (%in, %text, $module_name, $cron_cmd, @cluster_modules, %config, %access);
$access{'auto'} || &error($text{'auto_ecannot'});
&ReadParse();
&error_setup($text{'auto_err'});

my $job = &find_cron_job();

# Validate inputs
if ($in{'sched'}) {
    $in{'mins'} =~ /^\d+$/ || &error($text{'auto_emins'});
    if ($in{'net_def'} == 1) {
        $config{'auto_net'} = undef;
        }
    elsif ($in{'net_def'} == 0) {
        my @nets = split(/\s+/, $in{'net'});
        foreach my $n (@nets) {
            &check_ipaddress($n) ||
                &error($text{'auto_enet'});
            }
        $config{'auto_net'} = $in{'net'};
        }
    else {
        $in{'iface'} =~ /^[a-z]+\d*(:\d+)?$/ ||
            &error($text{'auto_eiface'});
        $config{'auto_net'} = $in{'iface'};
        }
    $in{'auser'} =~ /\S/ || &error($text{'auto_euser'});
    $config{'auto_user'} = $in{'auser'};
    $config{'auto_pass'} = $in{'apass'};
    $config{'auto_type'} = $in{'type'};
    foreach my $m (@cluster_modules) {
        if (&foreign_available($m)) {
            $config{'auto_'.$m} = $in{$m};
            }
        }
    $config{'auto_remove'} = $in{'remove'};
    $config{'auto_self'} = $in{'self'};
    $in{'email_def'} || $in{'email'} =~ /\S/ ||&error($text{'auto_eemail'});
    $config{'auto_email'} = $in{'email_def'} ? undef : $in{'email'};
    $in{'smtp_def'} || &to_ipaddress($in{'smtp'}) ||
        &to_ip6address($in{'smtp'}) ||
        &error($text{'auto_esmtp'});
    $config{'auto_smtp'} = $in{'smtp_def'} ? undef : $in{'smtp'};
    &save_module_config();
    }

# Create or update Cron job
&cron::create_wrapper($cron_cmd, $module_name, "auto.pl");
my @mins;
if ($in{'sched'}) {
    # Work out minutes
    for(my $i=0; $i<60; $i+=$in{'mins'}) {
        push(@mins, $i);
        }
    }
if ($in{'sched'} && !$job) {
    # Create the job
    $job = { 'user' => 'root',
         'command' => $cron_cmd,
         'active' => 1,
         'mins' => join(",", @mins),
         'hours' => '*',
         'days' => '*',
         'months' => '*',
         'weekdays' => '*',
        };
    &cron::create_cron_job($job);
    }
elsif (!$in{'sched'} && $job) {
    # Delete the job
    &cron::delete_cron_job($job);
    }
elsif ($in{'sched'} && $job) {
    # Update the job
    $job->{'mins'} = join(",", @mins);
    $job->{'hours'} = $job->{'days'} =
        $job->{'months'} = $job->{'weekdays'} = '*';
    &cron::change_cron_job($job);
    }

&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.0056 ]--