-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPrank_Hack.py
More file actions
52 lines (41 loc) · 1.7 KB
/
Prank_Hack.py
File metadata and controls
52 lines (41 loc) · 1.7 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
import time
import random
import os
from colorama import Fore, Back, Style, init
# Initialize colorama
init(autoreset=True)
# Clear the screen to make it look fresh
def clear_screen():
os.system('cls' if os.name == 'nt' else 'clear')
# Fake Data ID generator (just random numbers with some characters)
def generate_data_id():
return f"{random.randint(1000, 9999)}-{random.choice(['A', 'B', 'C', 'D', 'E'])}{random.randint(1000, 9999)}"
# Fake encrypted data (random alphanumeric strings)
def generate_encrypted_data():
return ''.join(random.choices('0123456789ABCDEF', k=16))
# Simulate hacking with random data streams and errors
def simulate_hack():
clear_screen()
for _ in range(100):
data_id = generate_data_id()
encrypted_data = generate_encrypted_data()
# Random colors for the "hacked" effect
color = random.choice([Fore.GREEN, Fore.RED, Fore.YELLOW, Fore.CYAN, Fore.MAGENTA])
# Random choice for displaying normal data or "CRASHING" data
if random.random() > 0.7:
print(Back.RED + color + f"ERROR! Data ID {data_id} compromised!" + Style.RESET_ALL)
else:
print(color + f"Data ID: {data_id} | Encrypted Data: {encrypted_data}")
# Random sleep for hacking effect
time.sleep(random.uniform(0.01, 0.05))
# Random screen flashes
if random.random() > 0.95:
clear_screen()
# At the end, simulate a system crash
for _ in range(10):
print(Back.RED + Fore.WHITE + "SYSTEM CRASHING... DATA LOSS IMMINENT!" + Style.RESET_ALL)
time.sleep(0.5)
clear_screen()
time.sleep(0.5)
# Run the hacking simulation
simulate_hack()