summaryrefslogtreecommitdiff
path: root/nocompile
diff options
context:
space:
mode:
Diffstat (limited to 'nocompile')
-rwxr-xr-xnocompile/bin/decode_html_entities4
-rwxr-xr-xnocompile/bin/encode_html_entities4
-rwxr-xr-xnocompile/bin/todo2
-rwxr-xr-xnocompile/libexec/telnet-gateway.sh19
4 files changed, 20 insertions, 9 deletions
diff --git a/nocompile/bin/decode_html_entities b/nocompile/bin/decode_html_entities
new file mode 100755
index 0000000..08bd7c9
--- /dev/null
+++ b/nocompile/bin/decode_html_entities
@@ -0,0 +1,4 @@
+#!/bin/sh
+sed "s/\>/>/g" \
+ | sed "s/\&lt;/</g" \
+ | sed "s/\&amp;/\&/g"
diff --git a/nocompile/bin/encode_html_entities b/nocompile/bin/encode_html_entities
new file mode 100755
index 0000000..4cb1836
--- /dev/null
+++ b/nocompile/bin/encode_html_entities
@@ -0,0 +1,4 @@
+#!/bin/sh
+sed "s/&/\&amp;/g" \
+ | sed "s/</\&lt;/g" \
+ | sed "s/>/\&gt;/g"
diff --git a/nocompile/bin/todo b/nocompile/bin/todo
new file mode 100755
index 0000000..611a25b
--- /dev/null
+++ b/nocompile/bin/todo
@@ -0,0 +1,2 @@
+#!/bin/sh
+cat -n /var/todo/$USER.txt | shuffle -f-| head -n1
diff --git a/nocompile/libexec/telnet-gateway.sh b/nocompile/libexec/telnet-gateway.sh
index aac9dd6..5b98cde 100755
--- a/nocompile/libexec/telnet-gateway.sh
+++ b/nocompile/libexec/telnet-gateway.sh
@@ -1,4 +1,7 @@
#!/bin/bash
+export PATH=$PATH:/usr/local/bin:/usr/pkg/bin
+export CUTURL_PORT=23
+
grep "^telnet:" /var/www/sites/hacking/links.txt \
| cat -n
printf "Which do you want to connect to?\nnumber: "
@@ -10,12 +13,10 @@ serverURL=$(grep "^telnet:" /var/www/sites/hacking/links.txt \
| 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
-port=$(printf "%s" "$serverURL" | cuturl | grep ^port | cut '-d ' -f2)
-exec ncat -i 600 $(printf "%s" "$serverURL" \
- | cuturl \
- | grep ^domain \
- | cut '-d ' -f2 ) $port
+#for i in `seq 5 1`;do
+# printf "\r%d..." $i
+# sleep 1
+#done
+port=$(printf "%s" "$serverURL" | cuturl --port)
+#yes ncat. I *really* meant 10 minutes. why force me to use ms for that?
+exec ncat -i 600000ms $(printf "%s" "$serverURL" | cuturl --domain ) $port