!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/change-user/   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:     index.cgi (2.7 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
#!/usr/bin/perl
# index.cgi
# Display the user's current language, theme and password

use strict;
use warnings;
require './change-user-lib.pl';
our (%text, %access, $base_remote_user, $default_lang, %gconfig);
&ui_print_header(undef, $text{'index_title'}, "", undef, 0, 1);

my @users = &acl::list_users();
my ($user) = grep { $_->{'name'} eq $base_remote_user } @users;

my @can;
push(@can, 'lang') if ($access{'lang'});
push(@can, 'theme') if ($access{'theme'});
push(@can, 'pass') if ($access{'pass'} && &can_change_pass($user));
my $can = &text('index_d'.scalar(@can), map { $text{'index_d'.$_} } @can);
print &text('index_desc2', $can),"<p>\n";

print &ui_form_start("change.cgi", "post");
print &ui_table_start(undef, undef, 2);

if ($access{'lang'}) {
    # Show personal language
    my @langs = &list_languages();
    my $glang = $gconfig{"lang"} || $default_lang;
    my ($linfo) = grep { $_->{'lang'} eq $glang } @langs;
    print &ui_table_row($text{'index_lang'},
        &ui_radio("lang_def", $user->{'lang'} ? 0 : 1,
              [ [ 1, &text('index_langglobal',
                       $linfo->{'desc'})."<br>" ],
                [ 0, $text{'index_langset'} ] ])." ".
        &ui_select("lang", $user->{'lang'},
               [ map { [ $_->{'lang'},
                     $_->{'desc'}." (".uc($_->{'lang'}).")" ] }
                     &list_languages() ]));
    }

if ($access{'theme'}) {
    # Show personal theme
    my $tname;
    if ($gconfig{'theme'}) {
        my ($gtheme, $goverlay) = split(/\s+/, $gconfig{'theme'});
        my %tinfo = &webmin::get_theme_info($gtheme);
        $tname = $tinfo{'desc'};
        }
    else {
        $tname = $text{'index_themedef'};
        }
    my @all = &webmin::list_themes();
    my @themes = grep { !$_->{'overlay'} } @all;
    my @overlays = grep { $_->{'overlay'} } @all;

    # Main theme
    print &ui_table_row($text{'index_theme'},
        &ui_radio("theme_def", defined($user->{'theme'}) ? 0 : 1,
              [ [ 1, &text('index_themeglobal', $tname)."<br>" ],
                [ 0, $text{'index_themeset'} ] ])." ".
        &ui_select("theme", $user->{'theme'},
            [ [ '', $text{'index_themedef'} ],
              map { [ $_->{'dir'}, $_->{'desc'} ] }
                  @themes ]));

    # Overlay, if any
    if (@overlays) {
        print &ui_table_row($text{'index_overlay'},
            &ui_select("overlay", $user->{'overlay'},
                [ [ '', $text{'index_overlaydef'} ],
                  map { [ $_->{'dir'}, $_->{'desc'} ] }
                      @overlays ]));
        }
    }

if ($access{'pass'} && &can_change_pass($user)) {
    # Show password
    print &ui_table_row($text{'index_pass'},
        &ui_radio("pass_def", 1,
              [ [ 1, $text{'index_passleave'}."<br>" ],
                [ 0, $text{'index_passset'} ] ])." ".
        &ui_password("pass", undef, 20)." ".
        $text{'index_passagain'}." ".
        &ui_password("pass2", undef, 20));
    }

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

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


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