From 65b77f994ade25cd5ee1148ff251ebe697d6e04e Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Fri, 1 Jun 2018 03:34:55 -0600 Subject: [PATCH] update grant message --- remote.js | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/remote.js b/remote.js index 90f73fe..3da3845 100644 --- a/remote.js +++ b/remote.js @@ -212,9 +212,26 @@ function run(state) { console.log("Connect to your device by any of the following means:"); console.log(""); grants.forEach(function (arr) { + if ('ssh+https' === arr[0]) { + console.log("SSH+HTTPS"); + } else if ('ssh' === arr[0]) { + console.log("SSH"); + } else if ('tcp' === arr[0]) { + console.log("TCP"); + } else if ('https' === arr[0]) { + console.log("HTTPS"); + } console.log('\t' + arr[0] + '://' + arr[1] + (arr[2] ? (':' + arr[2]) : '')); + if ('ssh+https' === arr[0]) { + console.log("\tex: ssh -o ProxyCommand='openssl s_client -connect %h:%p -quiet' " + arr[1] + " -p 443\n"); + } else if ('ssh' === arr[0]) { + console.log("\tex: ssh " + arr[1] + " -p " + arr[2] + "\n"); + } else if ('tcp' === arr[0]) { + console.log("\tex: netcat " + arr[1] + " " + arr[2] + "\n"); + } else if ('https' === arr[0]) { + console.log("\tex: curl https://" + arr[1] + "\n"); + } }); - console.log(""); } var connCallback;