Advertisement
egfw

egfw ip lookup v2

Jan 25th, 2024 (edited)
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 2.62 KB | None | 0 0
  1. import requests
  2. import json
  3. import colorama
  4. from colorama import Fore,Style
  5. import time
  6. import os
  7. colorama.init()
  8. def main():
  9.     #changed it to bannner = """" """"
  10.     #banner = ("egfwww a zebiii")
  11.     banner = f"""
  12.  
  13. ███████╗░██████╗░███████╗░██╗░░░░░░░██╗  ██╗██████╗░  ██╗░░░░░░█████╗░░█████╗░██╗░░██╗██╗░░░██╗██████╗░
  14. ██╔════╝██╔════╝░██╔════╝░██║░░██╗░░██║  ██║██╔══██╗  ██║░░░░░██╔══██╗██╔══██╗██║░██╔╝██║░░░██║██╔══██╗
  15. █████╗░░██║░░██╗░█████╗░░░╚██╗████╗██╔╝  ██║██████╔╝  ██║░░░░░██║░░██║██║░░██║█████═╝░██║░░░██║██████╔╝
  16. ██╔══╝░░██║░░╚██╗██╔══╝░░░░████╔═████║░  ██║██╔═══╝░  ██║░░░░░██║░░██║██║░░██║██╔═██╗░██║░░░██║██╔═══╝░
  17. ███████╗╚██████╔╝██║░░░░░░░╚██╔╝░╚██╔╝░  ██║██║░░░░░  ███████╗╚█████╔╝╚█████╔╝██║░╚██╗╚██████╔╝██║░░░░░
  18. ╚══════╝░╚═════╝░╚═╝░░░░░░░░╚═╝░░░╚═╝░░  ╚═╝╚═╝░░░░░  ╚══════╝░╚════╝░░╚════╝░╚═╝░░╚═╝░╚═════╝░╚═╝░░░░░
  19.        
  20.  
  21.     ipinput = input("ip :   " )
  22.     jsonA = requests.get(f"http://ip-api.com/json/{ipinput}").json()
  23.     print(f'Country : {jsonA["country"]}')
  24.     print(f'Region Name : {jsonA["regionName"]}')
  25.     print(f'City : {jsonA["city"]}')
  26.     print(f'Zip : {jsonA["zip"]}')
  27.     print(f'Latitude : {jsonA["lat"]}')
  28.     print(f'Timezone : {jsonA["timezone"]}')
  29.     print(f'Isp : {jsonA["isp"]}')
  30.     print(f'ORG : {jsonA["org"]}')
  31.     print(f'as : {jsonA["as"]}')
  32.     print('going back 10 sec in menu...')
  33.     time.sleep(10)
  34.     os.system("cls")
  35.     main()
  36.  
  37. main()
  38.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement