From 318b3220d191011bb9132efd4dbd5e6fb467b4e7 Mon Sep 17 00:00:00 2001 From: epochqwert Date: Tue, 21 Apr 2015 13:41:40 -0500 Subject: made dcchelper a script instead of a c program. ipdist which gives shortest distance based on whob's output of lat and lon nc.* are minmal versions of a netcat like program written in Perl. rfc is a script for downloading and viewing RFCs tpb.sh is for pulling magnet links from tpb search results. cuturl got an upgrade to better handle scheme:?query_string type URLs. (URN? URI? fuck if I know.) --- nocompile/bin/dcchelper | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 nocompile/bin/dcchelper (limited to 'nocompile/bin/dcchelper') diff --git a/nocompile/bin/dcchelper b/nocompile/bin/dcchelper new file mode 100755 index 0000000..d4f3fc9 --- /dev/null +++ b/nocompile/bin/dcchelper @@ -0,0 +1,10 @@ +#!/bin/sh +hop0="$(hop0 "$1")" +if [ "$hop0" = "192.168.0.2" ];then + if ! printf "%s" "$1" | grep "^192\.168\.0\." 2>&1 >/dev/null;then + IP=$(dig +short armitage.hacking.allowed.org @8.8.8.8) + fi +else + IP=$hop0 +fi +ipconvert "$IP" | grep "^dec: " | cut '-d ' -f2 -- cgit v1.2.3