[ Avaa Bypassed ]




Upload:

Command:

www-data@18.116.15.98: ~ $
#!/usr/bin/perl
# edit_host.cgi
# Display options for a new or existing host config

require (-r 'sshd-lib.pl' ? './sshd-lib.pl' : './ssh-lib.pl');
&ReadParse();
if ($in{'new'}) {
	&ui_print_header(undef, $text{'host_create'}, "", "chost");
	}
else {
	&ui_print_header(undef, $text{'host_edit'}, "", "ehost");
	$hconf = &get_client_config();
	$host = $hconf->[$in{'idx'}];
	$conf = $host->{'members'};
	}

# Get version and type
if (&get_product_name() eq 'usermin') {
	$version_type = &get_ssh_type();
	$version_number = &get_ssh_version();
	}
else {
	$version_type = $version{'type'};
	$version_number = $version{'number'};
	}

print &ui_form_start("save_host.cgi", "post");
print &ui_hidden("idx", $in{'idx'});
print &ui_hidden("new", $in{'new'});
print &ui_table_start($text{'host_header'}, "width=100%", 2);

# Name for this host
print &ui_table_row($text{'host_name'},
	&ui_opt_textbox("name", $host->{'values'}->[0] eq '*' ? '' :
				 $host->{'values'}->[0],
			50, $text{'hosts_all'}));

# Default user to login as
$user = &find_value("User", $conf);
print &ui_table_row($text{'host_user'},
	&ui_opt_textbox("user", $user, 20, $text{'host_user_def'}));

# Send keep-alive packets?
$keep = &find_value("KeepAlive", $conf);
print &ui_table_row($text{'host_keep'},
	&yes_no_default_radio("keep", $keep));

# Real hostname to connect to
$hostname = &find_value("HostName", $conf);
print &ui_table_row($text{'host_hostname'},
	&ui_opt_textbox("hostname", $hostname, 30, $text{'host_hostname_def'}));

# Port to use
$port = &find_value("Port", $conf);
print &ui_table_row($text{'host_port'},
	&ui_opt_textbox("port", $port, 6, $text{'default'}." (22)"));

# Ask for password if needed, or fail fast?
$batch = &find_value("BatchMode", $conf);
print &ui_table_row($text{'host_batch'},
	&yes_no_default_radio("batch", $batch));

# Compress SSH?
$comp = &find_value("Compression", $conf);
print &ui_table_row($text{'host_comp'},
	&yes_no_default_radio("comp", $comp));

# Escape character in session
$escape = &find_value("EscapeChar", $conf);
print &ui_table_row($text{'host_escape'},
	&ui_radio("escape_def", $escape eq "" ? 1 :
				$escape eq "none" ? 2 : 0,
		  [ [ 1, $text{'default'}." (~.)" ],
		    [ 2, $text{'host_escape_none'} ],
		    [ 0, &ui_textbox("escape",
				$escape eq "none" ? "" : $escape, 4) ] ]));

if ($version_type ne 'ssh' || $version_number < 3) {
	# SSH compression level
	$clevel = &find_value("CompressionLevel", $conf);
	print &ui_table_row($text{'host_clevel'},
		&ui_radio("clevel_def", $clevel ? 0 : 1,
		  [ [ 1, $text{'default'} ],
		    [ 0, &ui_select("clevel", $clevel,
			   [ map { [ $_, $text{"host_clevel_".$_} ] }
				 (1 .. 9) ]) ] ]));

	# Number of times to attempt connection
	$attempts = &find_value("ConnectionAttempts", $conf);
	print &ui_table_row($text{'host_attempts'},
		&ui_opt_textbox("attempts", $attempts, 5, $text{'default'}));

	# Use local privileged port?
	$priv = &find_value("UsePrivilegedPort", $conf);
	print &ui_table_row($text{'host_priv'},
		&yes_no_default_radio("priv", $priv));

	# Try RSH if SSH fails?
	$rsh = &find_value("FallBackToRsh", $conf);
	print &ui_table_row($text{'host_rsh'},
		 &yes_no_default_radio("rsh", $rsh));

	# Use RSH only?
	$usersh = &find_value("UseRsh", $conf);
	print &ui_table_row($text{'host_usersh'},
		&yes_no_default_radio("usersh", $usersh));
	}

