[ Avaa Bypassed ]




Upload:

Command:

www-data@3.148.202.164: ~ $
#!/usr/bin/perl
# edit_users.cgi
# Display user and group related SSHd options

require './sshd-lib.pl';
&ui_print_header(undef, $text{'users_title'}, "", "users");
$conf = &get_sshd_config();

print &ui_form_start("save_users.cgi", "post");
print &ui_table_start($text{'users_header'}, "width=100%", 2);

if ($version{'type'} eq 'ssh' && $version{'number'} < 2) {
	# Days before account expires to warn
	$expire = &find_value("AccountExpireWarningDays", $conf);
	print &ui_table_row($text{'users_expire'},
		&ui_opt_textbox("expire", $expire, 5,
				$text{'users_expire_def'}));
	}

# Notify users of new email
$mail = &find_value("CheckMail", $conf);
if ($version{'type'} eq 'ssh') {
	print &ui_table_row($text{'users_mail'},
		&ui_yesno_radio("mail", lc($mail) ne 'no'));
	}
elsif ($version{'number'} < 3.1) {
	print &ui_table_row($text{'users_mail'},
		&ui_yesno_radio("mail", lc($mail) eq 'yes'));
	}

if ($version{'type'} eq 'ssh' && $version{'number'} < 2) {
	# Days before password expires to warn
	$pexpire = &find_value("PasswordExpireWarningDays", $conf);
	print &ui_table_row($text{'users_pexpire'},
		&ui_opt_textbox("pexpire", $pexpire, 5,
				$text{'users_pexpire_def'}));
	}

if ($version{'type'} ne 'ssh' || $version{'number'} < 3) {
	# Allow password authentication?
	$auth = &find_value("PasswordAuthentication", $conf);
	print &ui_table_row($text{'users_auth'},
		&ui_yesno_radio("auth", lc($auth) ne 'no'));
	}

# Allow empty passwords?
$pempty = &find_value("PermitEmptyPasswords", $conf);
if ($version{'type'} eq 'ssh') {
	print &ui_table_row($text{'users_pempty'},
		&ui_yesno_radio("pempty", lc($pempty) ne 'no'));
	}
else {
	print &ui_table_row($text{'users_pempty'},
		&ui_yesno_radio("pempty", lc($pempty) eq 'yes'));
	}

# Allow logins by root
$root = &find_value("PermitRootLogin", $conf);
if (!$root) {
	# Default ways seems to be 'yes'
	$root = "yes";
	}
@opts = ( [ 'yes', $text{'yes'} ],
	  [ 'no', $text{'no'} ] );
if ($version{'type'} eq 'ssh') {
	push(@opts, [ 'nopwd', $text{'users_nopwd'} ]);
	}
else {
	push(@opts, [ 'without-password', $text{'users_nopwd'} ]);
	if ($version{'number'} >= 2) {
		push(@opts, [ 'forced-commands-only', $text{'users_fcmd'} ]);
		}
	}
print "</select></td>\n";
print &ui_table_row($text{'users_root'},
	&ui_select("root", lc($root), \@opts));

# SSH 1 RSA authentication
if (($version{'type'} eq 'ssh' && $version{'number'} < 3) ||
    ($version{'type'} eq 'openssh' && $version{'number'} < 7.3)) {
	$rsa = &find_value("RSAAuthentication", $conf);
	print &ui_table_row($text{'users_rsa'},
		&ui_yesno_radio('rsa', lc($rsa) ne 'no'));
	}

# SSH 2 DSA authentication
if ($version{'type'} eq 'openssh' && $version{'number'} >= 3) {
	$dsa = &find_value("PubkeyAuthentication", $conf);
	print &ui_table_row($text{'users_dsa'},
		&ui_yesno_radio('dsa', lc($dsa) ne 'no'));
	}

# Strictly check permissions
$strict = &find_value("StrictModes", $conf);
print &ui_table_row($text{'users_strict'},
	&ui_yesno_radio('strict', lc($strict) ne 'no'));

# Show message of the day
$motd = &find_value("PrintMotd", $conf);
print &ui_table_row($text{'users_motd'},
	&ui_yesno_radio('motd', lc($motd) ne 'no'));

if ($version{'type'} eq 'openssh') {
	# Ignore known_hosts files
	$known = &find_value("IgnoreUserKnownHosts", $conf);
	print &ui_table_row($text{'users_known'},
		&ui_yesno_radio("known", lc($known) eq 'yes'));

	if ($version{'number'} > 2.3) {
		# Show login banner from file
		$banner = &find_value("Banner", $conf);
		print &ui_table_row($text{'users_banner'},
			&ui_opt_textbox("banner", $banner, 50,
					$text{'users_banner_def'})." ".
			&file_chooser_button("banner"));
		}
	}
elsif ($version{'type'} eq 'ssh' && $version{'number'} >= 2) {
	# Show login banner from file
	$banner = &find_value("BannerMessageFile", $conf);
	print &ui_table_row($text{'users_banner'},
		&ui_opt_textbox("banner", $banner, 50,
				$text{'users_banner_def'})." ".
		&file_chooser_button("banner"));
	}

