!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/updown/   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:     acl_security.pl (3.2 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |

require 'updown-lib.pl';

# acl_security_form(&options)
# Output HTML for editing security options for the updown module
sub acl_security_form
{
print "<tr> <td><b>$text{'acl_upload'}</b></td>\n";
printf "<td colspan=3><input type=radio name=upload value=1 %s> %s\n",
    $_[0]->{'upload'} ? "checked" : "", $text{'yes'};
printf "<input type=radio name=upload value=0 %s> %s</td> </tr>\n",
    $_[0]->{'upload'} ? "" : "checked", $text{'no'};

print "<tr> <td nowrap><b>$text{'acl_max'}</b></td>\n";
printf "<td colspan=3><input type=radio name=max_def value=1 %s> %s\n",
    $_[0]->{'max'} ? "" : "checked", $text{'acl_unlim'};
printf "<input type=radio name=max_def value=0 %s>\n",
    $_[0]->{'max'} ? "checked" : "";
printf "<input name=max size=8 value='%s'> %s</td> </tr>\n",
    $_[0]->{'max'}, $text{'acl_b'};

print "<tr> <td><b>$text{'acl_download'}</b></td>\n";
printf "<td colspan=3><input type=radio name=download value=1 %s> %s\n",
    $_[0]->{'download'} == 1 ? "checked" : "", $text{'yes'};
printf "<input type=radio name=download value=2 %s> %s\n",
    $_[0]->{'download'} == 2 ? "checked" : "", $text{'acl_nosched'};
printf "<input type=radio name=download value=0 %s> %s</td> </tr>\n",
    $_[0]->{'download'} == 0 ? "checked" : "", $text{'no'};

print "<tr> <td valign=top><b>$text{'acl_users'}</b></td> <td colspan=3>\n";
printf "<input type=radio name=mode value=0 %s> $text{'acl_all'}<br>\n",
    $_[0]->{'mode'} == 0 ? "checked" : "";
printf "<input type=radio name=mode value=3 %s> $text{'acl_this'}<br>\n",
    $_[0]->{'mode'} == 3 ? "checked" : "";
printf "<input type=radio name=mode value=1 %s> $text{'acl_only'}\n",
    $_[0]->{'mode'} == 1 ? "checked" : "";
printf "<input name=userscan size=40 value='%s'> %s<br>\n",
    $_[0]->{'mode'} == 1 ? $_[0]->{'users'} : "",
    &user_chooser_button("userscan", 1);
printf "<input type=radio name=mode value=2 %s> $text{'acl_except'}\n",
    $_[0]->{'mode'} == 2 ? "checked" : "";
printf "<input name=userscannot size=40 value='%s'> %s</td> </tr>\n",
    $_[0]->{'mode'} == 2 ? $_[0]->{'users'} : "",
    &user_chooser_button("userscannot", 1);

print "<tr> <td valign=top><b>$text{'acl_dirs'}</b></td> <td colspan=3>\n";
print "<textarea name=dirs rows=3 cols=50>",
    join("\n", split(/\s+/, $_[0]->{'dirs'})),"</textarea><br>\n";
printf "<input type=checkbox name=home value=1 %s> %s</td> </tr>\n",
    $_[0]->{'home'} ? 'checked' : '', $text{'acl_home'};

print "<tr> <td><b>$text{'acl_fetch'}</b></td>\n";
printf "<td colspan=3><input type=radio name=fetch value=1 %s> %s\n",
    $_[0]->{'fetch'} ? "checked" : "", $text{'yes'};
printf "<input type=radio name=fetch value=0 %s> %s</td> </tr>\n",
    $_[0]->{'fetch'} ? "" : "checked", $text{'no'};
}

# acl_security_save(&options)
# Parse the form for security options for the cron module
sub acl_security_save
{
$_[0]->{'upload'} = $in{'upload'};
$_[0]->{'max'} = $in{'max_def'} ? undef : $in{'max'};
$_[0]->{'download'} = $in{'download'};
$_[0]->{'mode'} = $in{'mode'};
$_[0]->{'users'} = $in{'mode'} == 0 || $in{'mode'} == 3 ? "" :
           $in{'mode'} == 1 ? $in{'userscan'}
                    : $in{'userscannot'};
local @dirs = split(/\s+/, $in{'dirs'});
map { s/\/+/\//g } @dirs;
map { s/([^\/])\/+$/$1/ } @dirs;
$_[0]->{'dirs'} = join(" ", @dirs);
$_[0]->{'home'} = $in{'home'};
$_[0]->{'fetch'} = $in{'fetch'};
}


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