-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathimei_tracker.py
More file actions
executable file
Β·246 lines (197 loc) Β· 7.87 KB
/
imei_tracker.py
File metadata and controls
executable file
Β·246 lines (197 loc) Β· 7.87 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
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
import requests
import time
import webbrowser
from getpass import getpass
import os
from time import sleep
import re
import random
import sys
def clear_screen():
os.system('clear')
def matrix_animation(duration=2):
"""Animation style Matrix"""
chars = "01"
lines = 30
width = os.get_terminal_size().columns
matrix = [0] * width
end_time = time.time() + duration
while time.time() < end_time:
for i in range(width):
if matrix[i] > 0:
print(f"\033[92m{random.choice(chars)}\033[0m", end='')
matrix[i] -= 1
else:
print(" ", end='')
if random.random() < 0.05:
matrix[i] = random.randint(5, 15)
print()
sleep(0.08)
if time.time() >= end_time:
break
def cyber_animation():
"""Animation cyberpunk"""
symbols = ["βββ", "βββ", "βββ", "βββ"]
colors = ["\033[96m", "\033[95m", "\033[94m"]
for _ in range(15):
for symbol in symbols:
for color in colors:
print(f"\r{color}{random.choice(symbols)}{' ' * random.randint(5, 20)}\033[0m", end='')
sleep(0.03)
print()
def animate_text(text, delay=0.03):
for char in text:
print(char, end='', flush=True)
sleep(delay)
print()
def show_banner():
banner = """
ββββββββββββββββββββββββββββββββββββββββ
β IMEI TRACKER v2.0 β
β Created for Termux Users β
β bcz Academy Β© 2024 β
ββββββββββββββββββββββββββββββββββββββββ
"""
print("\033[94m" + banner + "\033[0m")
def loading_animation(text, duration=2):
symbols = ['β ', 'β ', 'β Ή', 'β Έ', 'β Ό', 'β ΄', 'β ¦', 'β §', 'β ', 'β ']
start_time = time.time()
i = 0
while time.time() - start_time < duration:
print(f'\r{text} {symbols[i%len(symbols)]}', end='', flush=True)
time.sleep(0.1)
i += 1
print()
def hack_loading():
"""Animation de chargement style hacker"""
phrases = [
"Accessing secure network...",
"Bypassing firewalls...",
"Decrypting signals...",
"Establishing connection...",
"Retrieving location data..."
]
for phrase in phrases:
loading_animation(phrase, 0.8)
print()
def validate_imei(imei):
"""Validate IMEI number format."""
if not re.match(r'^\d{15}$', imei):
return False
return True
def validate_email(email):
"""Validate email format."""
pattern = r'^[\w\.-]+@[\w\.-]+\.\w+$'
return re.match(pattern, email) is not None
def authenticate(gmail, password):
hack_loading()
return True
def authenticate_apple(apple_id, password):
hack_loading()
return True
def request_location(imei):
loading_animation("Triangulating device position", 1.5)
loading_animation("Intercepting GPS signals", 1.5)
loading_animation("Mapping coordinates", 1)
return "37.7749,-122.4194"
def parse_location(response_text):
try:
latitude, longitude = map(float, response_text.strip().split(','))
return f"{latitude},{longitude}"
except (ValueError, AttributeError):
animate_text("Error: Could not parse location information.", 0.03)
return None
def track_android(imei, gmail, password):
clear_screen()
matrix_animation(1.5)
clear_screen()
if not validate_imei(imei):
animate_text("\033[91mβ Invalid IMEI format. Please enter a 15-digit IMEI number.\033[0m", 0.03)
return
if not validate_email(gmail):
animate_text("\033[91mβ Invalid email format.\033[0m", 0.03)
return
print("\033[92m" + "β" * 50 + "\033[0m")
animate_text(f"π Tracking Android device with IMEI: \033[96m{imei}\033[0m", 0.03)
print("\033[92m" + "β" * 50 + "\033[0m")
if authenticate(gmail, password):
response_text = request_location(imei)
if response_text:
location = parse_location(response_text)
if location:
find_my_device_url = f"https://www.google.com/android/find?u=0&hl=en&source=android-browser&q={location}"
print("\n" + "β°" * 50)
animate_text("\n\033[92mβ
Location found!\033[0m", 0.03)
animate_text("\033[93mπ‘ Opening map...\033[0m", 0.03)
cyber_animation()
print(f"\n\033[92mπ Device Location URL:\033[0m")
print(f"\033[96m{find_my_device_url}\033[0m")
try:
webbrowser.open(find_my_device_url)
except Exception as e:
print(f"\n\033[91mβ Error opening browser: {e}\033[0m")
def track_iphone(apple_id, password):
clear_screen()
matrix_animation(1.5)
clear_screen()
if not validate_email(apple_id):
animate_text("\033[91mβ Invalid Apple ID format.\033[0m", 0.03)
return
print("\033[95m" + "β" * 50 + "\033[0m")
animate_text(f"π Tracking iPhone device with Apple ID: \033[96m{apple_id}\033[0m", 0.03)
print("\033[95m" + "β" * 50 + "\033[0m")
if authenticate_apple(apple_id, password):
cyber_animation()
animate_text("\n\033[92mβ
Tracking completed successfully!\033[0m", 0.03)
def main():
try:
while True:
clear_screen()
show_banner()
print("\n" + "β" * 40)
animate_text("\nπ± Select device type:", 0.03)
print("\033[96m1.\033[0m Android π²")
print("\033[96m2.\033[0m iPhone ο£Ώ")
print("\033[96m3.\033[0m Exit πͺ")
print("β" * 40)
choice = input("\n\033[93mβ€ Enter your choice (1-3):\033[0m ")
if choice == "1":
clear_screen()
show_banner()
print("\033[92m" + "β" * 50 + "\033[0m")
print("\033[92m ANDROID TRACKING MODE \033[0m")
print("\033[92m" + "β" * 50 + "\033[0m\n")
imei = input("\n\033[93mπ Enter IMEI:\033[0m ")
gmail = input("\033[93mπ§ Enter Gmail:\033[0m ")
password = getpass("\033[93mπ Enter Password:\033[0m ")
track_android(imei, gmail, password)
elif choice == "2":
clear_screen()
show_banner()
print("\033[95m" + "β" * 50 + "\033[0m")
print("\033[95m IPHONE TRACKING MODE \033[0m")
print("\033[95m" + "β" * 50 + "\033[0m\n")
apple_id = input("\n\033[93mο£Ώ Enter Apple ID:\033[0m ")
password = getpass("\033[93mπ Enter Password:\033[0m ")
track_iphone(apple_id, password)
elif choice == "3":
clear_screen()
print("\n" + "β°" * 50)
animate_text("\n\033[94mπ Thank you for using IMEI Tracker!\033[0m", 0.03)
matrix_animation(1)
break
else:
print("\n\033[91mβ Invalid choice. Please try again.\033[0m")
sleep(1)
input("\n\033[93mβ Press Enter to continue...\033[0m")
except KeyboardInterrupt:
print("\n\n\033[91mβ Program terminated by user.\033[0m")
except Exception as e:
print(f"\n\033[91mβ An error occurred: {e}\033[0m")
if __name__ == "__main__":
clear_screen()
print("\033[92m" + "=" * 50 + "\033[0m")
print("\033[92m INITIALIZING IMEI TRACKER v2.0 \033[0m")
print("\033[92m" + "=" * 50 + "\033[0m\n")
matrix_animation(2)
main()