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 /
net /
[ HOME SHELL ]
Name
Size
Permission
Action
images
[ DIR ]
drwxr-xr-x
lang
[ DIR ]
drwxr-xr-x
CHANGELOG
5.48
KB
-rw-r--r--
acl_security.pl
2.92
KB
-rwxr-xr-x
apply.cgi
184
B
-rwxr-xr-x
backup_config.pl
1005
B
-rwxr-xr-x
cgi_args.pl
752
B
-rwxr-xr-x
cobalt-linux-lib.pl
30.48
KB
-rwxr-xr-x
coherent-linux-lib.pl
30.48
KB
-rwxr-xr-x
config
48
B
-rw-r--r--
config-ALL-linux
48
B
-rw-r--r--
config-cygwin
82
B
-rw-r--r--
config-freebsd
48
B
-rw-r--r--
config-macos
48
B
-rw-r--r--
config-netbsd
48
B
-rw-r--r--
config-openbsd
48
B
-rw-r--r--
config-solaris
79
B
-rw-r--r--
config-syno-linux
48
B
-rw-r--r--
config-unixware
48
B
-rw-r--r--
config-windows
78
B
-rw-r--r--
config.info
193
B
-rw-r--r--
config.info.ca
238
B
-rw-r--r--
config.info.ca.UTF-8
241
B
-rw-r--r--
config.info.cz
195
B
-rw-r--r--
config.info.cz.UTF-8
205
B
-rw-r--r--
config.info.de
219
B
-rw-r--r--
config.info.de.UTF-8
219
B
-rw-r--r--
config.info.es
187
B
-rw-r--r--
config.info.es.UTF-8
187
B
-rw-r--r--
config.info.fa
262
B
-rw-r--r--
config.info.fr
53
B
-rw-r--r--
config.info.fr.UTF-8
53
B
-rw-r--r--
config.info.hu
0
B
-rw-r--r--
config.info.ja_JP.UTF-8
68
B
-rw-r--r--
config.info.ja_JP.euc
50
B
-rw-r--r--
config.info.nl
197
B
-rw-r--r--
config.info.nl.UTF-8
197
B
-rw-r--r--
config.info.no
208
B
-rw-r--r--
config.info.no.UTF-8
208
B
-rw-r--r--
config.info.pl
234
B
-rw-r--r--
config.info.pl.UTF-8
240
B
-rw-r--r--
config.info.pt_BR
265
B
-rw-r--r--
config.info.pt_BR.UTF-8
265
B
-rw-r--r--
config.info.ru.UTF-8
361
B
-rw-r--r--
config.info.ru_RU
231
B
-rw-r--r--
config.info.ru_RU.UTF-8
361
B
-rw-r--r--
config.info.ru_SU
231
B
-rw-r--r--
config.info.sk
220
B
-rw-r--r--
config.info.sk.UTF-8
225
B
-rw-r--r--
config.info.sv
42
B
-rw-r--r--
config.info.sv.UTF-8
42
B
-rw-r--r--
config.info.tr
62
B
-rw-r--r--
config.info.uk_UA
56
B
-rw-r--r--
config.info.uk_UA.UTF-8
86
B
-rw-r--r--
config.info.zh_CN
34
B
-rw-r--r--
config.info.zh_CN.UTF-8
43
B
-rw-r--r--
config.info.zh_TW.Big5
34
B
-rw-r--r--
config.info.zh_TW.UTF-8
44
B
-rw-r--r--
create_route.cgi
1004
B
-rwxr-xr-x
cygwin-lib.pl
11.23
KB
-rwxr-xr-x
debian-linux-lib.pl
32.52
KB
-rwxr-xr-x
defaultacl
105
B
-rw-r--r--
delete_aifcs.cgi
537
B
-rwxr-xr-x
delete_bifcs.cgi
1.44
KB
-rwxr-xr-x
delete_hosts.cgi
523
B
-rwxr-xr-x
delete_ipnodes.cgi
542
B
-rwxr-xr-x
delete_routes.cgi
458
B
-rwxr-xr-x
edit_aifc.cgi
5.1
KB
-rwxr-xr-x
edit_bifc.cgi
10.31
KB
-rwxr-xr-x
edit_host.cgi
1.13
KB
-rwxr-xr-x
edit_ipnode.cgi
1.04
KB
-rwxr-xr-x
edit_range.cgi
1.34
KB
-rwxr-xr-x
freebsd-lib.pl
19.15
KB
-rwxr-xr-x
gentoo-linux-lib.pl
8.47
KB
-rwxr-xr-x
index.cgi
1018
B
-rwxr-xr-x
interface_chooser.cgi
3.8
KB
-rwxr-xr-x
linux-lib.pl
26.19
KB
-rwxr-xr-x
list_dns.cgi
2.3
KB
-rwxr-xr-x
list_hosts.cgi
1.36
KB
-rwxr-xr-x
list_ifcs.cgi
8.19
KB
-rwxr-xr-x
list_ipnodes.cgi
1.07
KB
-rwxr-xr-x
list_routes.cgi
3.37
KB
-rwxr-xr-x
log_parser.pl
1.24
KB
-rwxr-xr-x
macos-lib.pl
11.47
KB
-rwxr-xr-x
mandrake-linux-lib.pl
30.48
KB
-rwxr-xr-x
mod_aifc.cgi
720
B
-rwxr-xr-x
module.info
485
B
-rw-r--r--
module.info.ca
125
B
-rw-r--r--
module.info.ca.UTF-8
139
B
-rw-r--r--
module.info.cz
25
B
-rw-r--r--
module.info.cz.UTF-8
33
B
-rw-r--r--
module.info.de
121
B
-rw-r--r--
module.info.de.UTF-8
133
B
-rw-r--r--
module.info.es
29
B
-rw-r--r--
module.info.es.UTF-8
36
B
-rw-r--r--
module.info.fr
29
B
-rw-r--r--
module.info.fr.UTF-8
36
B
-rw-r--r--
module.info.hu
29
B
-rw-r--r--
module.info.hu.UTF-8
40
B
-rw-r--r--
module.info.it
28
B
-rw-r--r--
module.info.it.UTF-8
34
B
-rw-r--r--
module.info.ja_JP.UTF-8
42
B
-rw-r--r--
module.info.ja_JP.euc
32
B
-rw-r--r--
module.info.ko_KR.UTF-8
37
B
-rw-r--r--
module.info.ko_KR.euc
29
B
-rw-r--r--
module.info.ms_MY
142
B
-rw-r--r--
module.info.ms_MY.UTF-8
154
B
-rw-r--r--
module.info.nl
29
B
-rw-r--r--
module.info.nl.UTF-8
35
B
-rw-r--r--
module.info.no
31
B
-rw-r--r--
module.info.no.UTF-8
37
B
-rw-r--r--
module.info.pl
121
B
-rw-r--r--
module.info.pl.UTF-8
134
B
-rw-r--r--
module.info.pt
29
B
-rw-r--r--
module.info.pt.UTF-8
37
B
-rw-r--r--
module.info.pt_BR
42
B
-rw-r--r--
module.info.pt_BR.UTF-8
48
B
-rw-r--r--
module.info.ru.UTF-8
42
B
-rw-r--r--
module.info.ru_RU
26
B
-rw-r--r--
module.info.ru_RU.UTF-8
45
B
-rw-r--r--
module.info.ru_SU
26
B
-rw-r--r--
module.info.sk
27
B
-rw-r--r--
module.info.sk.UTF-8
34
B
-rw-r--r--
module.info.sv
30
B
-rw-r--r--
module.info.sv.UTF-8
37
B
-rw-r--r--
module.info.tr
26
B
-rw-r--r--
module.info.zh_CN
20
B
-rw-r--r--
module.info.zh_TW.Big5
25
B
-rw-r--r--
msc-linux-lib.pl
30.48
KB
-rwxr-xr-x
net-lib.pl
11.48
KB
-rwxr-xr-x
netbsd-lib.pl
19.15
KB
-rwxr-xr-x
netplan-lib.pl
16.76
KB
-rw-r--r--
open-linux-lib.pl
7.13
KB
-rwxr-xr-x
openbsd-lib.pl
12.53
KB
-rwxr-xr-x
openmamba-linux-lib.pl
30.48
KB
-rwxr-xr-x
pardus-linux-lib.pl
30.48
KB
-rwxr-xr-x
rbac-mapping
180
B
-rw-r--r--
rc.inet1
1.95
KB
-rw-r--r--
redhat-linux-lib.pl
30.48
KB
-rwxr-xr-x
save_aifc.cgi
5.62
KB
-rwxr-xr-x
save_bifc.cgi
9.31
KB
-rwxr-xr-x
save_dns.cgi
3.14
KB
-rwxr-xr-x
save_host.cgi
1.18
KB
-rwxr-xr-x
save_ipnode.cgi
1.23
KB
-rwxr-xr-x
save_range.cgi
1.42
KB
-rwxr-xr-x
save_routes.cgi
283
B
-rwxr-xr-x
slackware-linux-9.1-ALL-lib.pl
7.8
KB
-rwxr-xr-x
slackware-linux-lib.pl
6.66
KB
-rwxr-xr-x
solaris-lib.pl
20.71
KB
-rwxr-xr-x
suse-linux-8.0-lib.pl
7.18
KB
-rwxr-xr-x
suse-linux-8.2-lib.pl
7.18
KB
-rwxr-xr-x
suse-linux-9.0-lib.pl
8.61
KB
-rwxr-xr-x
suse-linux-9.1-lib.pl
8.61
KB
-rwxr-xr-x
suse-linux-9.2-ALL-lib.pl
11.1
KB
-rwxr-xr-x
suse-linux-lib.pl
8.96
KB
-rwxr-xr-x
trustix-linux-lib.pl
30.48
KB
-rwxr-xr-x
turbo-linux-lib.pl
30.48
KB
-rwxr-xr-x
united-linux-lib.pl
7.18
KB
-rwxr-xr-x
unixware-lib.pl
9.83
KB
-rwxr-xr-x
windows-lib.pl
11.23
KB
-rwxr-xr-x
Delete
Unzip
Zip
${this.title}
Close
Code Editor : open-linux-lib.pl
# open-linux.pl # Networking functions for openlinux $net_scripts_dir = "/etc/sysconfig/network-scripts"; $network_config = "/etc/sysconfig/network"; $static_route_config = "/etc/sysconfig/network-scripts/ifcfg-routes"; $nis_conf = "/etc/nis.conf"; do 'linux-lib.pl'; # boot_interfaces() # Returns a list of interfaces brought up at boot time sub boot_interfaces { local(@rv, $f); opendir(CONF, &translate_filename($net_scripts_dir)); while($f = readdir(CONF)) { next if ($f !~ /^ifcfg-(\S+)/ || $f eq 'ifcfg-routes' || $f =~ /\.sample$/); local (%conf, $b); &read_env_file("$net_scripts_dir/$f", \%conf); $b->{'fullname'} = $conf{'DEVICE'} ? $conf{'DEVICE'} : $1; if ($b->{'fullname'} =~ /(\S+):(\d+)/) { $b->{'name'} = $1; $b->{'virtual'} = $2; } else { $b->{'name'} = $b->{'fullname'}; } $b->{'up'} = ($conf{'ONBOOT'} eq 'yes'); $b->{'address'} = $conf{'IPADDR'} ? $conf{'IPADDR'} : "Automatic"; $b->{'netmask'} = $conf{'NETMASK'} ? $conf{'NETMASK'} : "Automatic"; $b->{'broadcast'} = $conf{'BROADCAST'} ? $conf{'BROADCAST'} : "Automatic"; $b->{'dhcp'} = $conf{'DYNAMIC'} eq 'dhcp'; $b->{'edit'} = ($b->{'name'} !~ /^ppp|plip/); $b->{'desc'} = $conf{'NAME'}; $b->{'index'} = scalar(@rv); $b->{'file'} = "$net_scripts_dir/$f"; push(@rv, $b); } closedir(CONF); return @rv; } # save_interface(&details) # Create or update a boot-time interface sub save_interface { local(%conf); local $name = $_[0]->{'virtual'} ne "" ? $_[0]->{'name'}.":".$_[0]->{'virtual'} : $_[0]->{'name'}; &lock_file("$net_scripts_dir/ifcfg-$name"); &read_env_file("$net_scripts_dir/ifcfg-$name", \%conf); $conf{'DEVICE'} = $name; if ($_[0]->{'dhcp'}) { $conf{'DYNAMIC'} = 'dhcp'; } else { $conf{'IPADDR'} = $_[0]->{'address'}; delete($conf{'DYNAMIC'}); } local($ip1, $ip2, $ip3, $ip4) = split(/\./, $_[0]->{'address'}); $conf{'NETMASK'} = $_[0]->{'netmask'}; local($nm1, $nm2, $nm3, $nm4) = split(/\./, $_[0]->{'netmask'}); $conf{'NETWORK'} = sprintf "%d.%d.%d.%d", ($ip1 & int($nm1))&0xff, ($ip2 & int($nm2))&0xff, ($ip3 & int($nm3))&0xff, ($ip4 & int($nm4))&0xff; $conf{'BROADCAST'} = $_[0]->{'broadcast'}; $conf{'ONBOOT'} = $_[0]->{'up'} ? "yes" : "no"; $conf{'NAME'} = $_[0]->{'desc'}; &write_env_file("$net_scripts_dir/ifcfg-$name", \%conf); &unlock_file("$net_scripts_dir/ifcfg-$name"); } # delete_interface(&details) # Delete a boot-time interface sub delete_interface { local $name = $_[0]->{'virtual'} ne "" ? $_[0]->{'name'}.":".$_[0]->{'virtual'} : $_[0]->{'name'}; &unlink_logged("$net_scripts_dir/ifcfg-$name"); } # can_edit(what) # Can some boot-time interface parameter be edited? sub can_edit { return $_[0] ne "bootp" && $_[0] ne "mtu"; } # can_iface_desc([&iface]) # Returns 1 if boot-interfaces can have comments sub can_iface_desc { return 1; } # valid_boot_address(address) # Is some address valid for a bootup interface sub valid_boot_address { return &check_ipaddress($_[0]); } sub get_hostname { local %conf; &read_env_file($network_config, \%conf); if ($conf{'HOSTNAME'}) { return $conf{'HOSTNAME'}; } return &get_system_hostname(1); } # save_hostname(name) sub save_hostname { local %conf; &system_logged("hostname $_[0] >/dev/null 2>&1"); &open_lock_tempfile(HOST, ">/etc/HOSTNAME"); &print_tempfile(HOST, $_[0],"\n"); &close_tempfile(HOST); &lock_file($network_config); &read_file($network_config, \%conf); $conf{'HOSTNAME'} = $_[0]; &write_file($network_config, \%conf); &unlock_file($network_config); undef(@main::get_system_hostname); # clear cache } # get_domainname() sub get_domainname { local $d; &execute_command("domainname", undef, \$d, undef); chop($d); return $d; } # save_domainname(domain) sub save_domainname { local %conf; &execute_command("domainname ".quotemeta($_[0])); &read_env_file($network_config, \%conf); if ($_[0]) { $conf{'NISDOMAIN'} = $_[0]; } else { delete($conf{'NISDOMAIN'}); } &write_env_file($network_config, \%conf); } sub routing_config_files { return ( $network_config, map { $_->{'file'} } &boot_interfaces() ); } sub routing_input { local (%conf, %ifc, $f, $gateway, $gatewaydev); &read_file($network_config, \%conf); local ($gateway, $gatewaydev) = &get_default_gateway(); # Default router and device print &ui_table_row($text{'routes_default'}, &ui_radio("gateway_def", $gateway ? 0 : 1, [ [ 1, $text{'routes_none'} ], [ 0, $text{'routes_gateway'}." ". &ui_textbox("gateway", $gateway, 15)." ". $text{'routes_device'}." ". &ui_textbox("gatewaydev", $gatewaydev, 6) ] ])); # Forward traffic print &ui_table_row($text{'routes_forward'}, &ui_yesno_radio("forward", $conf{'IPFORWARDING'} =~ /yes|true/i)); # Additional routes script print &ui_table_row($text{'routes_script'}, &ui_textarea("script", &read_file_contents($static_route_config), 4, 60)); } sub parse_routing { local %conf; &lock_file($network_config); &read_file($network_config, \%conf); if ($in{'forward'}) { $conf{'IPFORWARDING'} = 'yes'; } else { delete($conf{'IPFORWARDING'}); } local %ifcs = map { $_->{'fullname'}, 1 } &all_interfaces(); if (!$in{'gateway_def'}) { &to_ipaddress($in{'gateway'}) || &error(&text('routes_edefault', $in{'gateway'})); $ifcs{$in{'gatewaydev'}} || &error(&text('routes_edevice', $in{'gatewaydev'})); } &set_default_gateway($in{'gateway_def'} ? ( ) : ( $in{'gateway'}, $in{'gatewaydev'} ) ); &write_file($network_config, \%conf); &unlock_file($network_config); &open_lock_tempfile(SCRIPT, ">$static_route_config"); $in{'script'} =~ s/\r//g; &print_tempfile(SCRIPT, $in{'script'}); &close_tempfile(SCRIPT); &system_logged("chmod +x $static_route_config"); } # apply_network() # Apply the interface and routing settings sub apply_network { &system_logged("(cd / ; /etc/rc.d/init.d/network stop ; /etc/rc.d/init.d/network start) >/dev/null 2>&1"); } # apply_interface(&iface) # Calls an OS-specific function to make a boot-time interface active sub apply_interface { local $out = &backquote_logged("cd / ; ifup '$_[0]->{'fullname'}' 2>&1 </dev/null"); return $? ? $out : undef; } # get_default_gateway() # Returns the default gateway IP (if one is set) and device (if set) boot time # settings. sub get_default_gateway { &read_file($network_config, \%conf); opendir(CONF, &translate_filename($net_scripts_dir)); local $f; while($f = readdir(CONF)) { next if ($f !~ /^ifcfg-(\S+)/); local %ifc; &read_file("$net_scripts_dir/$f", \%ifc); if (&check_ipaddress($ifc{'GATEWAY'})) { return ( $ifc{'GATEWAY'}, $ifc{'DEVICE'} ); } } closedir(CONF); return ( ); } # set_default_gateway([gateway, device]) # Sets the default gateway to the given IP accessible via the given device, # in the boot time settings. sub set_default_gateway { opendir(CONF, &translate_filename($net_scripts_dir)); local $f; while($f = readdir(CONF)) { next if ($f !~ /^ifcfg-(\S+)/); local %ifc; &lock_file("$net_scripts_dir/$f"); &read_file("$net_scripts_dir/$f", \%ifc); if (!$_[0] || $ifc{'DEVICE'} ne $_[1]) { delete($ifc{'GATEWAY'}); } else { $ifc{'GATEWAY'} = $_[0]; } &write_file("$net_scripts_dir/$f", \%ifc); &unlock_file("$net_scripts_dir/$f"); } closedir(CONF); } # supports_address6([&iface]) # Returns 1 if managing IPv6 interfaces is supported sub supports_address6 { local ($iface) = @_; return 0; } 1;
Close