Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
Tools/GitHubGitHub/maikneysm/autopwn-titanic.htb
Password CrackingPrivilege EscalationVulnerability AnalysisExploitationWeb Application ExploitationInformation GatheringCTFPenetration Testing

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share
GitHub
maikneysm/autopwn-titanic.htb

AutoPwn-Titanic.htb

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.

View RepositoryWebsite
1 year agoNot yet reviewed

Titanic AutoPWN - HTB Machine

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

📋 Description

It performs the following actions:

  • Phase 1: Retrieve and parse the gitea.db file via LFI to extract user hashes
  • Assist with hashcat format to crack developer's password (PBKDF2-HMAC-SHA256)
  • Phase 2: Use cracked credentials to connect via SSH and exploit CVE-2024-41817 (ImageMagick) to gain root access via a malicious shared library

🚀 Usage

Step 1: Install dependencies

root@kitploit:~
pip install -r requirements.txt

Step 2: Run Phase 1 (LFI + DB extraction)

root@kitploit:~
python3 autopwn.py --phase 1

This will fetch the gitea.db and print hashcat-ready hashes for cracking.

Step 3: Run Phase 2 (SSH + PrivEsc)

After cracking the developer's password:

root@kitploit:~
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:

  • Connect via SSH
  • Wait a few seconds for the cron to process the image
  • Run bash -p to obtain a root shell

🧾 Requirements

  • Python 3.x
  • gcc (for compiling the malicious .so file)
  • Access to hashcat (external)
Download Tool