if ($version{'type'} eq 'openssh' && $version{'number'} >= 3) {
	# Authorized keys file (under home)
	$authkeys = &find_value("AuthorizedKeysFile", $conf);
	print &ui_table_row($text{'users_authkeys'},
		&ui_opt_textbox("authkeys", $authkeys, 20,
				$text{'users_authkeys_def'},
				$text{'users_authkeys_set'}));
	}

if ($version{'type'} eq 'openssh' && $version{'number'} >= 5) {
	# Max login attempts
	$maxauthtries = &find_value("MaxAuthTries", $conf);
	print &ui_table_row($text{'users_maxauthtries'},
		&ui_opt_textbox("maxauthtries", $maxauthtries, 5,
				$text{'default'}." (6)"));
	}

if ($version{'type'} eq 'openssh' && $version{'number'} >= 5) {
	# Challenge-response support
	$chal = &find_value("ChallengeResponseAuthentication", $conf);
	print &ui_table_row($text{'users_chal'},
		&ui_yesno_radio('chal', lc($chal) eq 'yes'));
	}

if ($version{'type'} eq 'openssh' && $version{'number'} < 3.7 ||
    $version{'type'} eq 'ssh' && $version{'number'} < 2) {
	# Allow rhosts file authentication?
	$rhostsauth = &find_value("RhostsAuthentication", $conf);
	print &ui_table_row($text{'users_rhostsauth'},
		&ui_yesno_radio("rhostsauth", lc($rhostsauth) eq 'yes'));

	# Allow RSA rhosts file authentication?
	$rhostsrsa = &find_value("RhostsRSAAuthentication", $conf);
	if ($version{'type'} eq 'ssh') {
		print &ui_table_row($text{'users_rhostsrsa'},
			&ui_yesno_radio("rhostsrsa", lc($rhostsrsa) ne 'no'));
		}
	else {
		print &ui_table_row($text{'users_rhostsrsa'},
			&ui_yesno_radio("rhostsrsa", lc($rhostsrsa) eq 'yes'));
		}
	}

# Ignore rhosts files?
$rhosts = &find_value("IgnoreRhosts", $conf);
if ($version{'type'} eq 'ssh') {
	print &ui_table_row($text{'users_rhosts'},
		&ui_yesno_radio("rhosts", lc($rhosts) eq 'yes'));
	}
else {
	print &ui_table_row($text{'users_rhosts'},
		&ui_yesno_radio("rhosts", lc($rhosts) ne 'no'));
	}

# Ignore root's rhosts file?
if ($version{'type'} eq 'ssh') {
	$rrhosts = &find_value("IgnoreRootRhosts", $conf);
	print &ui_table_row($text{'users_rrhosts'},
		&ui_radio("rrhosts", lc($rrhosts) eq 'yes' ? 1 :
				     lc($rrhosts) eq 'no' ? 0 : -1,
			  [ [ 1, $text{'yes'} ], [ 0, $text{'no'} ],
			    [ -1, $text{'users_rrdef'} ] ]));
	}

print &ui_table_end();
print &ui_form_end([ [ undef, $text{'save'} ] ]);

&ui_print_footer("", $text{'index_return'});


Filemanager

