scripts/getpubip.sh

7 lines
111 B
Bash
Raw Normal View History

2024-02-28 10:04:05 +00:00
#!/bin/sh
IP="`wget -q -O - http://ipecho.net/plain`"
echo $IP
whois $IP | grep country: | cut -d ' ' -f9,10