Linux mail.vriendennsm.nl 6.1.0-51-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.177-1 (2026-07-16) x86_64
Apache/2.4.68 (Debian)
Server IP : 217.154.75.17 & Your IP : 216.73.217.15
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
share /
webmin /
kea-dhcp /
Delete
Unzip
Name
Size
Permission
Date
Action
help
[ DIR ]
drwxr-xr-x
2026-07-25 20:55
images
[ DIR ]
drwxr-xr-x
2026-07-25 20:55
lang
[ DIR ]
drwxr-xr-x
2026-07-25 20:55
acl_security.pl
1.12
KB
-rw-r--r--
2026-07-17 21:17
backup_config.pl
951
B
-rw-r--r--
2026-07-17 21:17
config
1.14
KB
-rw-r--r--
2026-07-17 21:17
config-freebsd
884
B
-rw-r--r--
2026-07-17 21:17
config-redhat-linux
1.05
KB
-rw-r--r--
2026-07-17 21:17
config.info
1.11
KB
-rw-r--r--
2026-07-17 21:17
defaultacl
98
B
-rw-r--r--
2026-07-17 21:17
delete_objects.cgi
1.94
KB
-rwxr-xr-x
2026-07-17 21:22
edit_ddns.cgi
4.17
KB
-rwxr-xr-x
2026-07-17 21:22
edit_options.cgi
10.51
KB
-rwxr-xr-x
2026-07-17 21:22
edit_shared.cgi
5.11
KB
-rwxr-xr-x
2026-07-17 21:22
edit_subnet.cgi
9.84
KB
-rwxr-xr-x
2026-07-17 21:22
edit_text.cgi
1.42
KB
-rwxr-xr-x
2026-07-17 21:22
index.cgi
21.32
KB
-rwxr-xr-x
2026-07-17 21:22
install_check.pl
459
B
-rw-r--r--
2026-07-17 21:17
kea-dhcp-lib.pl
73.94
KB
-rw-r--r--
2026-07-17 21:17
log_parser.pl
1.73
KB
-rw-r--r--
2026-07-17 21:17
module.info
289
B
-rw-r--r--
2026-07-17 21:17
restart.cgi
470
B
-rwxr-xr-x
2026-07-17 21:22
runtime.cgi
5.25
KB
-rwxr-xr-x
2026-07-17 21:22
save_ddns.cgi
2.75
KB
-rwxr-xr-x
2026-07-17 21:22
save_options.cgi
5.6
KB
-rwxr-xr-x
2026-07-17 21:22
save_shared.cgi
2.54
KB
-rwxr-xr-x
2026-07-17 21:22
save_subnet.cgi
3.51
KB
-rwxr-xr-x
2026-07-17 21:22
save_text.cgi
1.45
KB
-rwxr-xr-x
2026-07-17 21:22
start.cgi
472
B
-rwxr-xr-x
2026-07-17 21:22
stop.cgi
468
B
-rwxr-xr-x
2026-07-17 21:22
Save
Rename
#!/usr/bin/perl # Delete selected Kea DHCP subnets and shared networks. use strict; use warnings; require './kea-dhcp-lib.pl'; ## no critic &ReadParse(); our (%in, %text); &error_setup($text{'eacl_aviol'}); my $ver = $in{'version'} == 6 ? 6 : 4; my %access = &get_module_acl(); &error("$text{'eacl_np'} $text{'eacl_pedit'.$ver}") if (!$access{'edit'.$ver}); my ($c, $root, $data, $err) = &kea_read_dhcp_config($ver); &error($err) if ($err); &error_setup($text{'delete_failsave'}); my @shared = split(/\0/, defined($in{'d_shared'}) ? $in{'d_shared'} : ""); my @subnets = split(/\0/, defined($in{'d_subnet'}) ? $in{'d_subnet'} : ""); @shared || @subnets || &error($text{'delete_enone'}); # Group subnet deletions by parent so indexes can be removed descending within # each array without disturbing later deletions. my %subnets_by_parent; foreach my $v (@subnets) { $v =~ /^(\d*):(\d+)$/ || &error($text{'subnet_enone'}); my ($sidx, $idx) = ($1, $2); &error($text{'subnet_enone'}) if (!&kea_valid_subnet_parent($root, $sidx)); my $list = &kea_subnet_list($root, $ver, $sidx); &error($text{'subnet_enone'}) if (!$list->[$idx]); push(@{$subnets_by_parent{$sidx}}, $idx); } foreach my $sidx (keys %subnets_by_parent) { my $list = &kea_subnet_list($root, $ver, $sidx); foreach my $idx (sort { $b <=> $a } @{$subnets_by_parent{$sidx}}) { splice(@$list, $idx, 1); } } # Shared networks are top-level siblings, so delete them after nested subnets. my $shareds = &kea_shared_networks($root); foreach my $idx (sort { $b <=> $a } @shared) { $idx =~ /^\d+$/ || &error($text{'shared_enone'}); &error($text{'shared_enone'}) if (!$shareds->[$idx]); my $subs = &kea_subnet_list($root, $ver, $idx); &error($text{'shared_enonempty'}) if (@$subs); splice(@$shareds, $idx, 1); } my $saveerr = &kea_save_component_config($c, $data); &error($saveerr) if ($saveerr); &webmin_log("delete", "objects", scalar(@shared) + scalar(@subnets), \%in); &redirect("index.cgi?mode=dhcp$ver");