# Forward SSH agent?
$agent = &find_value("ForwardAgent", $conf);
print &ui_table_row($text{'host_agent'},
	&yes_no_default_radio('agent', $agent));

# Forward X connection?
$x11 = &find_value("ForwardX11", $conf);
print &ui_table_row($text{'host_x11'},
	&yes_no_default_radio('x11', $x11));

# Strictly check host keys?
$strict = &find_value("StrictHostKeyChecking", $conf);
print &ui_table_row($text{'host_strict'},
	&ui_radio('strict', lc($strict) eq 'no' ? 0 :
			    lc($strict) eq 'yes' ? 1 :
			    lc($strict) eq 'ask' ? 3 : 2,
		  [ [ 0, $text{'yes'} ], [ 1, $text{'no'} ],
		    [ 3, $text{'host_ask'} ], [ 2, $text{'default'} ] ]));

if ($version_type eq 'openssh') {
	# Double-check remote host IP?
	$checkip = &find_value("CheckHostIP", $conf);
	print &ui_table_row($text{'host_checkip'},
		&yes_no_default_radio('checkip', $checkip));

	# SSH protocols to try
	$prots = &find_value("Protocol", $conf);
	print &ui_table_row($text{'host_prots'},
		&ui_select("prots", $prots,
			   [ [ '', $text{'default'} ],
			     [ 1, $text{'host_prots1'} ],
			     [ 2, $text{'host_prots2'} ],
			     [ '1,2', $text{'host_prots12'} ],
			     [ '2,1', $text{'host_prots21'} ] ], 1, 0, 1));
	}

print &ui_table_hr();

# Local ports to forward
@lforward = &find("LocalForward", $conf);
@ltable = ( );
$i = 0;
foreach $l (@lforward, { }) {
	local ($lp, $rh, $rp) = ( $l->{'values'}->[0],
				  split(/:/, $l->{'values'}->[1]) );
	push(@ltable, [ &ui_textbox("llport_$i", $lp, 8),
			&ui_textbox("lrhost_$i", $rh, 8),
			&ui_textbox("lrport_$i", $rp, 8) ]);
	$i++;
	}
print &ui_table_row($text{'host_lforward'},
	&ui_columns_table([ $text{'host_llport'}, $text{'host_lrhost'},
			    $text{'host_lrport'} ],
			  50, \@ltable));

print &ui_table_hr();

# Remote ports to forward
@rforward = &find("RemoteForward", $conf);
@rtable = ( );
$i = 0;
foreach $r (@rforward, { }) {
	local ($rp, $lh, $lp) = ( $r->{'values'}->[0],
				  split(/:/, $r->{'values'}->[1]) );
	push(@rtable, [ &ui_textbox("rrport_$i", $rp, 8),
			&ui_textbox("rlhost_$i", $lh, 40),
			&ui_textbox("rlport_$i", $lp, 8) ]);
	$i++;
	}
print &ui_table_row($text{'host_rforward'},
        &ui_columns_table([ $text{'host_rrport'}, $text{'host_rlhost'},
                            $text{'host_rlport'} ],
                          50, \@rtable));

print &ui_table_end();
if ($in{'new'}) {
	print &ui_form_end([ [ undef, $text{'create'} ] ]);
	}
else {
	print &ui_form_end([ [ undef, $text{'save'} ],
			     [ 'delete', $text{'delete'} ] ]);
	}

&ui_print_footer("list_hosts.cgi", $text{'hosts_return'},
		 "", $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