Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pyvmx-cracker.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def check_files(vmx, dict):
except (OSError, IOError):
sys.exit('[-] Cannot read from file ' + vmx)

if 'encryption.keySafe' not in lines[2]:
if all('encryption.keySafe' not in line for line in lines):
sys.exit('[-] Invalid VMX file or the VMX is not encrypted')

try:
Expand Down