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
keepass-exfil-forensics — Network forensics writeup + tooling for a TryHackMe DFIR challenge: reverses a hex→Base64→XOR exfiltration chain from PCAP traffic, then recovers a KeePass master password from a process memory dump via CVE-2023-32784. | Kitploit
Tools/GitHubGitHub/pugazhendii22/keepass-exfil-forensics
Packet Sniffing & AnalysisPassword CrackingMemory ForensicsExploitationNetwork ForensicsData ExfiltrationDigital ForensicsCTFIncident Response
GitHubpugazhendii22/keepass-exfil-forensics

keepass-exfil-forensics

Network forensics writeup + tooling for a TryHackMe DFIR challenge: reverses a hex→Base64→XOR exfiltration chain from PCAP traffic, then recovers a KeePass master password from a process memory dump via CVE-2023-32784.

View Repository
503 months agoNot yet reviewed
Share

KeePass Memory Exfiltration — Network Forensics Investigation

Recovers exfiltrated data from PCAP traffic by reversing a hex → Base64 → XOR obfuscation chain used in a real DFIR CTF scenario (TryHackMe), then exploits CVE-2023-32784 to recover a KeePass master password straight from a process memory dump.

The Attack, In One Diagram

Victim workstation                          Attacker C2 Server
-------------------                         -------------------
Malicious .ps1 downloaded over HTTP
        |
        v
Downloads ProcDump (legit Sysinternals tool)
        |
        v
Dumps KeePass process memory ---------------------->  port 1337
   (XOR 0x41 + Base64 encoded first)

Steals Database1337.kdbx -------------------------->  port 1338
   (XOR 0x42 + Base64 encoded first)

What's in This Repo

PathDescription
docs/writeup.mdFull step-by-step investigation writeup
decoder.pyGeneralized tool to reverse the hex → Base64 → XOR chain
evidence/xxxmmdcclxxxiv.ps1The recovered malicious PowerShell script

Quick Start

# 1. Extract the raw exfil stream from a pcap with tshark
tshark -r capture.pcapng -T fields -e data \
  -Y "ip.dst == <C2_IP> and tcp.port == <PORT>" > payload.txt

# 2. Reverse the obfuscation
python3 decoder.py payload.txt recovered_file.bin --xor-key 0x41

Key Techniques Demonstrated

  • Network traffic triage with Wireshark (Protocol Hierarchy, Conversations, Export Objects)
  • Fast, scriptable PCAP extraction with tshark (GUI tools don't scale well past a few hundred MB)
  • Reversing a multi-stage obfuscation pipeline (hex encoding → Base64 → XOR)
  • Process memory forensics — extracting a live process's RAM with ProcDump
  • Exploiting CVE-2023-32784 to recover a KeePass master password from a memory dump
  • Targeted dictionary attacks with Hashcat, using a generated candidate wordlist instead of blind brute force

Credits

Investigation based on the TryHackMe room Extracted. Password-recovery technique made possible by keepass-dump-extractor by JorianWoltjer, based on the original CVE-2023-32784 research by vdohney.

Disclaimer

This repo documents a CTF/lab exercise for educational purposes. No real credentials, systems, or data were involved. Flag values and specific captured passwords from the CTF room are intentionally omitted out of respect for TryHackMe's platform guidelines.

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.

    772
  • 2

    ghostlock-app

    yukonga/ghostlock-app

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

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

    420
  • 4

    redforge

    cybersecurity91/redforge

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

    345
  • 5

    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.

    260
  • 6

    antifox

    antifox-ai/antifox

    AI multi-agent autonomous penetration testing platform that runs recon, attack-surface discovery, exploitation validation and evidence-backed report delivery.

    251

Explore all tools

Browse our collection of tools

View all tools →