Name Type Size Permission Actions
help Folder 0755
images Folder 0755
lang Folder 0755
CHANGELOG File 1.04 KB 0644
apply.cgi File 233 B 0755
backup_config.pl File 892 B 0755
cgi_args.pl File 264 B 0755
config File 202 B 0644
config-AlmaLinux-8.0-ALL File 296 B 0644
config-CentOS-Stream-Linux-8.0-ALL File 296 B 0644
config-CloudLinux-8.0-ALL File 296 B 0644
config-Oracle-Linux-8.0-ALL File 296 B 0644
config-Rocky-Linux-8.0-ALL File 296 B 0644
config-Ubuntu-Linux-10.10-17.10 File 256 B 0644
config-Ubuntu-Linux-18.04-ALL File 296 B 0644
config-coherent-linux File 276 B 0644
config-debian-linux-10.0-ALL File 296 B 0644
config-debian-linux-2.2-9.0 File 264 B 0644
config-macos File 194 B 0644
config-macos-8.1-ALL File 183 B 0644
config-mandrake-linux-7.1-ALL File 258 B 0644
config-open-linux-3.1 File 276 B 0644
config-openSUSE-Linux-15.0-ALL File 296 B 0644
config-openmamba-linux File 276 B 0644
config-pardus-linux File 235 B 0644
config-redhat-linux-24.0-ALL File 296 B 0644
config-redhat-linux-7.0-23.0 File 258 B 0644
config-slackware-linux-8.0-ALL File 268 B 0644
config-sol-linux File 274 B 0644
config-solaris-10-ALL File 344 B 0644
config-solaris-9 File 205 B 0644
config-suse-linux-7.1-8.0 File 266 B 0644
config-suse-linux-8.2-ALL File 271 B 0644
config-syno-linux File 342 B 0644
config-trustix-linux File 303 B 0644
config-turbo-linux-7.0 File 276 B 0644
config-united-linux File 266 B 0644
config-windows File 267 B 0644
config.info File 479 B 0644
config.info.bg File 909 B 0644
config.info.ca File 577 B 0644
config.info.cs File 555 B 0644
config.info.de File 574 B 0644
config.info.es File 372 B 0644
config.info.eu File 597 B 0644
config.info.fa File 569 B 0644
config.info.fr File 647 B 0644
config.info.hu File 0 B 0644
config.info.it File 576 B 0644
config.info.ja File 558 B 0644
config.info.ko File 498 B 0644
config.info.nl File 598 B 0644
config.info.no File 499 B 0644
config.info.pl File 595 B 0644
config.info.ru File 488 B 0644
config.info.sk File 498 B 0644
config.info.uk File 511 B 0644
edit_access.cgi File 2.25 KB 0755
edit_host.cgi File 5.81 KB 0755
edit_keys.cgi File 1.38 KB 0755
edit_manual.cgi File 879 B 0755
edit_misc.cgi File 3.35 KB 0755
edit_net.cgi File 3.84 KB 0755
edit_sync.cgi File 934 B 0755
edit_users.cgi File 6.13 KB 0755
index.cgi File 2.61 KB 0755
install_check.pl File 370 B 0755
list_hosts.cgi File 707 B 0755
log_parser.pl File 612 B 0755
module.info File 127 B 0644
module.info.af File 0 B 0644
module.info.af.auto File 107 B 0644
module.info.ar File 0 B 0644
module.info.ar.auto File 135 B 0644
module.info.be File 0 B 0644
module.info.be.auto File 143 B 0644
module.info.bg File 25 B 0644
module.info.bg.auto File 118 B 0644
module.info.ca File 91 B 0644
module.info.ca.auto File 13 B 0644
module.info.cs File 19 B 0644
module.info.cs.auto File 90 B 0644
module.info.da File 0 B 0644
module.info.da.auto File 92 B 0644
module.info.de File 89 B 0644
module.info.de.auto File 13 B 0644
module.info.el File 0 B 0644
module.info.el.auto File 164 B 0644
module.info.es File 21 B 0644
module.info.es.auto File 92 B 0644
module.info.eu File 24 B 0644
module.info.eu.auto File 81 B 0644
module.info.fa File 0 B 0644
module.info.fa.auto File 147 B 0644
module.info.fi File 0 B 0644
module.info.fi.auto File 92 B 0644
module.info.fr File 20 B 0644
module.info.fr.auto File 97 B 0644
module.info.he File 0 B 0644
module.info.he.auto File 120 B 0644
module.info.hr File 0 B 0644
module.info.hr.auto File 110 B 0644
module.info.hu File 30 B 0644
module.info.hu.auto File 99 B 0644
module.info.it File 19 B 0644
module.info.it.auto File 78 B 0644
module.info.ja File 22 B 0644
module.info.ja.auto File 116 B 0644
module.info.ko File 19 B 0644
module.info.ko.auto File 93 B 0644
module.info.lt File 0 B 0644
module.info.lt.auto File 105 B 0644
module.info.lv File 0 B 0644
module.info.lv.auto File 103 B 0644
module.info.ms File 94 B 0644
module.info.ms.auto File 13 B 0644
module.info.mt File 0 B 0644
module.info.mt.auto File 94 B 0644
module.info.nl File 19 B 0644
module.info.nl.auto File 82 B 0644
module.info.no File 19 B 0644
module.info.no.auto File 82 B 0644
module.info.pl File 21 B 0644
module.info.pl.auto File 84 B 0644
module.info.pt File 0 B 0644
module.info.pt.auto File 100 B 0644
module.info.pt_BR File 0 B 0644
module.info.pt_BR.auto File 109 B 0644
module.info.ro File 0 B 0644
module.info.ro.auto File 110 B 0644
module.info.ru File 25 B 0644
module.info.ru.auto File 124 B 0644
module.info.sk File 19 B 0644
module.info.sk.auto File 84 B 0644
module.info.sl File 0 B 0644
module.info.sl.auto File 99 B 0644
module.info.sv File 0 B 0644
module.info.sv.auto File 96 B 0644
module.info.th File 0 B 0644
module.info.th.auto File 251 B 0644
module.info.tr File 0 B 0644
module.info.tr.auto File 109 B 0644
module.info.uk File 0 B 0644
module.info.uk.auto File 155 B 0644
module.info.ur File 0 B 0644
module.info.ur.auto File 162 B 0644
module.info.vi File 0 B 0644
module.info.vi.auto File 115 B 0644
module.info.zh File 0 B 0644
module.info.zh.auto File 103 B 0644
module.info.zh_TW File 0 B 0644
module.info.zh_TW.auto File 112 B 0644
save_access.cgi File 1.87 KB 0755
save_host.cgi File 4.69 KB 0755
save_manual.cgi File 542 B 0755
save_misc.cgi File 2.53 KB 0755
save_net.cgi File 2.9 KB 0755
save_sync.cgi File 493 B 0755
save_users.cgi File 3.85 KB 0755
sshd-lib.pl File 8.73 KB 0755
start.cgi File 209 B 0755
stop.cgi File 193 B 0755
useradmin_update.pl File 1.34 KB 0755