blob: d4f3fc976e368787983d5d55d6a6c14159d5be02 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
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
|