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 /
lpadmin /
[ HOME SHELL ]
Name
Size
Permission
Action
images
[ DIR ]
drwxr-xr-x
lang
[ DIR ]
drwxr-xr-x
CHANGELOG
1.16
KB
-rw-r--r--
acl_security.pl
4.4
KB
-rwxr-xr-x
aix-lib.pl
9.44
KB
-rwxr-xr-x
ascii.txt
4.19
KB
-rw-r--r--
base_coas_driver
560
B
-rwxr-xr-x
bw.fig
2.75
KB
-rw-r--r--
bw.ps
6.46
KB
-rw-r--r--
caldera-driver.pl
12.28
KB
-rwxr-xr-x
cancel_all.cgi
535
B
-rwxr-xr-x
catalog.devices
12.34
KB
-rw-r--r--
cgi_args.pl
284
B
-rwxr-xr-x
cluster.cgi
2.06
KB
-rwxr-xr-x
cluster_add.cgi
2.13
KB
-rwxr-xr-x
cluster_delete.cgi
529
B
-rwxr-xr-x
colour.fig
2.91
KB
-rw-r--r--
colour.ps
6.63
KB
-rw-r--r--
config-Amazon-Linux-2-ALL
323
B
-rw-r--r--
config-CentOS-Linux-7.0-ALL
323
B
-rw-r--r--
config-Redhat-Enterprise-Linux...
323
B
-rw-r--r--
config-Scientific-Linux-7.0-AL...
323
B
-rw-r--r--
config-aix
281
B
-rw-r--r--
config-coherent-linux
323
B
-rw-r--r--
config-corel-linux
228
B
-rw-r--r--
config-debian-linux
228
B
-rw-r--r--
config-debian-linux-3.1-3.9
327
B
-rw-r--r--
config-debian-linux-4.0-ALL
333
B
-rw-r--r--
config-freebsd
230
B
-rw-r--r--
config-generic-linux
228
B
-rw-r--r--
config-gentoo-linux
248
B
-rw-r--r--
config-hpux
323
B
-rw-r--r--
config-irix
213
B
-rw-r--r--
config-macos
230
B
-rw-r--r--
config-mandrake-linux
245
B
-rw-r--r--
config-mandrake-linux-8.0-ALL
276
B
-rw-r--r--
config-msc-linux
228
B
-rw-r--r--
config-netbsd
230
B
-rw-r--r--
config-open-linux
309
B
-rw-r--r--
config-open-linux-3.1e
239
B
-rw-r--r--
config-openbsd
230
B
-rw-r--r--
config-openmamba-linux
229
B
-rw-r--r--
config-pardus-linux
228
B
-rw-r--r--
config-redhat-linux
228
B
-rw-r--r--
config-redhat-linux-24.0-ALL
339
B
-rw-r--r--
config-redhat-linux-7.0
283
B
-rw-r--r--
config-redhat-linux-7.1
286
B
-rw-r--r--
config-redhat-linux-7.2-8.1
394
B
-rw-r--r--
config-redhat-linux-9.0-23.0
337
B
-rw-r--r--
config-slackware-linux
228
B
-rw-r--r--
config-slackware-linux-8.1-ALL
246
B
-rw-r--r--
config-solaris
304
B
-rw-r--r--
config-solaris-10-ALL
330
B
-rw-r--r--
config-solaris-9
296
B
-rw-r--r--
config-suse-linux
226
B
-rw-r--r--
config-suse-linux-8.2-ALL
322
B
-rw-r--r--
config-trustix-linux
313
B
-rw-r--r--
config-turbo-linux
228
B
-rw-r--r--
config-united-linux
322
B
-rw-r--r--
config-unixware
302
B
-rw-r--r--
config.info
1.31
KB
-rw-r--r--
config.info.ca
1.51
KB
-rw-r--r--
config.info.ca.UTF-8
1.53
KB
-rw-r--r--
config.info.cz
1.18
KB
-rw-r--r--
config.info.cz.UTF-8
1.25
KB
-rw-r--r--
config.info.de
1.45
KB
-rw-r--r--
config.info.de.UTF-8
1.45
KB
-rw-r--r--
config.info.es
1.16
KB
-rw-r--r--
config.info.es.UTF-8
1.17
KB
-rw-r--r--
config.info.fr
557
B
-rw-r--r--
config.info.fr.UTF-8
554
B
-rw-r--r--
config.info.hu
685
B
-rw-r--r--
config.info.hu.UTF-8
697
B
-rw-r--r--
config.info.ja_JP.UTF-8
823
B
-rw-r--r--
config.info.ja_JP.euc
673
B
-rw-r--r--
config.info.nl
1.41
KB
-rw-r--r--
config.info.nl.UTF-8
1.41
KB
-rw-r--r--
config.info.no
1.41
KB
-rw-r--r--
config.info.no.UTF-8
1.41
KB
-rw-r--r--
config.info.pl
1.41
KB
-rw-r--r--
config.info.pl.UTF-8
1.45
KB
-rw-r--r--
config.info.pt_BR
1.7
KB
-rw-r--r--
config.info.pt_BR.UTF-8
1.7
KB
-rw-r--r--
config.info.ru.UTF-8
1.74
KB
-rw-r--r--
config.info.ru_RU
1.17
KB
-rw-r--r--
config.info.ru_RU.UTF-8
1.74
KB
-rw-r--r--
config.info.ru_SU
1.17
KB
-rw-r--r--
config.info.sv
640
B
-rw-r--r--
config.info.sv.UTF-8
651
B
-rw-r--r--
config.info.tr
1.3
KB
-rw-r--r--
config.info.uk_UA
1.21
KB
-rw-r--r--
config.info.uk_UA.UTF-8
1.8
KB
-rw-r--r--
config.info.zh_CN
496
B
-rw-r--r--
config.info.zh_CN.UTF-8
573
B
-rw-r--r--
config.info.zh_TW.Big5
480
B
-rw-r--r--
config.info.zh_TW.UTF-8
539
B
-rw-r--r--
cups-driver.pl
6.37
KB
-rwxr-xr-x
cups-lib.pl
8.67
KB
-rwxr-xr-x
defaultacl
73
B
-rw-r--r--
delete_printer.cgi
690
B
-rwxr-xr-x
delete_printers.cgi
839
B
-rwxr-xr-x
drivers
18.34
KB
-rw-r--r--
edit_printer.cgi
10.08
KB
-rwxr-xr-x
freebsd-lib.pl
7.26
KB
-rwxr-xr-x
hpux-driver.pl
3.13
KB
-rwxr-xr-x
hpux-lib.pl
9.83
KB
-rwxr-xr-x
index.cgi
5.83
KB
-rwxr-xr-x
irix-driver.pl
3.13
KB
-rwxr-xr-x
irix-lib.pl
10.68
KB
-rwxr-xr-x
linux-lib.pl
8.96
KB
-rwxr-xr-x
list_jobs.cgi
2.25
KB
-rwxr-xr-x
log_parser.pl
1021
B
-rwxr-xr-x
lpadmin-lib.pl
19.87
KB
-rwxr-xr-x
lprng-lib.pl
10.26
KB
-rwxr-xr-x
module.info
494
B
-rw-r--r--
module.info.ca
164
B
-rw-r--r--
module.info.ca.UTF-8
179
B
-rw-r--r--
module.info.cz
30
B
-rw-r--r--
module.info.cz.UTF-8
37
B
-rw-r--r--
module.info.de
152
B
-rw-r--r--
module.info.de.UTF-8
164
B
-rw-r--r--
module.info.es
37
B
-rw-r--r--
module.info.es.UTF-8
44
B
-rw-r--r--
module.info.fr
39
B
-rw-r--r--
module.info.fr.UTF-8
45
B
-rw-r--r--
module.info.hu
18
B
-rw-r--r--
module.info.hu.UTF-8
25
B
-rw-r--r--
module.info.ja_JP.UTF-8
36
B
-rw-r--r--
module.info.ja_JP.euc
28
B
-rw-r--r--
module.info.ko_KR.UTF-8
34
B
-rw-r--r--
module.info.ko_KR.euc
27
B
-rw-r--r--
module.info.ms_MY
158
B
-rw-r--r--
module.info.ms_MY.UTF-8
170
B
-rw-r--r--
module.info.nl
33
B
-rw-r--r--
module.info.nl.UTF-8
39
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
156
B
-rw-r--r--
module.info.pl.UTF-8
172
B
-rw-r--r--
module.info.pt
37
B
-rw-r--r--
module.info.pt.UTF-8
45
B
-rw-r--r--
module.info.pt_BR
50
B
-rw-r--r--
module.info.pt_BR.UTF-8
56
B
-rw-r--r--
module.info.ru.UTF-8
31
B
-rw-r--r--
module.info.ru_RU
20
B
-rw-r--r--
module.info.ru_RU.UTF-8
34
B
-rw-r--r--
module.info.ru_SU
20
B
-rw-r--r--
module.info.sv
30
B
-rw-r--r--
module.info.sv.UTF-8
36
B
-rw-r--r--
module.info.tr
24
B
-rw-r--r--
module.info.zh_CN
22
B
-rw-r--r--
module.info.zh_TW.Big5
29
B
-rw-r--r--
old-caldera-driver.pl
9.72
KB
-rwxr-xr-x
openbsd-lib.pl
7.26
KB
-rwxr-xr-x
printconf-driver.pl
9.52
KB
-rwxr-xr-x
rbac-mapping
248
B
-rw-r--r--
redhat-driver.pl
12.42
KB
-rwxr-xr-x
restart.cgi
301
B
-rwxr-xr-x
save_printer.cgi
5.85
KB
-rwxr-xr-x
solaris-driver.pl
4.01
KB
-rwxr-xr-x
solaris-lib.pl
12.17
KB
-rwxr-xr-x
sortdrivers-by-drv.pl
222
B
-rwxr-xr-x
sortdrivers.pl
242
B
-rwxr-xr-x
start.cgi
377
B
-rwxr-xr-x
stop.cgi
374
B
-rwxr-xr-x
stp
2.45
KB
-rw-r--r--
suse-driver.pl
10.62
KB
-rwxr-xr-x
test_form.cgi
887
B
-rwxr-xr-x
test_print.cgi
1.19
KB
-rwxr-xr-x
unixware-lib.pl
7.81
KB
-rwxr-xr-x
view_job.cgi
906
B
-rwxr-xr-x
webmin-driver.pl
1.04
KB
-rwxr-xr-x
Delete
Unzip
Zip
${this.title}
Close
Code Editor : cups-driver.pl
# cups-driver.pl # Functions for CUPS printer drivers $webmin_windows_driver = 0; $cups_ppd_dir = "/etc/cups/ppd"; $lpoptions = &has_command("lpoptions.cups") ? "lpoptions.cups" : "lpoptions"; # is_windows_driver(path, &printer) # Returns the server, share, username, password, workgroup, program # if path is a webmin windows driver sub is_windows_driver { if ($_[1]->{'dev'} =~ /^smb:\/\/(\S*):(\S*)\@(\S*)\/(\S*)\/(\S*)$/) { return { 'user' => $1, 'pass' => $2, 'workgroup' => $3, 'server' => $4, 'share' => $5, 'program' => $_[0] }; } elsif ($_[1]->{'dev'} =~ /^smb:\/\/(\S*):(\S*)\@(\S*)\/(\S*)$/) { return { 'user' => $1, 'pass' => $2, 'server' => $3, 'share' => $4, 'program' => $_[0] }; } elsif ($_[1]->{'dev'} =~ /^smb:\/\/(\S*)\/(\S*)\/(\S*)$/) { return { 'workgroup' => $1, 'server' => $2, 'share' => $3, 'program' => $_[0] }; } elsif ($_[1]->{'dev'} =~ /^smb:\/\/(\S*)\/(\S*)$/) { return { 'server' => $1, 'share' => $2, 'program' => $_[0] }; } else { return undef; } } # is_driver(path, &printer) # Returns the driver name if some path is a CUPS driver, or undef sub is_driver { if (!$_[0] || !-r $_[0]) { return { 'mode' => 0, 'desc' => $text{'cups_none'} }; } local $ppd = &parse_cups_ppd($_[0]); if ($ppd->{'NickName'}) { # Looks like a CUPS PPD file! return { 'mode' => 1, 'manuf' => $ppd->{'Manufacturer'}, 'model' => $ppd->{'ModelName'}, 'nick' => $ppd->{'NickName'}, 'desc' => "$ppd->{'Manufacturer'} $ppd->{'ModelName'}" }; } else { # Some other kind of interface file return { 'mode' => 2, 'file' => $_[0], 'desc' => $_[0] }; } } # create_windows_driver(&printer, &driver) sub create_windows_driver { if ($_[1]->{'workgroup'} && $_[1]->{'user'}) { $_[0]->{'dev'} = "smb://$_[1]->{'user'}:$_[1]->{'pass'}\@$_[1]->{'workgroup'}/$_[1]->{'server'}/$_[1]->{'share'}"; } elsif ($_[1]->{'workgroup'}) { $_[0]->{'dev'} = "smb://$_[1]->{'workgroup'}/$_[1]->{'server'}/$_[1]->{'share'}"; } elsif ($_[1]->{'user'}) { $_[0]->{'dev'} = "smb://$_[1]->{'user'}:$_[1]->{'pass'}\@$_[1]->{'server'}/$_[1]->{'share'}"; } else { $_[0]->{'dev'} = "smb://$_[1]->{'server'}/$_[1]->{'share'}"; } return $_[1]->{'program'}; } # create_driver(&printer, &driver) sub create_driver { local $drv = "$cups_ppd_dir/$_[0]->{'name'}.ppd"; undef($cups_driver_options); if ($_[1]->{'mode'} == 0) { &unlink_file($drv); return undef; } elsif ($_[1]->{'mode'} == 2) { &unlink_file($drv); return $_[1]->{'file'}; } else { # Copy the driver into place if ($_[1]->{'ppd'} =~ /\.gz$/) { &system_logged("gunzip -c ".quotemeta($_[1]->{'ppd'}). " >".quotemeta($drv)); } else { ©_source_dest($_[1]->{'ppd'}, $drv); } chmod(0777, $drv); $cups_driver_options = $_[1]->{'opts'}; # for modify_printer return $drv; } } # delete_driver(name) sub delete_driver { &unlink_file("$cups_ppd_dir/$_[0].ppd"); } # driver_input(&printer, &driver) sub driver_input { printf "<tr> <td><input type=radio name=mode value=0 %s> %s</td>\n", $_[1]->{'mode'} == 0 ? 'checked' : '', $text{'cups_none'}; print "<td>($text{'cups_nonemsg'})</td> </tr>\n"; printf "<tr> <td><input type=radio name=mode value=2 %s> %s</td>", $_[1]->{'mode'} == 2 ? 'checked' : '', $text{'cups_prog'}; printf "<td><input name=program size=40 value='%s'></td> </tr>\n", $_[1]->{'mode'} == 2 ? $_[0]->{'iface'} : ''; # Display all the CUPS drivers printf "<tr> <td valign=top><input type=radio name=mode value=1 %s> %s</td>\n", $_[1]->{'mode'} == 1 ? 'checked' : '', $text{'cups_driver'}; local (@ppds, $d, $f, $ppd, %cache, $outofdate, @files, %donefile); local $findver = &backquote_command("find --version 2>&1", 1); local $flag = $findver =~ /GNU\s+find\s+version\s+([0-9\.]+)/i && $1 >= 4.2 ? "-L" : ""; foreach my $mp (split(/\s+/, $config{'model_path'})) { &open_execute_command(FIND, "find $flag ".quotemeta($mp). " -type f -print", 1, 1); while(<FIND>) { chop; next if (/\.xml$/); # Ignore XML PPD sources /([^\/]+)$/; next if ($donefile{$1}++); push(@files, $_); } close(FIND); } &read_file("$module_config_directory/ppd-cache", \%cache); foreach $f (@files) { if (!defined($cache{$f})) { $outofdate = $f; last; } } if ($outofdate || scalar(keys %cache) != scalar(@files)) { # Cache is out of date undef(%cache); local %donecache; foreach $f (@files) { local $ppd = &parse_cups_ppd($f); local $nn = $ppd->{'NickName'}; $cache{$f} = $donecache{$nn} ? "duplicate" : $ppd->{'NickName'}; $donecache{$nn}++; } &write_file("$module_config_directory/ppd-cache", \%cache); } local %done; print "<td><select name=ppd size=10>\n"; foreach $f (sort { $cache{$a} cmp $cache{$b} } keys %cache) { if ($cache{$f} && $cache{$f} ne "duplicate" && !$done{$cache{$f}}++) { printf "<option value=%s %s>%s\n", $f, $_[1]->{'nick'} eq $cache{$f} ? 'selected' : '', $cache{$f}; $currppd = $f if ($_[1]->{'nick'} eq $cache{$f}); } } print "</select>\n"; # Display driver option inputs if ($currppd) { local $ppd = &parse_cups_ppd($currppd); print "<br><b>",&text('cups_opts', $ppd->{'NickName'}), "</b><table>\n"; open(OPTS, "$lpoptions -p '$_[0]->{'name'}' -l 2>/dev/null |"); while(<OPTS>) { if (/^(\S+)\/([^:]+):\s*(.*)/ && $1 ne "PageRegion") { print "<tr>\n" if ($i%2 == 0); local $code = $1; local $disp = $2; local @opts = split(/\s+/, $3); print "<td><b>$disp:</b></td>\n"; print "<td><select name=ppd_$code>\n"; foreach $o (@opts) { local $sel = ($o =~ s/^\*//); printf "<option value='%s' %s>%s\n", $o, $sel ? "selected" : "", $ppd->{$code}->{$o} ? $ppd->{$code}->{$o} : $o; } print "</select></td>\n"; print "<tr>\n" if ($i%2 == 1); } } close(OPTS); print "</table>\n"; } print "</td> </tr>\n"; return undef; } # parse_driver() # Parse driver selection from %in and return a driver structure sub parse_driver { if ($in{'mode'} == 0) { return { 'mode' => 0 }; } elsif ($in{'mode'} == 2) { $in{'program'} =~ /^(\S+)/ && -x $1 || &error(&text('cups_eprog', $in{'program'})); return { 'mode' => 2, 'file' => $in{'program'} }; } elsif ($in{'mode'} == 1) { # CUPS printer driver local $ppd = &parse_cups_ppd($in{'ppd'}); local $rv = { 'mode' => 1, 'ppd' => $in{'ppd'}, 'nick' => $ppd->{'NickName'}, 'manuf' => $ppd->{'Manufacturer'}, 'model' => $ppd->{'ModelName'} }; foreach $i (keys %in) { $rv->{'opts'}->{$1} = $in{$i} if ($i =~ /^ppd_(.*)$/); } return $rv; } } 1;
Close