From 42d9771ba0c2e3491025e24956c995a7db56372c Mon Sep 17 00:00:00 2001 From: Epoch Qwert Date: Sun, 11 Jan 2015 03:01:37 -0600 Subject: fuck if I know. I was just going to add the gateway. >_> --- nocompile/libexec/telnet-gateway.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 nocompile/libexec/telnet-gateway.sh (limited to 'nocompile/libexec/telnet-gateway.sh') diff --git a/nocompile/libexec/telnet-gateway.sh b/nocompile/libexec/telnet-gateway.sh new file mode 100755 index 0000000..ca2b90d --- /dev/null +++ b/nocompile/libexec/telnet-gateway.sh @@ -0,0 +1,17 @@ +#!/bin/bash +grep "^telnet:" /var/www/sites/hacking/links.txt \ + | cat -n +printf "Which do you want to connect to?\nnumber: " +read N +export N=$(printf "%s" "$N" | sed "s/[^0-9]//g") +serverURL=$(grep "^telnet:" /var/www/sites/hacking/links.txt \ + | cut '-d ' -f1 \ + | head -n${N} \ + | tail -n1) +echo "You've selected: $serverURL (#$N)" +printf "connecting in...\n" +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 -- cgit v1.2.3