sistema_progs

Programas para customizar o meu entorno de traballo nos meus equipos persoais
Log | Files | Refs

ipinfo (250B)


      1 #!/usr/bin/env sh
      2 
      3 # Description: Shows the external IP address and whois information. Useful over VPNs.
      4 #
      5 # Shell: POSIX compliant
      6 # Author: Arun Prakash Jana
      7 
      8 IP=$(curl -s ifconfig.me)
      9 
     10 whois "$IP"
     11 echo your external IP address is "$IP"
     12 
     13 read -r _