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


Viewing file:     edit_ui.cgi (2.86 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
#!/usr/bin/perl
# edit_ui.cgi
# Edit user interface options

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

&get_usermin_config(\%uconfig);
print $text{'ui_desc'},"<p>\n";

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


for($i=0; $i<@webmin::cs_names; $i++) {
    $cd = $webmin::cs_codes[$i];
    print &ui_table_row($webmin::cs_names[$i],
            &ui_opt_textbox($cd, $uconfig{$cd}, 8, $text{'ui_default'},
              $text{'ui_rgb'}));
    }

print &ui_table_row($text{'ui_texttitles'},
      &ui_yesno_radio("texttitles", int($uconfig{'texttitles'})));

print &ui_table_row($text{'ui_sysinfo'},
      &ui_select("sysinfo", int($uconfig{'sysinfo'}),
      [ map { [ $_, $text{'ui_sysinfo'.$_} ] } (0, 1, 4, 2, 3) ]));

print &ui_table_row($text{'ui_hostnamemode'},
      &ui_select("hostnamemode", int($uconfig{'hostnamemode'}),
      [ map { [ $_, $text{'ui_hnm'.$_} ] } (0 .. 3) ]).
      " ".&ui_textbox("hostnamedisplay", $uconfig{'hostnamedisplay'}, 20));

print &ui_table_row($text{'ui_showlogin'},
      &ui_yesno_radio("showlogin", $uconfig{'showlogin'}));

print &ui_table_row($text{'startpage_nohost'},
      &ui_radio("nohostname", $uconfig{'nohostname'} ? 1 : 0,
          [ [ 0, $text{'yes'} ], [ 1, $text{'no'} ] ]));

print &ui_table_row($text{'startpage_gotoone'},
      &ui_yesno_radio("gotoone", int($uconfig{'gotoone'})));

@modules = &list_modules();
print &ui_table_row($text{'startpage_gotomodule'},
      &ui_select("gotomodule", $uconfig{'gotomodule'},
      [ [ "", $text{'startpage_gotonone'} ],
      map { [ $_->{'dir'}, $_->{'desc'} ] }
          sort { $a->{'desc'} cmp $b->{'desc'} } @modules ]));

print &ui_table_row($text{'ui_feedbackmode'},
      &ui_radio('feedback_def',
        $uconfig{'feedback'} ? 0 : 1,
        [ [ 0, $text{'ui_feedbackyes'} . ' '
            . &ui_textbox('feedback', $uconfig{'feedback'}) ]
        , [ 1, $text{'no'} ] ]));

print &ui_table_row($text{'ui_feedbackmail'},
      &ui_radio('feedbackmail_def',
        $uconfig{'feedbackmail'} ? 0 : 1,
        [ [ 1, $text{'ui_feedbackmail1'} ]
        , [ 0, $text{'ui_feedbackmail0'} . ' '
            . &ui_textbox('feedbackmail', $uconfig{'feedbackmail'}) ] ]));

print &ui_table_row($text{'ui_feedbackhost'},
        &ui_opt_textbox("feedbackhost", $uconfig{'feedbackhost'}, 30,
          $text{'ui_feedbackthis'}));

print &ui_table_row($text{'ui_tabs'},
    &ui_radio("notabs", $uconfig{'notabs'} ? 1 : 0,
      [ [ 0, $text{'yes'} ], [ 1, $text{'no'} ] ]));

print &ui_table_row($text{'ui_dateformat'},
    &ui_select("dateformat", $uconfig{'dateformat'} || "dd/mon/yyyy",
      [ map { [ $_, $text{'ui_dateformat_'.$_} ] }
        @webmin::webmin_date_formats ]));

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