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/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
1126 days agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
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

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

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