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


Viewing file:     browsermatch.pl (2.15 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
#  browsermatch.pl
# Functions used in mod_browser.pl and mod_setenvif.pl

sub edit_BrowserMatch_BrowserMatchNoCase
{
local($d, @w, $i, @regex, @var, @val, @case, $rv);
foreach $d (@{$_[0]}, @{$_[1]}) {
    @w = @{$d->{'words'}};
    for($i=1; $i<@w; $i++) {
        push(@regex, $w[0]);
        if ($w[$i] =~ /^\!(\S+)$/) { push(@var, $1); push(@val, undef); }
        elsif ($w[$i] =~ /^(\S+)=(\S*)$/) { push(@var, $1); push(@val, $2); }
        else { push(@var, $w[$i]); push(@val, 1); }
        if ($d->{'name'} eq "BrowserMatch") { push(@case, 1); }
        else { push(@case, 0); }
        }
    }
push(@regex, ""); push(@var, ""); push(@val, ""); push(@case, 0);
$rv = "<table border>\n".
      "<tr $tb> <td><b>$text{'browsermatch_regexp'}</b></td> <td><b>$text{'browsermatch_case'}</b></td>\n".
      "<td><b>$text{'browsermatch_var'}</b></td> <td><b>$text{'browsermatch_value'}</b></td> </tr>\n";
for($i=0; $i<@regex; $i++) {
    $rv .= "<tr $cb>\n";
    $rv .= sprintf
            "<td><input size=20 name=Browser_regex_$i value=\"%s\"></td>\n",
            $regex[$i];
    $rv .= "<td>".&choice_input($case[$i], "Browser_case_$i", 1,
           "$text{'yes'},1", "$text{'no'},0")."</td>\n";
    $rv .= sprintf
            "<td><input size=20 name=Browser_var_$i value=\"%s\"></td>\n",
            $var[$i];
    $rv .= "<td>".&opt_input($val[$i], "Browser_val_$i",
                 "$text{'browsermatch_clear'}", 10)."</td>\n";
    $rv .= "</tr>\n";
    }
$rv .= "</table>\n";
return (2, "$text{'browsermatch_txt'}", $rv);
}
sub save_BrowserMatch_BrowserMatchNoCase
{
local($i, $regex, $case, $var, $val, $set, $lastbm, $lastbmnc, @bm, @bmnc);
for($i=0; defined($regex = $in{"Browser_regex_$i"}); $i++) {
    $case = $in{"Browser_case_$i"}; $var = $in{"Browser_var_$i"};
    if ($regex !~ /\S/ && $var !~ /\S/) { next; }
    $var =~ /^\S+$/ || &error(&text('browsermatch_evar', $var));
    $val = $in{"Browser_val_$i"};
    $set = $in{"Browser_val_${i}_def"} ? "!$var" :
        $val eq "1" ? $var : "$var=$val";
    if ($case) {
        if ($regex eq $lastbm) { $bm[$#bm] .= " $set"; }
        else { push(@bm, "\"$regex\" $set"); }
        $lastbm = $regex;
        }
    else {
        if ($regex eq $lastbmnc) { $bmnc[$#bmnc] .= " $set"; }
        else { push(@bmnc, "\"$regex\" $set"); }
        $lastbmnc = $regex;
        }
    }
return ( \@bm, \@bmnc );
}

1;


:: 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.0141 ]--