!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-software/   drwxr-xr-x
Free 49.59 GB of 127.8 GB (38.8%)
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 (1.61 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
#!/usr/bin/perl
# refresh.cgi
# Reload the list of packages from all managed hosts

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

# Work out which hosts to refresh
@hosts = &list_software_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");
    }

# Do the refresh
@results = &refresh_packages(\@hosts);

# Show the user
$p = 0;
foreach $h (@hosts) {
    local ($s) = grep { $_->{'id'} == $h->{'id'} } @servers;
    local $d = $s->{'desc'} || $s->{'realhost'} || $s->{'host'};
    local $rv = $results[$p];

    if ($rv && ref($rv)) {
        @added = @{$rv->[0]};
        @old = @{$rv->[1]};
        if (@added && @old) {
            print &text('refresh_1', $d,
                    join(" ", @added),join(" ", @old)),"<br>\n";
            }
        elsif (@added) {
            print &text('refresh_2', $d,
                    join(" ", @added)),"<br>\n";
            }
        elsif (@old) {
            print &text('refresh_3', $d, join(" ", @old)),"<br>\n";
            }
        else {
            print &text('refresh_4', $d),"<br>\n";
            }
        }
    elsif ($rv) {
        print &text('refresh_failed', $d, $rv),"<br>\n";
        }
    else {
        print &text('refresh_del', $h->{'id'}),"<br>\n";
        }

    $p++;
    }

print "<p><b>$text{'refresh_done'}</b><p>\n";

&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.0059 ]--