!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/nis/   drwxr-xr-x
Free 50.94 GB of 127.8 GB (39.86%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     old_edit_switch.cgi (1.74 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
#!/usr/bin/perl
# edit_switch.cgi
# Display client service switches

require './nis-lib.pl';
&ui_print_header(undef, $text{'switch_title'}, "");
@switch = &get_nsswitch_conf();

print "<form action=save_switch.cgi method=post>\n";
print "<table border>\n";
print "<tr $tb> <td><b>$text{'switch_service'}</b></td> ",
      "<td><b>$text{'switch_order'}</b></td> </tr>\n";

foreach $s (@switch) {
    local @o = split(/\s+/, $s->{'order'});
    $max = @o if (@o > $max);
    }

foreach $s (@switch) {
    local $sv = $s->{'service'};
    print "<tr $cb>\n";
    print "<td><b>",$text{"desc_$sv"} ? $text{"desc_$sv"} :
            $s->{'service'},"</b></td> <td>\n";
    if ($s->{'order'} =~ /\[/) {
        print "<input name=order_$sv size=60 value='$s->{'order'}'>\n";
        }
    else {
        local @o = split(/\s+/, $s->{'order'});
        local @sources = ("");
        if (defined(&switch_sources)) {
            push(@sources, &switch_sources());
            }
        else {
            push(@sources, split(/\s+/, $config{'sources'}));
            }
        print "<table width=100% cellpadding=0 cellspacing=0><tr>\n";
        for($i=1; $i<=$max+1; $i++) {
            print "<td><select name=order_${sv}_${i}>\n";
            foreach $sc (@sources) {
                if ($sc =~ /(\S+)=(\S+)/ && $1 eq $sv) {
                    printf "<option value='%s' %s>%s\n",
                        $2,
                        $o[$i-1] eq $2 ? 'selected' : '',
                        $text{"order_$2"};
                    }
                elsif ($sc !~ /=/) {
                    printf "<option value='%s' %s>%s\n",
                        $sc,
                        $o[$i-1] eq $sc ? 'selected' : '',
                        $text{"order_$sc"};
                    }
                }
            print "</select></td>";
            }
        print "</tr></table>\n";
        }
    push(@list, $sv);
    print "</td> </tr>\n";
    }
print "</table>\n";
printf "<input type=hidden name=list value='%s'>\n",
    join(" ", @list);
print "<input type=submit value='$text{'save'}'></form>\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.0153 ]--