
This is an automated exploitation script for the Hack The Box machine *Titanic*. It extracts Gitea user hashes via LFI, assists in cracking them, and exploits an ImageMagick vulnerability (CVE-2024-41817) to gain root access via a malicious shared library.
This is an automated exploitation script for the Hack The Box machine Titanic. A full exploitation automation script for the Titanic HTB Linux machine on Hack The Box. Full write Up -> WriteUp.md
It performs the following actions:
gitea.db file via LFI to extract user hashesCVE-2024-41817 (ImageMagick) to gain root access via a malicious shared librarypip install -r requirements.txt
python3 autopwn.py --phase 1
This will fetch the
gitea.dband print hashcat-ready hashes for cracking.
After cracking the developer's password:
python3 autopwn.py --phase 2 --ssh-user developer --ssh-pass <cracked_password>
This phase uploads a malicious shared object and a dummy image to trigger identify_images.sh.
You will then:
bash -p to obtain a root shellgcc (for compiling the malicious .so file)hashcat (external)