-
Notifications
You must be signed in to change notification settings - Fork 16
/
trackout.py
43 lines (39 loc) · 1.34 KB
/
trackout.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#!/usr/bin/python
#Name : Trackout
#Writer(s) : Abay | abaykan.com
#Description : TrackOut is a simple IP Tracker using Python.
import os
import urllib2
import json
import colorama
colorama.init(autoreset=True)
os.system("clear");
print colorama.Fore.CYAN + """
_____ _ ___ _
/__ \_ __ __ _ ___| | __ /___\_ _| |_
/ /\/ '__/ _` |/ __| |/ /// // | | | __|
/ / | | | (_| | (__| </ \_//| |_| | |_
\/ |_| \__,_|\___|_|\_\___/ \__,_|\__|
Python IP Tracker - Abay | abaykan.com
"""
print "\r"
while True:
ip = raw_input("What Your Target IP : ")
url = "https://api.ipdata.co/"
response = urllib2.urlopen(url + ip)
data = response.read()
values = json.loads(data)
print("------------------------------------")
print "\r"
print(" IP : " + values['ip'])
print(" City : " + values['city'])
print(" Region : " + values['region'])
print(" Country : " + values['country_name'])
print(" Continent : " + values['continent_name'])
print(" Time Zone : " + values['time_zone'])
print(" Currency : " + values['currency'])
print(" Calling Code : " + "+" + values['calling_code'])
print(" Organisation : " + values['organisation'])
print(" ASN : " + values['asn'])
print "\r"
break