If you run:
Code:
sudo apt -y install whois
Then run:
Code:
whois `wget -qO- telnetmyip.com | grep comment | awk {'print $7'}` | grep -iE ^country
You will need to tell wget to use the SOCKS proxy that Tor uses. You can then get the country name you are in. You can then do something graphical with the output. Here is an example:
Code:
$ whois `wget -qO- telnetmyip.com | grep comment | awk {'print $7'}` | grep -iE ^country
country: GB