summaryrefslogtreecommitdiff
path: root/nocompile/libexec/telnet-gateway.sh
diff options
context:
space:
mode:
authorepochqwert <epoch@53flpnlls43fcguy.onion>2015-01-13 02:09:00 -0600
committerepochqwert <epoch@53flpnlls43fcguy.onion>2015-01-13 02:09:00 -0600
commit74406e6eee2f69e8861315071b5be38571747c11 (patch)
tree699e1cb8fb6efb8e85c1bdd4817b08e6f7a3ab3f /nocompile/libexec/telnet-gateway.sh
parent42d9771ba0c2e3491025e24956c995a7db56372c (diff)
downloadmisc-74406e6eee2f69e8861315071b5be38571747c11.tar.gz
misc-74406e6eee2f69e8861315071b5be38571747c11.zip
updated a lot of cuturl. added a timeout to telnet-gateway.sh
Diffstat (limited to 'nocompile/libexec/telnet-gateway.sh')
-rwxr-xr-xnocompile/libexec/telnet-gateway.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/nocompile/libexec/telnet-gateway.sh b/nocompile/libexec/telnet-gateway.sh
index ca2b90d..aac9dd6 100755
--- a/nocompile/libexec/telnet-gateway.sh
+++ b/nocompile/libexec/telnet-gateway.sh
@@ -14,4 +14,8 @@ for i in `seq 5 1`;do
printf "\r%d..." $i
sleep 1
done
-nc $(printf "%s" "$serverURL" | cuturl | grep ^domain | cut '-d ' -f2) 23
+port=$(printf "%s" "$serverURL" | cuturl | grep ^port | cut '-d ' -f2)
+exec ncat -i 600 $(printf "%s" "$serverURL" \
+ | cuturl \
+ | grep ^domain \
+ | cut '-d ' -f2 ) $port