VNC Password Hash Extraction and Decryption
VNC passwords are stored as DES-encrypted blobs using a fixed hardcoded key. The encryption is fully reversible — it is obfuscation, not real protection. From a foothold on the target, pull the blob from the registry or config file and decrypt it instantly to recover the plaintext password.
Storage Locations by VNC Implementation
RealVNC (Windows registry):
TightVNC (Windows registry):
TigerVNC (Windows registry):
UltraVNC (config file):
Look for passwd= and passwd2= lines.
Linux VNC (file):
The password blob is always 8 bytes — 16 hex characters. Sample registry output:
Password REG_BINARY D7A514D8C556AADE
Decryption with openssl
The fixed DES key shared by all VNC implementations is e84ad660c4721ae0. Decrypt directly — no extra tools needed:
Replace D7A514D8C556AADE with your extracted blob. The plaintext password prints to stdout.
Decryption with vncpwd
Works with all major VNC implementations.
Extracting the Blob from a Linux passwd File
Pass the output hex directly to the openssl one-liner above.
Automated Extraction with Metasploit Post Module
Warning
This may be restricted in exams such as OSCP. Verify exam rules before use
Queries all known registry paths, extracts blobs, and decrypts automatically.
What to Do After Decryption
Connect directly:
Also test the password against other services — VNC passwords are frequently reused on SSH, RDP, and SMB:
References
-
PasswordDecryptsgithub.com/frizb/PasswordDecrypts (opens in new tab)
frizb Registry path reference and decryption methods across VNC implementations.
-
Luigi Auriemma Standalone VNC password decoder.
Was this helpful?
Your feedback helps improve this page.