!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/   drwxr-xr-x
Free 50.99 GB of 127.8 GB (39.9%)
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 (4.52 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |

use WebminCore;
&init_config();

# acl_security_form(&options)
# Output HTML for editing global security options
sub acl_security_form
{
local $o = $_[0];

# Root directory for file browser
print &ui_table_row($text{'acl_root'},
    &ui_opt_textbox("root", $o->{'root'}, 40, $text{'acl_home'})." ".
    &file_chooser_button("root", 1));

# Other dirs to allow
print &ui_table_row($text{'acl_otherdirs'},
    &ui_textarea("otherdirs", join("\n", split(/\t+/, $o->{'otherdirs'})),
             5, 40), 3);

# Can see dot files?
print &ui_table_row($text{'acl_nodot'},
    &ui_yesno_radio("nodot", int($o->{'nodot'})));

# Browse as Unix user
print &ui_table_row($text{'acl_fileunix'},
    &ui_opt_textbox("fileunix", $o->{'fileunix'}, 13,
            $text{'acl_sameunix'})." ".
    &user_chooser_button("fileunix"));

print &ui_hr();

# Users visible in chooser
print &ui_table_row($text{'acl_uedit'},
  &ui_radio_table("uedit_mode", int($o->{'uedit_mode'}),
    [ [ 0, $text{'acl_uedit_all'} ],
      [ 1, $text{'acl_uedit_none'} ],
      [ 2, $text{'acl_uedit_only'},
           &ui_textbox("uedit_can",
               $o->{'uedit_mode'} == 2 ? $o->{'uedit'} : "", 40).
           " ".&user_chooser_button("uedit_can", 1) ],
      [ 3, $text{'acl_uedit_except'},
           &ui_textbox("uedit_cannot",
               $o->{'uedit_mode'} == 3 ? $o->{'uedit'} : "", 40).
           " ".&user_chooser_button("uedit_cannot", 1) ],
      [ 4, $text{'acl_uedit_uid'},
           &ui_textbox("uedit_uid",
               $o->{'uedit_mode'} == 4 ? $o->{'uedit'} : "", 6).
           " - ".
           &ui_textbox("uedit_uid2",
               $o->{'uedit_mode'} == 4 ? $o->{'uedit2'} : "", 6) ],
      [ 5, $text{'acl_uedit_group'},
           &ui_group_textbox("uedit_group",
        $o->{'uedit_mode'} == 5 ? $dummy=getgrgid($o->{'uedit'}) : "")],
    ]));

# Groups visible in chooser
print &ui_table_row($text{'acl_gedit'},
    &ui_radio_table("gedit_mode", int($o->{'gedit_mode'}),
    [ [ 0, $text{'acl_gedit_all'} ],
      [ 1, $text{'acl_gedit_none'} ],
      [ 2, $text{'acl_gedit_only'},
           &ui_textbox("gedit_can",
               $o->{'gedit_mode'} == 2 ? $o->{'gedit'} : "", 40).
           " ".&group_chooser_button("gedit_can", 1) ],
      [ 3, $text{'acl_gedit_except'},
           &ui_textbox("gedit_cannot",
               $o->{'gedit_mode'} == 3 ? $o->{'gedit'} : "", 40).
           " ".&group_chooser_button("gedit_cannot", 1) ],
      [ 4, $text{'acl_gedit_gid'},
           &ui_textbox("gedit_gid",
               $o->{'gedit_mode'} == 4 ? $o->{'gedit'} : "", 6).
           " - ".
           &ui_textbox("gedit_gid2",
               $o->{'gedit_mode'} == 4 ? $o->{'gedit2'} : "", 6) ],
    ]));

print &ui_table_hr();

# Can submit feedback?
print &ui_table_row($text{'acl_feedback'},
    &ui_radio("feedback", int($o->{'feedback'}),
            [ map { [ $_, $text{'acl_feedback'.$_} ] } (2,3,1,0) ]));

# Can accept RPC calls?
print &ui_table_row($text{'acl_rpc'},
    &ui_radio("rpc", int($o->{'rpc'}),
          [ [ 1, $text{'acl_rpc1'} ],
            $o->{'rpc'} == 2 ? ( [ 2, $text{'acl_rpc2'} ] ) : ( ),
            [ 0, $text{'acl_rpc0'} ] ]));

# Get new permissions?
print &ui_table_row($text{'acl_negative'},
    &ui_radio("negative", int($o->{'negative'}),
          [ [ 0, $text{'yes'} ], [ 1, $text{'no'} ] ]));

# Readonly mode
print &ui_table_row($text{'acl_readonly2'},
    &ui_radio("readonly", int($o->{'readonly'}),
          [ [ 1, $text{'acl_readonlyyes'} ],
            [ 0, $text{'no'} ] ]));

# Allow use of search field
print &ui_table_row($text{'acl_webminsearch'},
    &ui_radio("webminsearch", int($o->{'webminsearch'}),
          [ [ 1, $text{'yes'} ], [ 0, $text{'no'} ] ]));
}

# acl_security_save(&options)
# Parse the form for global security options
sub acl_security_save
{
$_[0]->{'root'} = $in{'root_def'} ? undef : $in{'root'};
$_[0]->{'otherdirs'} = join("\t", split(/\r?\n/, $in{'otherdirs'}));
$_[0]->{'nodot'} = $in{'nodot'};

$_[0]->{'uedit_mode'} = $in{'uedit_mode'};
$_[0]->{'uedit'} = $in{'uedit_mode'} == 2 ? $in{'uedit_can'} :
           $in{'uedit_mode'} == 3 ? $in{'uedit_cannot'} :
           $in{'uedit_mode'} == 4 ? $in{'uedit_uid'} :
           $in{'uedit_mode'} == 5 ? getgrnam($in{'uedit_group'}) : "";
$_[0]->{'uedit2'} = $in{'uedit_mode'} == 4 ? $in{'uedit_uid2'} : undef;

$_[0]->{'gedit_mode'} = $in{'gedit_mode'};
$_[0]->{'gedit'} = $in{'gedit_mode'} == 2 ? $in{'gedit_can'} :
           $in{'gedit_mode'} == 3 ? $in{'gedit_cannot'} :
           $in{'gedit_mode'} == 4 ? $in{'gedit_gid'} : "";
$_[0]->{'gedit2'} = $in{'gedit_mode'} == 4 ? $in{'gedit_gid2'} : undef;
$_[0]->{'feedback'} = $in{'feedback'};
$_[0]->{'rpc'} = $in{'rpc'};
$_[0]->{'negative'} = $in{'negative'};
$_[0]->{'readonly'} = $in{'readonly'};
$_[0]->{'fileunix'} = $in{'fileunix_def'} ? undef : $in{'fileunix'};
$_[0]->{'webminsearch'} = $in{'webminsearch'};
}


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