Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions GhostTR.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@ def IP_Track():
print()
print(f' {Wh}============= {Gr}SHOW INFORMATION IP ADDRESS {Wh}=============')
req_api = requests.get(f"http://ipwho.is/{ip}") # API IPWHOIS.IS
ip_data = json.loads(req_api.text)
ip_data = req_api.json()
import pprint
pprint.pprint(ip_data)
time.sleep(2)
print(f"{Wh}\n IP target :{Gr}", ip)
print(f"{Wh} Type IP :{Gr}", ip_data["type"])
Expand Down Expand Up @@ -74,8 +76,7 @@ def IP_Track():
print(f"{Wh} DST :{Gr}", ip_data["timezone"]["is_dst"])
print(f"{Wh} Offset :{Gr}", ip_data["timezone"]["offset"])
print(f"{Wh} UTC :{Gr}", ip_data["timezone"]["utc"])
print(f"{Wh} Current Time :{Gr}", ip_data["timezone"]["current_time"])

print(f"{Wh} Current Time :{Gr}", ip_data.get("timezone", {}).get("current_time", "N/A"))

@is_option
def phoneGW():

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sudo message send

Expand Down