Advertisement
Guest User

dyarjamal

a guest
Feb 25th, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. #!/usr/bin/python
  2.  
  3. import os
  4. import urllib2
  5. import json
  6.  
  7.  
  8. print("#####################################################")
  9. os.system("figlet IP Tracker")
  10. print("#####################################################")
  11.  
  12. while True:
  13. ip=raw_input("What Your Target IP:")
  14. url = "http://ip-api.com/json/"
  15. response = urllib2.urlopen(url + ip)
  16. data = response.read()
  17. values = json.loads(data)
  18.  
  19.  
  20.  
  21. print(" IP: " + values['query'])
  22. print(" City: " + values['city'])
  23. print(" As: " + values['as'])
  24. print(" Country: " + values['country'])
  25. print(" Status: " + values['status'])
  26. print(" Region: " + values['region'])
  27. print(" Time Zone: " + values['timezone'])
  28.  
  29.  
  30. break
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement