-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathifx.py
More file actions
171 lines (139 loc) · 5.58 KB
/
ifx.py
File metadata and controls
171 lines (139 loc) · 5.58 KB
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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
import os
import time
import fade
import requests
import socket
import subprocess
import phonenumbers
from phonenumbers import carrier, geocoder, timezone
def ip_info():
RED = "\033[91m"
RESET = "\033[0m"
ipl = input("[+] Enter IP: ")
url = requests.get(f"https://ipinfo.io/{ipl}/json").json()
not_f = "not found"
not_fo = fade.purplepink(not_f)
pip = ["IP:", "Hostname:", "City:", "Region:", "Location:", "Country:", "Postal:", "ISP:", "Time zone:", "Anycast", "Open Ports:"]
keys = ["ip", "hostname", "city", "region", "loc", "country", "postal", "org", "timezone", "anycast"]
width = 50
print(f"╔{'═' * width}╗")
open_p = []
for i in range(len(pip) - 1):
print(f" {RED}{pip[i]}{RESET} {url.get(keys[i], not_fo)} ")
print(f"╚{'═' * width}╝")
print(f"╔{'═' * width}╗")
print("port scan.. ▼")
nmapx = subprocess.run(["nmap", "-p-", "--open", ipl], capture_output=True, text=True).stdout
lines = nmapx.split("\n")
for line in lines:
if "/tcp" in line and "open" in line:
port = line.split("/")[0].strip()
open_p.append(port)
open_pd = ', '.join(map(str, open_p)) if open_p else "None"
print(f" {RED}{pip[-1]}{RESET} {open_pd} ")
print(f"╚{'═' * width}╝")
ba = fade.purpleblue("back to home...")
input(ba)
os.system('cls' if os.name == 'nt' else 'clear')
def phoneluixibouffon():
n = input("[+] Enter number (+33 XXX): ") or "+33 0644637111"
try:
np = phonenumbers.parse(n)
if not phonenumbers.is_valid_number(np):
print("Number is not valid")
return
if not phonenumbers.is_possible_number(np):
print("Number is not possible")
return
os.system(f"ignorant {n}")
time.sleep(2)
cr = phonenumbers.region_code_for_number(np)
op = carrier.name_for_number(np, "fr")
em = geocoder.description_for_number(np, "fr")
fi = phonenumbers.format_number(np, phonenumbers.PhoneNumberFormat.INTERNATIONAL)
fm = phonenumbers.format_number_for_mobile_dialing(np, cr, with_formatting=True)
tn = phonenumbers.number_type(np)
tz = timezone.time_zones_for_number(np)
tz_str = ', '.join(tz)
pnum = [
"location: ", "region: ", "time Zone: ", "operator: ",
"valid Number: ", "possible number: ", "international format: ",
"mobile format: ", "original number: ", "E.164 Format: ",
"country code: ", "local number: ", "type: "
]
width = 50
RED = "\033[91m"
RESET = "\033[0m"
print(f"╔{'═' * width}╗")
print("")
print(f" {RED}{pnum[0]}{RESET}{em} ")
print(f" {RED}{pnum[1]}{RESET}{cr} ")
print(f" {RED}{pnum[2]}{RESET}{tz_str} ")
print(f" {RED}{pnum[3]}{RESET}{op} ")
print(f" {RED}{pnum[4]}{RESET}{str(phonenumbers.is_valid_number(np))} ")
print(f" {RED}{pnum[5]}{RESET}{str(phonenumbers.is_possible_number(np))} ")
print(f" {RED}{pnum[6]}{RESET}{fi} ")
print(f" {RED}{pnum[7]}{RESET}{fm} ")
print(f" {RED}{pnum[8]}{RESET}{str(np.national_number)} ")
print(f" {RED}{pnum[9]}{RESET}{phonenumbers.format_number(np, phonenumbers.PhoneNumberFormat.E164)} ")
print(f" {RED}{pnum[10]}{RESET}{str(np.country_code)} ")
print(f" {RED}{pnum[11]}{RESET}{str(np.national_number)} ")
if tn == phonenumbers.PhoneNumberType.MOBILE:
print(f" {RED}{pnum[12]}{RESET}mobile number")
elif tn == phonenumbers.PhoneNumberType.FIXED_LINE:
print(f" {RED}{pnum[12]}{RESET}fixed line number")
else:
print(f" {RED}{pnum[12]}{RESET}not found")
print("")
print(f"╚{'═' * width}╝")
ba = fade.pinkred("back to home...")
input(ba)
os.system('cls' if os.name == 'nt' else 'clear')
except phonenumbers.phonenumberutil.NumberParseException:
print("Error: invalid number format")
except Exception as e:
print(f"Error: {str(e)}")
def mail_info():
e_input = input("[+] enter e-mail address : ") or "google@gmail.com"
email = f"holehe {e_input}"
os.system(email)
ba = fade.pinkred("back to home...")
input(ba)
os.system('cls' if os.name == 'nt' else 'clear')
def menu():
while True:
os.system('cls' if os.name == 'nt' else 'clear')
R = "\033[0m"
f = fade.fire("version termux")
me = f"code by ovax | insta banaxou {R}{f}{R}"
vs = fade.greenblue("v1.3")
banner = f"""
██╗ ███████╗██╗ ██╗ [small osint/tool]
██║ ██╔════╝╚██╗██╔╝ 1 [IP INFO]
██║ █████╗ ╚███╔╝ 2 [EMAIL INFO]
██║ ██╔══╝ ██╔██╗ 3 [NUMBER INFO]
██║ ██║ ██╔╝ ██╗
╚═╝ ╚═╝ ╚═╝ ╚═╝
| 0 exit |
{vs}{R}
{me}
"""
ban = fade.greenblue(banner)
print(ban)
choice = input("Enter a choice : ")
if choice == "1":
ip_info()
elif choice == "2":
mail_info()
elif choice == "3":
phoneluixibouffon()
elif choice == "0":
os.system('cls' if os.name == 'nt' else 'clear')
os.system('cowsay -t "code by ovax"')
time.sleep(3)
break
else:
print("invalid")
time.sleep(3)
os.system('cls' if os.name == 'nt' else 'clear')
menu()