!C99Shell v. 1.0 pre-release build #16!

Software: Apache/2.0.54 (Fedora). PHP/5.0.4 

uname -a: Linux mina-info.me 2.6.17-1.2142_FC4smp #1 SMP Tue Jul 11 22:57:02 EDT 2006 i686 

uid=48(apache) gid=48(apache) groups=48(apache)
context=system_u:system_r:httpd_sys_script_t
 

Safe-mode: OFF (not secure)

/usr/libexec/webmin/filemin/   drwxr-xr-x
Free 3.83 GB of 27.03 GB (14.16%)
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 (2.2 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
require 'filemin-lib.pl';

sub acl_security_form {
    my ($access) = @_;

    # Directories the user can access
    print &ui_table_row($text{'acl_allowed_paths'}."<br>\n".
            $text{'acl_allowed_paths2'},
    ui_textarea("allowed_paths",
            join("\n", split(/\s+/, $access->{'allowed_paths'})),
            10, 80, undef, undef, "style='width: 100%'"), 2);

    # Mimetypes allowed to be edited
    print &ui_table_row($text{'acl_allowed_for_edit'},
    ui_textarea("allowed_for_edit",
            join("\n", split(/\s+/, $access->{'allowed_for_edit'})),
            10, 80, undef, undef, "style='width: 100%'"), 2);

    # Run as Unix user
    print &ui_table_row($text{'acl_work_as'},
    ui_radio_table("user_mode", $access->{'work_as_root'} ? 0 :
                        $access->{'work_as_user'} ? 2 : 1,
           [ [ 0, $text{'acl_root'} ],
         [ 1, $text{'acl_same'} ],
         [ 2, $text{'acl_user'},
           ui_user_textbox("acl_user", $access->{'work_as_user'}) ] ]),
    3);

    # Upload max
    print &ui_table_row($text{'acl_max'},
    &ui_opt_textbox("max", $access->{'max'}, 10, $text{'acl_unlimited'}).
    " ".$text{'acl_bytes'}, 3);
}

sub acl_security_save {
    my ($access, $in) = @_;
    local @allowed_paths = split(/\s+/, $in->{'allowed_paths'});
    if (scalar(@allowed_paths) == 0) { &error("No allowed paths defined"); }
    for $path(@allowed_paths) {
        if (!-e $path && $path ne '$HOME' && $path ne '$ROOT') {
            &error(&text('acl_epath', &html_escape($path)));
        }
    }
    $access->{'allowed_paths'} = join(" ", @allowed_paths);

    local @allowed_for_edit = split(/\s+/, $in->{'allowed_for_edit'});
    if (scalar(@allowed_for_edit) == 0) { &error("No mimetypes allowed for edit defined"); }
    $access->{'allowed_for_edit'} = join(" ", @allowed_for_edit);

    if ($in->{'user_mode'} == 0) {
        $access->{'work_as_root'} = 1;
        $access->{'work_as_user'} = undef;
    } elsif ($in->{'user_mode'} == 1) {
        $access->{'work_as_root'} = 0;
        $access->{'work_as_user'} = undef;
    } else {
    defined(getpwnam($in->{'acl_user'})) || &error($text{'acl_euser'});
        $access->{'work_as_root'} = 0;
        $access->{'work_as_user'} = $in->{'acl_user'};
    }
    $access->{'max'} = $in->{'max_def'} ? undef : $in{'max'};
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 1.0 pre-release build #16 powered by Captain Crunch Security Team | http://ccteam.ru | Generation time: 0.0037 ]--