elif cmd == "clear": print("\n" * 50)
level=1;user=alex;move=E.
The clock ticked past 11 PM. The building’s motion sensors clicked off. Alex was alone. Or so they thought. wireshark game
except KeyboardInterrupt: print("\nExiting...") break
f_type = args[0].lower() f_val = args[1] results = [] Alex was alone
elif cmd == "decode": if not args: print("Usage: decode <base64_string>") continue input_str = "".join(args) try: decoded = base64.b64decode(input_str).decode('utf-8') print(f"[+] Decoded Output: decoded") if "FLAG{" in decoded: print("\n*****************************************") print(f"*** SUCCESS! FLAG FOUND: decoded ***") print("*****************************************") print("\nType 'exit' to quit.") except Exception as e: print(f"[-] Error decoding: Invalid Base64 string.")
# 2. Inject Malicious Traffic (The Signal) # Attacker IP: 10.0.0.66 (External) -> Server 192.168.1.5 # Hiding data in ICMP ping payloads for i, chunk in enumerate(chunks): # We insert them at specific sequence numbers to make them findable seq = 100 + i # Payload looks like normal ping data but contains the chunk hidden_payload = f"PING_DATA_SEQ_i::chunk" p = Packet(self.suspicious_ip, "192.168.1.5", "ICMP", hidden_payload, seq) self.packets.append(p) self.flag_fragments.append(chunk) wireshark game
elif cmd == "status": print(f"\nMission Status:") print(f" - Fragments collected: len(captured_chunks)") if len(captured_chunks) == len(game.flag_fragments): full_b64 = "".join(captured_chunks) print(" - You have all fragments! Combine them and decode them.") print(f" - Combined String: full_b64") else: print(" - Keep analyzing the network traffic.")
The game was never about packets. It was about them. And it had only just begun.
This feature creates a playable game where the user acts as a network analyst, running command-line tools to inspect a simulated network capture and find hidden data.