Posts

Showing posts from August, 2026

TryHackMe - APIWizards Breach CFT

Image
Task 2: Initial Access Q1: Which programming language is a web application written in? Answer: Python Detailed Explanation: Inspecting /home/dev/apiservice reveals Python files (such as api.py and config.py ). The service relies on Python (using standard libraries or frameworks like Flask/FastAPI) to handle incoming requests. Q2: What is the IP address that attacked the web server? Answer: 149.34.244.142 Detailed Explanation: Reviewing Nginx log files under /var/log/nginx/access.log.1 reveals multiple GET requests containing suspicious URL-encoded payloads originating from 149.34.244.142 . Q3: Which vulnerability was found and exploited in the API service? Answer: OS command injection Detailed Explanation: In api.py , the /api/time endpoint took the tz URL parameter and passed it directly to a system shell function (e.g., os.system or subprocess ) without sanitization. This allowed the attacker to append arbitrary OS commands like whoami and id into the web request URL. Q...

TryHackMe - Grand Larceny Auto II CFT

Image
  Grand Larceny Auto 2 — CTF Write-up Introduction The challenge description gives several clues: “The cheat console lies. The vault on your screen lies. The real score is something you have to earn, then prove you earned it.” The important parts were: the flag is not obtained through the cheat console; the vault cannot simply be opened locally; the game communicates with a backend server; some kind of score/progress must be earned; finally, that progress has to be presented to the server correctly. The goal was therefore to reverse-engineer the game's client and reproduce its communication with the backend. 1. Inspecting the game files The challenge provided a Godot game with a .pck file and the game's DLL. Initially, inspecting the PCK with strings already revealed several interesting scripts: res://scripts/GameController.cs res://scripts/CheatConsole.cs res://scripts/CryptoUtil.cs res://scripts/PlayerState.cs res://scripts/SafehouseVault.cs res://s...