!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:     edit_os.cgi (3.04 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
#!/usr/bin/perl
# edit_os.cgi
# Operating system config form

require './usermin-lib.pl';
$access{'os'} || &error($text{'acl_ecannot'});
&ui_print_header(undef, $text{'os_title'}, "");

print $text{'os_desc3'},"<br>\n";
print $text{'os_desc2'},"<br>\n";

&get_usermin_config(\%uconfig);
&get_usermin_miniserv_config(\%miniserv);

print &ui_form_start("change_os.cgi", "post");
print &ui_table_start($text{'os_header'}, undef, 2, [ "width=30%" ]);

# OS according to Usermin
$osfile = "$miniserv{'root'}/os_list.txt";
print &ui_table_row($text{'os_usermin'},
      &ui_select("type", $uconfig{'real_os_type'},
        [ map { [ $_ ] } sort { $a cmp $b } &unique(map { $_->{'realtype'} }
          &webmin::list_operating_systems($os_file)) ])." ".
      &ui_textbox("version", $uconfig{'real_os_version'}, 10));

# Internal OS code
print &ui_table_row($text{'os_iusermin'},
      &ui_select("itype", $uconfig{'os_type'},
        [ map { [ $_ ] } sort { $a cmp $b } &unique(map { $_->{'type'} }
          &webmin::list_operating_systems($os_file)) ])." ".
      &ui_textbox("iversion", $uconfig{'os_version'}, 10));

# Detected OS
%osinfo = &webmin::detect_operating_system($osfile);
if ($osinfo{'real_os_type'}) {
    print &ui_table_row(
            $text{'os_detect'},
            "$osinfo{'real_os_type'} $osinfo{'real_os_version'}\n".
                ($osinfo{'os_type'} ne $uconfig{'os_type'} ||
                 $osinfo{'os_version'} ne $uconfig{'os_version'} ?
                 "<br>".&ui_checkbox("update", 1, $text{'os_update'}) :
                 ""));
    }
else {
    print &ui_table_row($text{'os_detect'},
                        "<i>$text{'os_cannot'}</i>");
    }
print &ui_table_hr();

# Search path
print &ui_table_row($text{'os_path'},
    &ui_textarea("path",
      join("\n", split($path_separator, $uconfig{'path'})),
      5, 30)."<br>".
    &ui_checkbox(
      "syspath", 1, $text{'os_syspath'}, !$uconfig{'syspath'}));

# Shared library path
if ($uconfig{'ld_env'}) {
    print &ui_table_row($text{'os_ld_path'},
            &ui_textarea("ld_path",
              join("\n", split($path_separator, $uconfig{'ld_path'})),
              5, 30));
        }

# Perl search path
print &ui_table_row($text{'os_perllib'},
    &ui_textarea("perllib",
         join("\n", split(":", $miniserv{'perllib'})), 3, 30));

# Global environment variables
$atable = &ui_columns_start([ $text{'os_name'},
                              $text{'os_value'} ]);
$i = 0;
foreach $e (keys %miniserv) {
        if ($e =~ /^env_(\S+)$/ &&
            $1 ne "WEBMIN_CONFIG" && $1 ne "WEBMIN_VAR") {
                $atable .= &ui_columns_row([
                        &ui_textbox("name_$i", $1, 20),
                        &ui_textbox("value_$i", $miniserv{$e}, 30)
                        ]);
                $i++;
                }
        }
$atable .= &ui_columns_row([ &ui_textbox("name_$i", undef, 20),
                             &ui_textbox("value_$i", undef, 30) ]);
$atable .= &ui_columns_end();
print &ui_table_row($text{'os_envs'}, $atable);

print &ui_table_end();
print &ui_form_end([ [ "", $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.0051 ]--