-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtracker.py
More file actions
31 lines (21 loc) · 766 Bytes
/
tracker.py
File metadata and controls
31 lines (21 loc) · 766 Bytes
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
import json
import requests
import argparse
if __name__=="__main__":
parser=argparse.ArgumentParser()
parser.add_argument("-i","--ip",help="please enter the ip adrress using argumanet -i")
args=parser.parse_args()
ip=args.ip
ip=str(ip)
url="http://ip-api.com/json/"+ip
response=requests.get(url)
out=json.loads(response.content)
print("IP ADDRESS LOCATED")
print("\t[+] IP\t\t\t",out["query"])
print("\t[+] CITY\t\t",out["city"])
print("\t[+] ISP\t\t\t",out["isp"])
print("\t[+] LOCATION\t\t",out["country"])
print("\t[+] TIME\t\t",out["timezone"])
print("\t[+] ZIP\t\t\t",out["zip"])
print("\t[+] LAT\t\t\t",out["lat"])
print("\t[+] LON\t\t\t",out["lon"])