!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/fail2ban/   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:     save_action.cgi (1.81 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
#!/usr/bin/perl
# Create, update or delete a action

use strict;
use warnings;
require './fail2ban-lib.pl';
our (%in, %text, %config);
&ReadParse();
&error_setup($text{'action_err'});

my ($action, $def);
if ($in{'new'}) {
    # Create new action object
    $def = { 'name' => 'Definition',
         'members' => [ ] };
    $action = [ $def ];
    }
else {
    # Find existing action
    ($action) = grep { $_->[0]->{'file'} eq $in{'file'} } &list_actions();
    $action || &error($text{'action_egone'});
    ($def) = grep { $_->{'name'} eq 'Definition' } @$action;
    $def || &error($text{'action_edefgone'});
    }

my $file = $in{'file'};
if ($in{'delete'}) {
    # Just delete the action
    my @users = &find_jail_by_action($action);
    @users && &error(&text('action_einuse',
            join(" ", map { $_->{'name'} } @users)));
    &lock_all_config_files();
    &delete_section($file, $def);
    &unlock_all_config_files();
    }
else {
    # Validate inputs
    my $file;
    if ($in{'new'}) {
        $in{'name'} =~ /^[a-z0-9\_\-]+$/i ||
            &error($text{'action_ename'});
        $file = "$config{'config_dir'}/action.d/$in{'name'}.conf";
        -r $file && &error($text{'action_eclash'});
        }

    # Create new section if needed
    &lock_all_config_files();
    if ($in{'new'}) {
        &create_section($file, $def);
        }

    # Save directives within the section
    $in{'start'} =~ s/\r//g;
    &save_directive("actionstart", $in{'start'}, $def);
    $in{'stop'} =~ s/\r//g;
    &save_directive("actionstop", $in{'stop'}, $def);
    $in{'check'} =~ s/\r//g;
    &save_directive("actioncheck", $in{'check'}, $def);
    $in{'ban'} =~ s/\r//g;
    &save_directive("actionban", $in{'ban'}, $def);
    $in{'unban'} =~ s/\r//g;
    &save_directive("actionunban", $in{'unban'}, $def);

    &unlock_all_config_files();
    }

# Log and redirect
&webmin_log($in{'delete'} ? 'delete' : $in{'new'} ? 'create' : 'update',
        'action', &filename_to_name($file));
&redirect("list_actions.cgi");

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