Update Assets/random_tip.py
This commit is contained in:
@ -95,9 +95,59 @@ TIPS = [
|
||||
"🚦 Review network traffic for abnormal TTL values."
|
||||
]
|
||||
|
||||
# Cybersecurity jokes
|
||||
JOKES = [
|
||||
"🤖 Why did the hacker cross the road? To get to the other .NET.",
|
||||
"❄️ Why was the computer cold? It left its Windows open.",
|
||||
"🪥 How do hackers freshen their breath? With CyberTic Tac!",
|
||||
"❤️🩹 Why don't hackers ever get into relationships? They're afraid of commitments.",
|
||||
"🐾 What do you call a hacker who loves animals? A purr-sistence threat!",
|
||||
"💸 Why did the server go broke? It lost all its cache.",
|
||||
"😂 How do you make a malware laugh? Give it a worm joke!",
|
||||
"📉 Why did the sysadmin go broke? Too many root expenses.",
|
||||
"🥣 What’s a hacker’s favorite kind of cereal? Spy-ders!",
|
||||
"🛡️ Why did the password break up with the hacker? It was too weak.",
|
||||
"🔒 Why are cybersecurity experts bad at telling jokes? They always encrypt the punchline.",
|
||||
"🎵 What’s a hacker’s favorite music genre? Phishing!",
|
||||
"👓 Why do hackers wear glasses? Because they lost their focus.",
|
||||
"📶 Why did the WiFi break up with the laptop? It found a stronger connection.",
|
||||
"😌 Why was the antivirus program so relaxed? It knew how to quarantine stress.",
|
||||
"🍁 What’s a hacker’s favorite season? Phall.",
|
||||
"🌑 Why do programmers prefer dark mode? Because light attracts bugs.",
|
||||
"🚩 What’s a hacker’s favorite game? Capture the flag!",
|
||||
"☠️ Why don’t hackers get along with pirates? Too many patches.",
|
||||
"🎉 How do you throw a cybersecurity party? Invite everyone to the LAN!",
|
||||
"🔥 Why was the firewall so happy? It finally blocked its ex.",
|
||||
"🔑 Why was the keyboard locked out of the server room? Too many CAPS.",
|
||||
"🍺 What’s a hacker’s least favorite drink? Root beer.",
|
||||
"⚾ Why was the hacker bad at baseball? It couldn’t handle the curve (encryption).",
|
||||
"☕ How do cybersecurity experts like their coffee? Encrypted.",
|
||||
"😭 Why did the antivirus cry? It couldn’t handle the worm.",
|
||||
"🤫 Why don’t hackers tell secrets? They’re worried about key-loggers.",
|
||||
"🏕️ Why don’t hackers go camping? Too many phishing attacks.",
|
||||
"💃 What’s a hacker’s favorite dance? The worm.",
|
||||
"🐴 Why was the Trojan horse so good at infiltration? It always had the ‘write’ access.",
|
||||
"🧗 What’s the cybersecurity expert’s favorite sport? Fire-wall climbing.",
|
||||
"🕵️♂️ Why was the hacker great at hide-and-seek? It always hid in the registry.",
|
||||
"🛜 What did the router say to the server? You’ve got the bandwidth for this!",
|
||||
"🍽️ What’s a phishing scammer’s favorite dish? Spam.",
|
||||
"🌞 Why don’t hackers get sunburned? They stay in the shadows.",
|
||||
"🧑🔬 What do you call a group of math and science geeks at a party? Social engineers.",
|
||||
"🌐 What’s the best way to catch a runaway robot? Use a botnet.",
|
||||
"🐛 Why did the programmer leave the camping trip early? There were too many bugs."
|
||||
]
|
||||
|
||||
COLORS = [Fore.RED, Fore.GREEN, Fore.BLUE, Fore.MAGENTA, Fore.CYAN, Fore.YELLOW, Fore.WHITE]
|
||||
|
||||
def get_random_tip_with_color():
|
||||
tip = random.choice(TIPS)
|
||||
"""
|
||||
Returns a random cybersecurity tip or joke with a random color.
|
||||
"""
|
||||
item = random.choice(TIPS + JOKES)
|
||||
color = random.choice(COLORS)
|
||||
return f"{color}{tip}{Style.RESET_ALL}"
|
||||
return f"{color}{item}{Style.RESET_ALL}"
|
||||
|
||||
# Example usage
|
||||
if __name__ == "__main__":
|
||||
for _ in range(5): # Display 5 random tips or jokes
|
||||
print(get_random_tip_or_joke_with_color())
|
Reference in New Issue
Block a user