Results 1 to 2 of 2

Thread: How to show name and flag of a country that I'm currenty connected through Tor?

  1. #1
    Join Date
    Mar 2023
    Beans
    22

    Question How to show name and flag of a country that I'm currenty connected through Tor?

    Hi there
    I want to show the flag and name of the country that I'm currenty connected through Tor network in the right of top bar.
    tried to use conky but I counldn't.
    currently using ubuntu 22.04

    thanks in advanced.

  2. #2
    Join Date
    May 2010
    Beans
    3,292

    Re: How to show name and flag of a country that I'm currenty connected through Tor?

    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

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •