!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/sshd/   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_misc.cgi (2.5 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
#!/usr/bin/perl
# save_misc.cgi
# save miscellaneous options

require './sshd-lib.pl';
&ReadParse();
&error_setup($text{'misc_err'});
&lock_file($config{'sshd_config'});
$conf = &get_sshd_config();

&save_directive("X11Forwarding", $conf, $in{'x11'} ? 'yes' : 'no');

if ($version{'type'} ne 'ssh' || $version{'number'} < 2) {
    if ($in{'xoff_def'}) {
        &save_directive("X11DisplayOffset", $conf);
        }
    else {
        $in{'xoff'} =~ /^\d+$/ || &error($text{'misc_exoff'});
        &save_directive("X11DisplayOffset", $conf, $in{'xoff'});
        }

    if ($version{'type'} eq 'ssh' || $version{'number'} >= 2) {
        if ($in{'xauth_def'}) {
            &save_directive("XAuthLocation", $conf);
            }
        else {
            -x $in{'xauth'} || &error($text{'misc_exauth'});
            &save_directive("XAuthLocation", $conf, $in{'xauth'});
            }
        }
    }

if ($version{'type'} eq 'ssh' && $version{'number'} < 2) {
    if ($in{'umask_def'}) {
        &save_directive("Umask", $conf);
        }
    else {
        $in{'umask'} =~ /^0[0-7][0-7][0-7]$/ ||
            &error($text{'misc_eumask'});
        &save_directive("Umask", $conf, $in{'umask'});
        }
    }

&save_directive("SyslogFacility", $conf,
        $in{'syslog_def'} ? undef : uc($in{'syslog'}));

if ($version{'type'} eq 'openssh') {
    &save_directive("LogLevel", $conf,
            $in{'loglevel_def'} ? undef : $in{'loglevel'});
    }

if ($version{'type'} ne 'ssh' || $version{'number'} < 2) {
    if ($in{'bits_def'}) {
        &save_directive("ServerKeyBits", $conf);
        }
    else {
        $in{'bits'} =~ /^\d+$/ || &error($text{'misc_ebits'});
        &save_directive("ServerKeyBits", $conf, $in{'bits'});
        }
    }

if ($version{'type'} eq 'ssh') {
    &save_directive("QuietMode", $conf, $in{'quite'} ? 'yes' : 'no');
    }

if ($version{'type'} ne 'ssh' || $version{'number'} < 2) {
    if ($in{'regen_def'}) {
        &save_directive("KeyRegenerationInterval", $conf);
        }
    else {
        $in{'regen'} =~ /^\d+$/ || &error($text{'misc_eregen'});
        &save_directive("KeyRegenerationInterval", $conf, $in{'regen'});
        }
    }

if ($version{'type'} eq 'ssh' && $version{'number'} < 2) {
    &save_directive("FascistLogging", $conf, $in{'fascist'} ? 'yes' : 'no');
    }

if ($version{'type'} eq 'openssh' && $version{'number'} >= 2) {
    if ($in{'pid_def'}) {
        &save_directive("PidFile", $conf);
        }
    else {
        $in{'pid'} =~ /^\S+$/ || &error($text{'misc_epid'});
        &save_directive("PidFile", $conf, $in{'pid'});
        }
    }

if ($version{'type'} eq 'openssh' && $version{'number'} >= 3.2) {
    &save_directive("UsePrivilegeSeparation", $conf,
            $in{'separ'} ? 'yes' : 'no');
    }

&flush_file_lines();
&unlock_file($config{'sshd_config'});
&webmin_log("misc");
&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.0142 ]--