- Machine
- Socket
- OS
- Linux
- Difficulty
- Medium
- Steps
- 3
- Added
- 15 Jul 2023
A WebSocket SQL injection dumps credentials for a user; a sudo PyInstaller build script gives root.
How it went
- 0nmap
An all-ports nmap scan finds a web app and a WebSocket service on 5789.
- 1WebSocket SQLi
The WebSocket's version query is injectable; a SQLmap proxy dumps the SQLite database and credentials.
- 2tkeller
A cracked hash plus a known username logs in over SSH as tkeller for the user flag.
- 3sudo PyInstaller
tkeller can sudo a PyInstaller build script; a malicious .spec file injects a subprocess call that runs as root.