From 18d9b97544b698ab3a8c85a93ff6dcef79241e7e Mon Sep 17 00:00:00 2001 From: slerena Date: Fri, 12 Apr 2013 11:10:13 +0000 Subject: [PATCH] 2013-04-12 Sancho Lerena * extensions/ssh_gateway.php: Implemented support to connect Telnet/SSH on different ports than standard ones. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7972 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 5 +++++ pandora_console/extensions/ssh_gateway.php | 17 ++++++++++++++--- 2 files changed, 19 insertions(+), 3 deletions(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index b95ddb9983..a699762087 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,8 @@ +2013-04-12 Sancho Lerena + + * extensions/ssh_gateway.php: Implemented support to connect + Telnet/SSH on different ports than standard ones. + 2013-04-12 Mario Pulido * godmode/users/configure_user.php, diff --git a/pandora_console/extensions/ssh_gateway.php b/pandora_console/extensions/ssh_gateway.php index c3ea001e2c..ce51682f79 100644 --- a/pandora_console/extensions/ssh_gateway.php +++ b/pandora_console/extensions/ssh_gateway.php @@ -29,6 +29,7 @@ function ssh_gateway () { $HOST = get_parameter ("host", ""); $USER = get_parameter ("user", ""); + $PORT = get_parameter ("port", 0); // TODO: Put aditional filtering for ";" and "&" characters in user & host for security // because these params are passed to server exec() call :) @@ -50,12 +51,14 @@ function ssh_gateway () { if ($COMMIT == 1) { echo "

".__("You need to specify a user and a host address")."

"; } - + echo "
"; echo ""; echo ""; echo ""; + echo "
".__("Host address").""; echo "
".__("User").""; + echo "
".__("Port (use 0 for default)").""; echo "
"; echo __("Connect mode")."