axcheron / pyvmx-cracker

Simple tool to crack VMware VMX encryption passwords
MIT License
62 stars 12 forks source link

Invalid VMX file or the VMX is not encrypted #1

Open PandaCoderHa opened 1 year ago

PandaCoderHa commented 1 year ago

Vmware:17.0.1 build-21139696

archidote commented 11 months ago

Hi, I've just looked into the problem in more detail to understand why you had this error (and so did I). the answer is very simple. VMware Workstation has slightly changed the structure of its file for VMware Workstation 17 by adding a few lines in + (2) starting from the top. And as the detection of the "encryption.keySafe" key is based on the "N" line, that's why it didn't work anymore :/.

Change the ligne :

[-] if 'encryption.keySafe' not in lines[2] 
[+] if 'encryption.keySafe' not in lines[4]

Here is the result according to my case with a password which is already recorded in the provided wordlist ^^ (just for test) :

Starting pyvmx-cracker...

[*] KeySafe information...
[...]

[*] Starting bruteforce...

[*] Password Found = qwerty