!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/postgresql/   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_user.cgi (2.05 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
#!/usr/bin/perl
# edit_user.cgi
# Display a form for editing or creating a user

require './postgresql-lib.pl';
&ReadParse();
$access{'users'} || &error($text{'user_ecannot'});
if ($in{'new'}) {
    &ui_print_header(undef, $text{'user_create'}, "");
    }
else {
    &ui_print_header(undef, $text{'user_edit'}, "");
    $s = &execute_sql_safe($config{'basedb'},
        "select $pg_shadow_cols from pg_shadow ".
        "where usename = '$in{'user'}'");
    @user = @{$s->{'data'}->[0]};
    }

# Start of the form
print &ui_form_start("save_user.cgi");
print &ui_hidden("new", $in{'new'});
print &ui_hidden("user", $in{'user'});
print &ui_table_start($text{'user_header'}, undef, 2);

# Username, not always editable
print &ui_table_row($text{'user_name'},
    $in{'new'} || &get_postgresql_version() >= 7.4 ?
        &ui_textbox("pname", $user[0], 40) :
        $user[0]);

if ($in{'new'}) {
    # For new users, can select empty or specific password
    print &ui_table_row($text{'user_passwd'},
          &ui_radio("ppass_def", 1,
            [ [ 1, $text{'user_none'} ],
              [ 0, $text{'user_setto'} ] ])." ".
             &ui_password("ppass", undef, 20));
    }
else {
    # For existing users, can select empty, leave unchanged or
    # specific password
    print &ui_table_row($text{'user_passwd'},
          &ui_radio("ppass_def", 2,
            [ [ 2, $text{'user_nochange'} ],
              [ 0, $text{'user_setto'} ] ])." ".
             &ui_password("ppass", undef, 20));
    }

# Can create databases?
print &ui_table_row($text{'user_db'},
    &ui_yesno_radio("db", $user[2] =~ /t|1/));

# Create create other users?
print &ui_table_row($text{'user_other'},
    &ui_yesno_radio("other", $user[4] =~ /t|1/));

# Valid until
$user[6] = '' if ($user[6] !~ /\S/);
print &ui_table_row($text{'user_until'},
    $user[6] ? &ui_textbox("until", $user[6], 40) :
        &ui_opt_textbox("until", $user[6], 40, $text{'user_forever'}));

# End of form and buttons
print &ui_table_end();
if ($in{'new'}) {
    print &ui_form_end([ [ undef, $text{'create'} ] ]);
    }
else {
    print &ui_form_end([ [ undef, $text{'save'} ],
                 [ 'delete', $text{'delete'} ] ]);
    }

&ui_print_footer("list_users.cgi", $text{'user_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.0108 ]--