!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/ipfilter/   drwxr-xr-x
Free 49.58 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:     cluster.cgi (1.99 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
#!/usr/bin/perl
# Show hosts in firewall cluster

require './ipfilter-lib.pl';
&foreign_require("servers", "servers-lib.pl");
&ReadParse();
&ui_print_header(undef, $text{'cluster_title'}, undef, "cluster");

# Show existing servers
@servers = &list_cluster_servers();
if (@servers) {
    print "<form action=cluster_delete.cgi>\n";
    print "<table border width=100%>\n";
    print "<tr $tb> <td width=10><br></td> ",
          "<td><b>$text{'cluster_host'}</b></td> ",
          "<td><b>$text{'cluster_desc'}</b></td> ",
          "<td><b>$text{'cluster_os'}</b></td> </tr>\n";
    foreach $s (@servers) {
        print "<tr $cb>\n";
        print "<td width=10><input type=checkbox name=d value=$s->{'id'}></td>\n";
        print "<td>",$s->{'host'},"</td>\n";
        print "<td>",$s->{'desc'} || "<br>","</td>\n";
        foreach $t (@servers::server_types) {
            if ($t->[0] eq $s->{'type'}) {
                print "<td>$t->[1]</td>\n";
                }
            }
        print "</tr>\n";
        }
    print "</table>\n";
    print "<input type=submit value='$text{'cluster_delete'}'></form>\n";
    }
else {
    print "<b>$text{'cluster_none'}</b><p>\n";
    }

# Show buttons to add
print "<form action=cluster_add.cgi>\n";
print "<table width=100%><tr>\n";
@allservers = grep { $_->{'user'} } &servers::list_servers();
%gothost = map { $_->{'id'}, 1 } @servers;
@addservers = grep { !$gothost{$_->{'id'}} } @allservers;
if (@addservers) {
    print "<td><input type=submit name=add value='$text{'cluster_add'}'>\n";
    print "<select name=server>\n";
    foreach $s (@addservers) {
        print "<option value=$s->{'id'}>",
            $s->{'desc'} ? $s->{'desc'} : $s->{'host'},"\n";
        }
    print "</select></td>\n";
    }
@groups = &servers::list_all_groups(\@allservers);
if (@groups) {
    print "<td align=right><input type=submit name=gadd ",
          "value='$text{'cluster_gadd'}'>\n";
    print "<select name=group>\n";
    foreach $g (@groups) {
        print "<option>$g->{'name'}\n";
        }
    print "</select></td>\n";
    }
print "</tr></table></form>\n";
if (!@allservers) {
    print "<b>$text{'cluster_need'}</b><p>\n";
    }

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