meuip 1014 B

1234567891011121314151617181920212223
  1. #!/usr/bin/env python3
  2. import requests
  3. from colorama import Fore, Back, Style
  4. from bs4 import BeautifulSoup
  5. import locale
  6. headers = {"User-agent" : "Mozilla/5.0 (Windows NT 10.0; WOW64; rv:78.0) Gecko/20100101 Firefox/78.0"};
  7. try:
  8. r = requests.get("https://wtfismyip.com/xml", headers=headers);
  9. r.encoding = "unicode"
  10. except:
  11. print("Falha ao enviar requisição", file=sys.stderr);
  12. exit();
  13. soup = BeautifulSoup(r.text, "lxml");
  14. print( Fore.GREEN+"IP: "+Fore.YELLOW+str(soup.find("your-fucking-ip-address").text ) );
  15. print( Fore.GREEN+"Localização: "+Fore.YELLOW+str(soup.find("your-fucking-location").text ) );
  16. print( Fore.GREEN+"Hostname: "+Fore.YELLOW+str(soup.find("your-fucking-hostname").text ) );
  17. print( Fore.GREEN+"ISP: "+Fore.YELLOW+str(soup.find("your-fucking-isp").text ) );
  18. print( Fore.GREEN+"Tor: "+Fore.YELLOW+str(soup.find("your-fucking-tor-exit").text ) );
  19. print( Fore.GREEN+"Código do país: "+Fore.YELLOW+str(soup.find("your-fucking-country-code").text )+Style.RESET_ALL );