-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathImpulse.py
99 lines (78 loc) ยท 4.12 KB
/
Impulse.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
# Made by gokiimax
# https://github.com/gokiimax
# ====================================================================================================================================== #
import os
import json
import requests
from colorama import Fore
# ====================================================================================================================================== #
# Read config file
f = open("config.json")
data = json.load(f)
# variables
access_key = data['access_key']
# ====================================================================================================================================== #
def banner():
# Clear the console
if os.name == 'nt': # Windows
os.system("cls")
else: # Linux
os.system("clear")
print(f"""{Fore.CYAN}
โโโโโโโ โโโโโโโโโโโ โโโ โโโโโโ โโโโโโโโโโโโโโโโ
โโโโโโโโ โโโโโโโโโโโโโโโโ โโโโโโ โโโโโโโโโโโโโโโโ
โโโโโโโโโโโโโโโโโโโโโโโโโ โโโโโโ โโโโโโโโโโโโโโ
โโโโโโโโโโโโโโโโโโโโโ โโโ โโโโโโ โโโโโโโโโโโโโโ
โโโโโโ โโโ โโโโโโ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โโโโโโ โโโโโโ โโโโโโโ โโโโโโโโโโโโโโโโโโโโโโโโ
{Fore.WHITE}Author:{Fore.CYAN} gokimax
{Fore.WHITE}Github:{Fore.CYAN} https://github.com/gokiimax
""")
# ====================================================================================================================================== #
def check_access_key():
print("Cheking Access Key...")
try:
res = requests.get(f"https://app.numlookupapi.com/v1/status?apikey={access_key}").json()
if res['month']['remaining'] > 0:
print(f"[SUCCESS] ACCESS KEY VALID")
return True
else:
print(f"[ERROR] ACCESS KEY NOT VALID")
return False
except:
print(f"[ERROR] ACCESS KEY NOT VALID")
return False
# ====================================================================================================================================== #
def get_information():
number = input(f"{Fore.CYAN}Enter a phone number: ")
api = f"https://app.numlookupapi.com/v1/validate/{number}?apikey={access_key}"
data = requests.get(api).json()
if data['valid']:
info_text = f"""
โญโ= Information for {number} =โโฎ
โ
โ
โ Valid: {Fore.WHITE}{ 'yes' if data['valid'] else 'no' }{Fore.CYAN}
โ Number: {Fore.WHITE}{ data['number'] }{Fore.CYAN}
โ Carrier: {Fore.WHITE}{ data['carrier'] }{Fore.CYAN}
โ Location: {Fore.WHITE}{ data['location'] if data['location'] else 'No Location given' }{Fore.CYAN}
โ Line Type: {Fore.WHITE}{ data['line_type'] }{Fore.CYAN}
โ Country Code: {Fore.WHITE}{ data['country_code'] }{Fore.CYAN}
โ Country Name: {Fore.WHITE}{ data['country_name'] }{Fore.CYAN}
โ Local Format: {Fore.WHITE}{ data['local_format'] }{Fore.CYAN}
โ Country Prefix: {Fore.WHITE}{ data['country_prefix'] }{Fore.CYAN}
โ International Format: {Fore.WHITE}{ data['international_format'] }{Fore.CYAN}
โ
โฐ= โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ =โฏ
"""
print(info_text)
input("Press any key to continue...")
else:
info_text = f"{Fore.RED}[-] {Number} is not a valid phone number"
print(info_text)
exit(-1)
# ====================================================================================================================================== #
while True:
banner()
if check_access_key():
get_information()