X7ROOT File Manager
Current Path:
/usr/libexec/webmin/webmin
usr
/
libexec
/
webmin
/
webmin
/
📁
..
📄
CHANGELOG
(12.02 KB)
📄
acme_tiny.py
(11.24 KB)
📄
adminupgrade
(299 B)
📄
backup_config.pl
(1.97 KB)
📄
bootup.cgi
(1.04 KB)
📄
cache.cgi
(1.47 KB)
📄
cgi_args.pl
(159 B)
📄
change_access.cgi
(1.34 KB)
📄
change_advanced.cgi
(3 KB)
📄
change_anon.cgi
(712 B)
📄
change_bind.cgi
(4.8 KB)
📄
change_ca.cgi
(674 B)
📄
change_debug.cgi
(1.38 KB)
📄
change_lang.cgi
(478 B)
📄
change_lock.cgi
(554 B)
📄
change_log.cgi
(2.38 KB)
📄
change_mobile.cgi
(940 B)
📄
change_os.cgi
(1.85 KB)
📄
change_osdn.cgi
(1.54 KB)
📄
change_overlay.cgi
(1.16 KB)
📄
change_proxy.cgi
(1.09 KB)
📄
change_referers.cgi
(633 B)
📄
change_session.cgi
(4.61 KB)
📄
change_ssl.cgi
(3.03 KB)
📄
change_startpage.cgi
(773 B)
📄
change_status.cgi
(1.02 KB)
📄
change_theme.cgi
(1.16 KB)
📄
change_twofactor.cgi
(1.43 KB)
📄
change_ui.cgi
(1.65 KB)
📄
change_web.cgi
(2.47 KB)
📄
clear_blocked.cgi
(154 B)
📄
clear_cache.cgi
(205 B)
📄
clone_mod.cgi
(2.06 KB)
📄
config
(94 B)
📄
config.info
(609 B)
📄
config.info.ar
(414 B)
📄
config.info.ca
(408 B)
📄
config.info.cs
(233 B)
📄
config.info.de
(368 B)
📄
config.info.es
(229 B)
📄
config.info.fa
(301 B)
📄
config.info.fr
(577 B)
📄
config.info.hr
(0 B)
📄
config.info.hu
(0 B)
📄
config.info.it
(245 B)
📄
config.info.ja
(531 B)
📄
config.info.ko
(206 B)
📄
config.info.ms
(286 B)
📄
config.info.nl
(299 B)
📄
config.info.no
(283 B)
📄
config.info.pl
(284 B)
📄
config.info.pt_BR
(299 B)
📄
config.info.ru
(491 B)
📄
config.info.sk
(132 B)
📄
config.info.sv
(202 B)
📄
config.info.tr
(155 B)
📄
cpan_modules.pl
(248 B)
📄
defaultacl
(17 B)
📄
delete_cache.cgi
(471 B)
📄
delete_mod.cgi
(2.24 KB)
📄
delete_webmincron.cgi
(1.51 KB)
📄
download_cert.cgi
(532 B)
📄
edit_access.cgi
(1.72 KB)
📄
edit_advanced.cgi
(3.87 KB)
📄
edit_anon.cgi
(812 B)
📄
edit_assignment.cgi
(1.12 KB)
📄
edit_bind.cgi
(2.95 KB)
📄
edit_blocked.cgi
(944 B)
📄
edit_ca.cgi
(2.82 KB)
📄
edit_categories.cgi
(1.69 KB)
📄
edit_debug.cgi
(2.04 KB)
📄
edit_descs.cgi
(1.49 KB)
📄
edit_ipkey.cgi
(1.7 KB)
📄
edit_lang.cgi
(1004 B)
📄
edit_lock.cgi
(763 B)
📄
edit_log.cgi
(3.04 KB)
📄
edit_mobile.cgi
(1.26 KB)
📄
edit_mods.cgi
(4.67 KB)
📄
edit_os.cgi
(2.72 KB)
📄
edit_proxy.cgi
(3.7 KB)
📄
edit_referers.cgi
(899 B)
📄
edit_sendmail.cgi
(3.48 KB)
📄
edit_session.cgi
(5.14 KB)
📄
edit_ssl.cgi
(10.55 KB)
📄
edit_startpage.cgi
(1.68 KB)
📄
edit_status.cgi
(1.13 KB)
📄
edit_themes.cgi
(3.72 KB)
📄
edit_twofactor.cgi
(1.5 KB)
📄
edit_ui.cgi
(2.74 KB)
📄
edit_upgrade.cgi
(4.26 KB)
📄
edit_web.cgi
(2.88 KB)
📄
edit_webmincron.cgi
(1.35 KB)
📄
export_mod.cgi
(1.23 KB)
📄
feedback_files.pl
(126 B)
📄
fix_os.cgi
(228 B)
📄
gnupg-lib.pl
(13.38 KB)
📁
help
📄
hide.cgi
(326 B)
📁
images
📄
index.cgi
(4.16 KB)
📄
install_mod.cgi
(4.2 KB)
📄
install_theme.cgi
(2.29 KB)
📄
jcameron-key.asc
(1.29 KB)
📁
lang
📄
letsencrypt-cleanup.pl
(1.91 KB)
📄
letsencrypt-dns.pl
(2.38 KB)
📄
letsencrypt-lib.pl
(13.73 KB)
📄
letsencrypt.cgi
(4.64 KB)
📄
log_parser.pl
(1.23 KB)
📄
module.info
(195 B)
📄
module.info.af
(0 B)
📄
module.info.af.auto
(142 B)
📄
module.info.ar
(185 B)
📄
module.info.ar.auto
(22 B)
📄
module.info.be
(0 B)
📄
module.info.be.auto
(208 B)
📄
module.info.bg
(0 B)
📄
module.info.bg.auto
(218 B)
📄
module.info.ca
(134 B)
📄
module.info.ca.auto
(15 B)
📄
module.info.cs
(28 B)
📄
module.info.cs.auto
(128 B)
📄
module.info.da
(0 B)
📄
module.info.da.auto
(142 B)
📄
module.info.de
(126 B)
📄
module.info.de.auto
(15 B)
📄
module.info.el
(0 B)
📄
module.info.el.auto
(262 B)
📄
module.info.es
(33 B)
📄
module.info.es.auto
(109 B)
📄
module.info.eu
(0 B)
📄
module.info.eu.auto
(158 B)
📄
module.info.fa
(0 B)
📄
module.info.fa.auto
(202 B)
📄
module.info.fi
(0 B)
📄
module.info.fi.auto
(141 B)
📄
module.info.fr
(32 B)
📄
module.info.fr.auto
(129 B)
📄
module.info.he
(0 B)
📄
module.info.he.auto
(195 B)
📄
module.info.hr
(0 B)
📄
module.info.hr.auto
(149 B)
📄
module.info.hu
(30 B)
📄
module.info.hu.auto
(148 B)
📄
module.info.it
(33 B)
📄
module.info.it.auto
(107 B)
📄
module.info.ja
(180 B)
📄
module.info.ko
(22 B)
📄
module.info.ko.auto
(129 B)
📄
module.info.lt
(0 B)
📄
module.info.lt.auto
(180 B)
📄
module.info.lv
(0 B)
📄
module.info.lv.auto
(157 B)
📄
module.info.ms
(119 B)
📄
module.info.ms.auto
(15 B)
📄
module.info.mt
(0 B)
📄
module.info.mt.auto
(144 B)
📄
module.info.nl
(28 B)
📄
module.info.nl.auto
(117 B)
📄
module.info.no
(29 B)
📄
module.info.no.auto
(117 B)
📄
module.info.pl
(155 B)
📄
module.info.pl.auto
(15 B)
📄
module.info.pt
(33 B)
📄
module.info.pt.auto
(113 B)
📄
module.info.pt_BR
(36 B)
📄
module.info.pt_BR.auto
(119 B)
📄
module.info.ro
(0 B)
📄
module.info.ro.auto
(147 B)
📄
module.info.ru
(34 B)
📄
module.info.ru.auto
(172 B)
📄
module.info.sk
(30 B)
📄
module.info.sk.auto
(132 B)
📄
module.info.sl
(0 B)
📄
module.info.sl.auto
(147 B)
📄
module.info.sv
(30 B)
📄
module.info.sv.auto
(114 B)
📄
module.info.th
(0 B)
📄
module.info.th.auto
(258 B)
📄
module.info.tr
(33 B)
📄
module.info.tr.auto
(128 B)
📄
module.info.uk
(0 B)
📄
module.info.uk.auto
(215 B)
📄
module.info.ur
(0 B)
📄
module.info.ur.auto
(209 B)
📄
module.info.vi
(0 B)
📄
module.info.vi.auto
(177 B)
📄
module.info.zh
(22 B)
📄
module.info.zh_TW
(25 B)
📄
module.info.zh_TW.auto
(115 B)
📄
newcsr.cgi
(800 B)
📄
newkey.cgi
(879 B)
📄
postinstall.pl
(2.01 KB)
📄
refresh_modules.cgi
(664 B)
📄
restart.cgi
(87 B)
📄
save_assignment.cgi
(485 B)
📄
save_categories.cgi
(946 B)
📄
save_descs.cgi
(1006 B)
📄
save_ipkey.cgi
(1.31 KB)
📄
save_newmod.cgi
(278 B)
📄
save_sendmail.cgi
(2.08 KB)
📄
save_webmincron.cgi
(1016 B)
📄
savekey.cgi
(2.8 KB)
📄
setup_ca.cgi
(1.52 KB)
📄
standard_chooser.cgi
(1.68 KB)
📄
stop_ca.cgi
(1.03 KB)
📁
subdir
📄
syslog_logs.pl
(633 B)
📄
system_info.pl
(5.02 KB)
📄
test_sendmail.cgi
(784 B)
📄
third_chooser.cgi
(1.55 KB)
📄
twofactor-funcs-lib.pl
(8.81 KB)
📄
uninstall.pl
(236 B)
📄
update.cgi
(2.86 KB)
📄
upgrade.cgi
(16.08 KB)
📄
view_webmincron.cgi
(1.66 KB)
📄
webmin-lib.pl
(68.73 KB)
Editing: install_mod.cgi
#!/usr/bin/perl # install_mod.cgi # Download and install a webmin module require './webmin-lib.pl'; if ($ENV{REQUEST_METHOD} eq "POST") { &ReadParseMime(); } else { &ReadParse(); $no_upload = 1; } $| = 1; $theme_no_table = 1 if ($in{'source'} == 2 || $in{'source'} == 4); &ui_print_header(undef, $text{'install_title'}, ""); if ($in{'source'} == 0) { # from local file &error_setup(&text('install_err1', $in{'file'})); $file = $in{'file'}; if (!(-r $file)) { &inst_error($text{'install_efile'}); } } elsif ($in{'source'} == 1) { # from uploaded file &error_setup($text{'install_err2'}); $need_unlink = 1; if ($no_upload) { &inst_error($text{'install_ebrowser'}); } $file = &transname(&file_basename($in{'upload_filename'})); open(MOD, ">$file"); binmode(MOD); print MOD $in{'upload'}; close(MOD); } elsif ($in{'source'} == 2 || $in{'source'} == 4) { # from ftp or http url (possible third-party) $url = $in{'source'} == 2 ? $in{'url'} : $in{'third'}; &error_setup(&text('install_err3', $url)); $file = &transname(&file_basename($url)); $need_unlink = 1; my $error; $progress_callback_url = $url; if ($url =~ /^(http|https):\/\/([^\/]+)(\/.*)$/) { $ssl = $1 eq 'https'; $host = $2; $page = $3; $port = $ssl ? 443 : 80; if ($host =~ /^(.*):(\d+)$/) { $host = $1; $port = $2; } &http_download($host, $port, $page, $file, \$error, \&progress_callback, $ssl); } elsif ($url =~ /^ftp:\/\/([^\/]+)(:21)?\/(.*)$/) { $host = $1; $ffile = $3; &ftp_download($host, $ffile, $file, \$error, \&progress_callback); } else { &inst_error($text{'install_eurl'}); } if ($in{'checksig'} && !$error) { $error = &check_update_signature($host, $port, $page, $ssl, undef, undef, $file, 2); } &inst_error($error) if ($error); } elsif ($in{'source'} == 3) { # from www.webmin.com &error_setup($text{'install_err4'}); $in{'standard'} =~ /^\S+$/ || &error($text{'install_estandard'}); $need_unlink = 1; my $error; # Find the URL of the package $mods = &list_standard_modules(); ref($mods) || &error(&text('standard_failed', $error)); local ($info) = grep { $_->[0] eq $in{'standard'} } @$mods; $info || &error($text{'install_emissing'}); if ($config{'standard_url'}) { ($host, $port, $page, $ssl) = &parse_http_url( $config{'standard_url'}); $host || &error($text{'standard_eurl'}); } else { ($host, $port, $page, $ssl) = ($standard_host, $standard_port, $standard_page, $standard_ssl); } ($host, $port, $page, $ssl) = &parse_http_url( $info->[2], $host, $port, $page, $ssl); $progress_callback_url = $info->[2]; $file = &transname($info->[2]); &http_download($host, $port, $page, $file, \$error, \&progress_callback, $ssl); if ($in{'checksig'} && !$error) { $error = &check_update_signature($host, $port, $page, $ssl, undef, undef, $file, 2); } &inst_error($error) if ($error); } # Install the module(s) $rv = &install_webmin_module($file, $need_unlink, $in{'nodeps'}, $in{'grant'} ? undef : [ split(/\s+/, $in{'grantto'}) ]); if (ref($rv)) { @mdescs = @{$rv->[0]}; @mdirs = @{$rv->[1]}; @msizes = @{$rv->[2]}; } else { &inst_error($rv); } # Display something nice for the user &read_file("$config_directory/webmin.catnames", \%catnames); print "$text{'install_desc'} <p>\n"; print "<ul>\n"; for($i=0; $i<@mdescs; $i++) { $mdirs[$i] =~ /\/([^\/]+)$/; if (%minfo = &get_module_info($1)) { # Installed a module my $cat = $catnames{$minfo{'category'}}; $cat = $text{"category_".$minfo{'category'}} if (!$cat); $cat = $text{"category_"} if (!$cat); print &text($minfo{'hidden'} ? 'install_line3' : 'install_line2', "<b>$mdescs[$i]</b>", "<tt>$mdirs[$i]</tt>", $msizes[$i], $cat, "../$minfo{'dir'}/"), "<br>\n"; } elsif (%tinfo = &get_theme_info($1)) { # Installed a theme print &text('themes_line', "<b>$mdescs[$i]</b>", "<tt>$mdirs[$i]</tt>", $msizes[$i]), "<br>\n"; } } print "</ul><p>\n"; if (defined(&theme_post_change_modules)) { &theme_post_change_modules(); } &ui_print_footer("edit_mods.cgi?mode=install", $text{'mods_return'}, "", $text{'index_return'}); sub inst_error { print "<b>$main::whatfailed : $_[0]</b> <p>\n"; &ui_print_footer("", $text{'index_return'}); exit; }
Upload File
Create Folder