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 /
squid /
[ HOME SHELL ]
Name
Size
Permission
Action
help
[ DIR ]
drwxr-xr-x
images
[ DIR ]
drwxr-xr-x
lang
[ DIR ]
drwxr-xr-x
CHANGELOG
2.59
KB
-rw-r--r--
acl.cgi
10.86
KB
-rwxr-xr-x
acl_save.cgi
8.08
KB
-rwxr-xr-x
acl_security.pl
1.72
KB
-rwxr-xr-x
always.cgi
1.71
KB
-rwxr-xr-x
always_save.cgi
1.12
KB
-rwxr-xr-x
backup_config.pl
679
B
-rwxr-xr-x
cachemgr.cgi
1001
B
-rwxr-xr-x
calamaris.cgi
3.01
KB
-rwxr-xr-x
cgi_args.pl
2.18
KB
-rwxr-xr-x
chown.cgi
1.36
KB
-rwxr-xr-x
clear.cgi
2.82
KB
-rwxr-xr-x
config-Amazon-Linux-2-ALL
398
B
-rw-r--r--
config-CentOS-Linux-7.0-ALL
398
B
-rw-r--r--
config-Redhat-Enterprise-Linux...
398
B
-rw-r--r--
config-Scientific-Linux-7.0-AL...
398
B
-rw-r--r--
config-Ubuntu-Linux-16.0-ALL
441
B
-rw-r--r--
config-aix
365
B
-rw-r--r--
config-cobalt-linux
364
B
-rw-r--r--
config-coherent-linux
422
B
-rw-r--r--
config-corel-linux
338
B
-rw-r--r--
config-debian-linux
338
B
-rw-r--r--
config-debian-linux-3.0-4.9
344
B
-rw-r--r--
config-debian-linux-5.0-5.9
454
B
-rw-r--r--
config-debian-linux-6.0-6.9
442
B
-rw-r--r--
config-debian-linux-7.0-ALL
449
B
-rw-r--r--
config-freebsd
395
B
-rw-r--r--
config-freebsd-8-ALL
484
B
-rw-r--r--
config-generic-linux
405
B
-rw-r--r--
config-gentoo-linux
412
B
-rw-r--r--
config-hpux
405
B
-rw-r--r--
config-irix
405
B
-rw-r--r--
config-lfs-linux
374
B
-rw-r--r--
config-macos
405
B
-rw-r--r--
config-mandrake-linux
409
B
-rw-r--r--
config-mandrake-linux-8.0-ALL
406
B
-rw-r--r--
config-msc-linux
422
B
-rw-r--r--
config-netbsd
360
B
-rw-r--r--
config-open-linux
429
B
-rw-r--r--
config-open-linux-3.1e
431
B
-rw-r--r--
config-openbsd
395
B
-rw-r--r--
config-openmamba-linux
347
B
-rw-r--r--
config-openserver
405
B
-rw-r--r--
config-osf1
405
B
-rw-r--r--
config-pardus-linux
416
B
-rw-r--r--
config-redhat-linux
341
B
-rw-r--r--
config-redhat-linux-24.0-ALL
422
B
-rw-r--r--
config-redhat-linux-6.0
427
B
-rw-r--r--
config-redhat-linux-6.1-23.0
420
B
-rw-r--r--
config-slackware-linux
405
B
-rw-r--r--
config-sol-linux
401
B
-rw-r--r--
config-solaris
405
B
-rw-r--r--
config-solaris-11-ALL
461
B
-rw-r--r--
config-suse-linux
332
B
-rw-r--r--
config-suse-linux-8.0
359
B
-rw-r--r--
config-suse-linux-8.2-ALL
435
B
-rw-r--r--
config-trustix-linux
412
B
-rw-r--r--
config-turbo-linux
341
B
-rw-r--r--
config-united-linux
435
B
-rw-r--r--
config-unixware
405
B
-rw-r--r--
config.info
1.16
KB
-rw-r--r--
config.info.ca
1.39
KB
-rw-r--r--
config.info.ca.UTF-8
1.42
KB
-rw-r--r--
config.info.cz
895
B
-rw-r--r--
config.info.cz.UTF-8
968
B
-rw-r--r--
config.info.de
1.46
KB
-rw-r--r--
config.info.de.UTF-8
1.46
KB
-rw-r--r--
config.info.es
1.43
KB
-rw-r--r--
config.info.es.UTF-8
1.43
KB
-rw-r--r--
config.info.fa
1.92
KB
-rw-r--r--
config.info.fr
573
B
-rw-r--r--
config.info.fr.UTF-8
584
B
-rw-r--r--
config.info.it
612
B
-rw-r--r--
config.info.it.UTF-8
612
B
-rw-r--r--
config.info.ja_JP.UTF-8
1.34
KB
-rw-r--r--
config.info.ja_JP.euc
1.03
KB
-rw-r--r--
config.info.nl
1.35
KB
-rw-r--r--
config.info.nl.UTF-8
1.35
KB
-rw-r--r--
config.info.no
1.25
KB
-rw-r--r--
config.info.no.UTF-8
1.25
KB
-rw-r--r--
config.info.pl
768
B
-rw-r--r--
config.info.pl.UTF-8
791
B
-rw-r--r--
config.info.pt_BR
1.4
KB
-rw-r--r--
config.info.pt_BR.UTF-8
1.44
KB
-rw-r--r--
config.info.ru.UTF-8
1.44
KB
-rw-r--r--
config.info.ru_RU
941
B
-rw-r--r--
config.info.ru_RU.UTF-8
1.44
KB
-rw-r--r--
config.info.ru_SU
941
B
-rw-r--r--
config.info.sv
592
B
-rw-r--r--
config.info.sv.UTF-8
613
B
-rw-r--r--
config.info.tr
351
B
-rw-r--r--
config.info.uk_UA
969
B
-rw-r--r--
config.info.uk_UA.UTF-8
1.45
KB
-rw-r--r--
config.info.zh_CN
373
B
-rw-r--r--
config.info.zh_CN.UTF-8
450
B
-rw-r--r--
config.info.zh_TW.Big5
296
B
-rw-r--r--
config.info.zh_TW.UTF-8
355
B
-rw-r--r--
defaultacl
228
B
-rw-r--r--
delete_http_accesses.cgi
795
B
-rwxr-xr-x
delete_http_reply_accesses.cgi
860
B
-rwxr-xr-x
delete_https.cgi
785
B
-rwxr-xr-x
delete_icp_accesses.cgi
783
B
-rwxr-xr-x
delete_icps.cgi
1.09
KB
-rwxr-xr-x
delete_pools.cgi
1.37
KB
-rwxr-xr-x
delete_refreshes.cgi
787
B
-rwxr-xr-x
edit_acl.cgi
6.94
KB
-rwxr-xr-x
edit_admin.cgi
2.39
KB
-rwxr-xr-x
edit_authparam.cgi
4.57
KB
-rwxr-xr-x
edit_cache.cgi
7.34
KB
-rwxr-xr-x
edit_cache_host.cgi
4.71
KB
-rwxr-xr-x
edit_cachemgr.cgi
1.76
KB
-rwxr-xr-x
edit_delay.cgi
2.8
KB
-rwxr-xr-x
edit_ext.cgi
1.48
KB
-rwxr-xr-x
edit_headeracc.cgi
1.9
KB
-rwxr-xr-x
edit_icp.cgi
5.23
KB
-rwxr-xr-x
edit_iptables.cgi
1.86
KB
-rwxr-xr-x
edit_logs.cgi
4.69
KB
-rwxr-xr-x
edit_manual.cgi
910
B
-rwxr-xr-x
edit_mem.cgi
2.43
KB
-rwxr-xr-x
edit_misc.cgi
3.87
KB
-rwxr-xr-x
edit_nauth.cgi
1.21
KB
-rwxr-xr-x
edit_nuser.cgi
1.41
KB
-rwxr-xr-x
edit_pool.cgi
4.13
KB
-rwxr-xr-x
edit_ports.cgi
3.22
KB
-rwxr-xr-x
edit_progs.cgi
3
KB
-rwxr-xr-x
edit_refresh.cgi
1.86
KB
-rwxr-xr-x
http_access.cgi
1.95
KB
-rwxr-xr-x
http_access_save.cgi
1.32
KB
-rwxr-xr-x
http_reply_access.cgi
1.76
KB
-rwxr-xr-x
http_reply_access_save.cgi
1.2
KB
-rwxr-xr-x
icp_access.cgi
1.93
KB
-rwxr-xr-x
icp_access_save.cgi
1.29
KB
-rwxr-xr-x
index.cgi
5.49
KB
-rwxr-xr-x
init_cache.cgi
2.98
KB
-rwxr-xr-x
install_check.pl
562
B
-rwxr-xr-x
list_headeracc.cgi
1.66
KB
-rwxr-xr-x
list_refresh.cgi
1.58
KB
-rwxr-xr-x
log_parser.pl
1.21
KB
-rwxr-xr-x
module.info
496
B
-rw-r--r--
module.info.ca
111
B
-rw-r--r--
module.info.ca.UTF-8
124
B
-rw-r--r--
module.info.cz
27
B
-rw-r--r--
module.info.cz.UTF-8
33
B
-rw-r--r--
module.info.de
110
B
-rw-r--r--
module.info.de.UTF-8
122
B
-rw-r--r--
module.info.es
31
B
-rw-r--r--
module.info.es.UTF-8
37
B
-rw-r--r--
module.info.fr
28
B
-rw-r--r--
module.info.fr.UTF-8
34
B
-rw-r--r--
module.info.ja_JP.UTF-8
46
B
-rw-r--r--
module.info.ja_JP.euc
37
B
-rw-r--r--
module.info.ko_KR.UTF-8
40
B
-rw-r--r--
module.info.ko_KR.euc
33
B
-rw-r--r--
module.info.ms_MY
122
B
-rw-r--r--
module.info.ms_MY.UTF-8
134
B
-rw-r--r--
module.info.nl
27
B
-rw-r--r--
module.info.nl.UTF-8
33
B
-rw-r--r--
module.info.pl
27
B
-rw-r--r--
module.info.pl.UTF-8
33
B
-rw-r--r--
module.info.pt
29
B
-rw-r--r--
module.info.pt.UTF-8
35
B
-rw-r--r--
module.info.pt_BR
32
B
-rw-r--r--
module.info.pt_BR.UTF-8
38
B
-rw-r--r--
module.info.ru.UTF-8
46
B
-rw-r--r--
module.info.ru_RU
31
B
-rw-r--r--
module.info.ru_RU.UTF-8
49
B
-rw-r--r--
module.info.ru_SU
31
B
-rw-r--r--
module.info.sv
26
B
-rw-r--r--
module.info.sv.UTF-8
32
B
-rw-r--r--
module.info.tr
29
B
-rw-r--r--
module.info.zh_CN
28
B
-rw-r--r--
module.info.zh_TW.Big5
33
B
-rw-r--r--
move_always.cgi
709
B
-rwxr-xr-x
move_headeracc.cgi
724
B
-rwxr-xr-x
move_http.cgi
695
B
-rwxr-xr-x
move_http_reply.cgi
744
B
-rwxr-xr-x
move_icp.cgi
683
B
-rwxr-xr-x
move_never.cgi
698
B
-rwxr-xr-x
move_pool.cgi
778
B
-rwxr-xr-x
move_refresh.cgi
769
B
-rwxr-xr-x
nat
34.84
KB
-rw-r--r--
never.cgi
1.7
KB
-rwxr-xr-x
never_save.cgi
1.09
KB
-rwxr-xr-x
parser-lib.pl
6.34
KB
-rwxr-xr-x
pool_access.cgi
1.77
KB
-rwxr-xr-x
pool_access_save.cgi
1.12
KB
-rwxr-xr-x
purge.cgi
1.06
KB
-rwxr-xr-x
restart.cgi
328
B
-rwxr-xr-x
save_admin.cgi
2.18
KB
-rwxr-xr-x
save_authparam.cgi
5.24
KB
-rwxr-xr-x
save_cache.cgi
5.98
KB
-rwxr-xr-x
save_cache_host.cgi
3.75
KB
-rwxr-xr-x
save_cachemgr.cgi
1.09
KB
-rwxr-xr-x
save_delay.cgi
603
B
-rwxr-xr-x
save_ext.cgi
2.27
KB
-rwxr-xr-x
save_headeracc.cgi
1.21
KB
-rwxr-xr-x
save_icp.cgi
1.13
KB
-rwxr-xr-x
save_iptables.cgi
2.85
KB
-rwxr-xr-x
save_logs.cgi
3.09
KB
-rwxr-xr-x
save_manual.cgi
493
B
-rwxr-xr-x
save_mem.cgi
1.67
KB
-rwxr-xr-x
save_misc.cgi
2.6
KB
-rwxr-xr-x
save_nuser.cgi
1.84
KB
-rwxr-xr-x
save_pool.cgi
3.13
KB
-rwxr-xr-x
save_ports.cgi
2.54
KB
-rwxr-xr-x
save_progs.cgi
2.5
KB
-rwxr-xr-x
save_refresh.cgi
1.4
KB
-rwxr-xr-x
squid-auth.pl
389
B
-rwxr-xr-x
squid-lib.pl
16.1
KB
-rwxr-xr-x
start.cgi
1.11
KB
-rwxr-xr-x
stop.cgi
828
B
-rwxr-xr-x
syslog_logs.pl
657
B
-rwxr-xr-x
useradmin_update.pl
2.75
KB
-rwxr-xr-x
Delete
Unzip
Zip
${this.title}
Close
Code Editor : parser-lib.pl
# parser-lib.pl # Functions for reading and writing the squid config file use strict; use warnings; our (@get_config_cache, %config); # get_config() # Parses squid.conf into an array of data structures sub get_config { if (!@get_config_cache) { my $fh = "CONF"; &open_readfile($fh, $config{'squid_conf'}) || return []; my $lnum = 0; while(my $line = <$fh>) { $line =~ s/\r|\n//g; # strip newlines and comments if ($line =~ /^\s*(\#?\s*|\#\s+TAG:\s+)(\S+)\s*(.*)$/) { my %dir; $dir{'name'} = $2; $dir{'value'} = $3; $dir{'enabled'} = !$1; $dir{'comment'} = $1; my $str = $3; while($str =~ /^\s*("[^"]*")(.*)$/ || $str =~ /^\s*(\S+)(.*)$/) { my $v = $1; $str = $2; if ($v !~ /^"/ && $v =~ /^(.*)#/ && !$dir{'comment'}) { # A comment .. end of values $v = $1; $dir{'postcomment'} = $str; $str = undef; last if ($v eq ''); } $dir{'values'} ||= [ ]; push(@{$dir{'values'}}, $v); } $dir{'line'} = $lnum; $dir{'index'} = scalar(@get_config_cache); if ($dir{'comment'} =~ /TAG/) { $dir{'tag'} = 1; } push(@get_config_cache, \%dir); } $lnum++; } close($fh); } return \@get_config_cache; } # find_config(name, &config, [disabled-mode]) # Returns the structure(s) with some name # disabled mode 0 = only enabled, 1 = both, 2 = only disabled, # 3 = disabled and tags sub find_config { my ($name, $conf, $mode) = @_; $mode ||= 0; my @rv; foreach my $c (@$conf) { if ($c->{'name'} eq $name) { push(@rv, $c); } } if ($mode == 0) { @rv = grep { $_->{'enabled'} && !$_->{'tag'} } @rv; } elsif ($mode == 1) { @rv = grep { !$_->{'tag'} } @rv; } elsif ($mode == 2) { @rv = grep { !$_->{'enabled'} && !$_->{'tag'} } @rv; } elsif ($mode == 3) { @rv = grep { !$_->{'enabled'} } @rv; } return @rv ? wantarray ? @rv : $rv[0] : wantarray ? () : undef; } # find_value(name, &config, [disabled-mode]) # Returns the value of some directive sub find_value { my ($name, $conf, $mode) = @_; my $rv = &find_config($name, $conf, $mode); return $rv ? $rv->{'value'} : undef; } # find_values(name, &config, [disabled-mode]) # Returns the value of some directive sub find_values { my ($name, $conf, $mode) = @_; my $rv = &find_config($name, $conf, $mode); return $rv ? $rv->{'values'} : undef; } # save_value(&config, name, value*) sub save_value { my ($conf, $name, @values) = @_; my @v = map { { 'name' => $name, 'values' => [ $_ ] } } @values; &save_directive($conf, $name, \@v); } # save_directive(&config, name, &values, [after], [before]) # Given a structure containing a directive name, type, values and members # add, update or remove that directive in config structure and data files. sub save_directive { my ($conf, $name, $values, $after, $before) = @_; my @oldv = &find_config($name, $conf); my @newv = map { my %n = %$_; \%n } @$values; my $lref = &read_file_lines($config{'squid_conf'}); my $change = undef; for(my $i=0; $i<@oldv || $i<@newv; $i++) { if ($i >= @oldv) { # a new directive is being added.. my $nl = &directive_line($newv[$i]); my @afterdirs = ref($after) ? ( $after ) : $after ? &find_config($after, $conf) : ( ); my $afterdir = @afterdirs ? $afterdirs[$#afterdirs] : undef; my @beforedirs = ref($before) ? ( $before ) : $before ? &find_config($before, $conf) : ( ); my $beforedir = @beforedirs ? $beforedirs[0] : undef; my @comment = &find_config($_[1], $_[0], 3); my $comment = @comment ? $comment[$#comment] : undef; if ($beforedir) { # put it before the specified type of directive my $blnum = $beforedir->{'line'}; &renumber($conf, $beforedir->{'line'}-1, 1); $newv[$i]->{'line'} = $blnum; splice(@$lref, $newv[$i]->{'line'}, 0, $nl); splice(@$conf, &indexof($beforedir, @$conf), 0, $newv[$i]); } elsif ($change && (!$afterdir || $afterdir->{'line'} < $change->{'line'})) { # put it after any directives of the same type $newv[$i]->{'line'} = $change->{'line'}+1; splice(@$lref, $newv[$i]->{'line'}, 0, $nl); &renumber($conf, $change->{'line'}, 1); splice(@$conf, &indexof($change, @$conf), 0, $newv[$i]); $change = $newv[$i]; } elsif ($comment) { # put it after commented line $newv[$i]->{'line'} = $comment->{'line'}+1; splice(@$lref, $newv[$i]->{'line'}, 0, $nl); &renumber($conf, $comment->{'line'}, 1); splice(@$conf, &indexof($comment, @$conf), 0, $newv[$i]); } else { # put it at the end of the file $newv[$i]->{'line'} = scalar(@$lref); push(@$lref, $nl); push(@$conf, $newv[$i]); } } elsif ($i >= @newv) { # a directive was deleted splice(@$lref, $oldv[$i]->{'line'}, 1); &renumber($conf, $oldv[$i]->{'line'}, -1); splice(@$conf, &indexof($oldv[$i], @$conf), 1); } else { # updating some directive $newv[$i]->{'postcomment'} = $oldv[$i]->{'postcomment'}; my $nl = &directive_line($newv[$i]); my @after = $change && $after ? ( $change ) : # After last one updated ref($after) ? ( $after ) : # After specific $after ? &find_config($after, $conf) : ( ); my $after = @after ? $after[$#after] : undef; if ($after && $oldv[$i]->{'line'} < $after->{'line'}) { # Need to move it after some directive splice(@$lref, $oldv[$i]->{'line'}, 1); splice(@$conf, &indexof($oldv[$i], @$conf), 1); &renumber($conf, $oldv[$i]->{'line'}, -1); splice(@$lref, $after->{'line'}+1, 0, $nl); $newv[$i]->{'line'} = $after->{'line'}+1; splice(@$conf, &indexof($after, @$conf)+1, 0, $newv[$i]); &renumber($conf, $newv[$i]->{'line'}, 1); $change = $newv[$i]; } else { # Can just update at the same line splice(@$lref, $oldv[$i]->{'line'}, 1, $nl); $newv[$i]->{'line'} = $oldv[$i]->{'line'}; $conf->[&indexof($oldv[$i], @$conf)] = $newv[$i]; $change = $newv[$i]; } } } } # directive_line(&details) # Returns the line of text for some directive sub directive_line { my ($d) = @_; my @v = @{$d->{'values'}}; return $d->{'name'}.(@v ? " ".join(' ',@v) : ""). ($d->{'postcomment'} ? " #".$d->{'postcomment'} : ""); } # renumber(&directives, line, count, [end]) # Runs through the given array of directives and increases the line numbers # of all those greater than some line by the given count sub renumber { my ($conf, $line, $count, $end) = @_; foreach my $d (@$conf) { if ($d->{'line'} > $line && (!$end || $d->{'line'} < $end)) { $d->{'line'} += $count; } } } 1;
Close