From d9b8799440c83506760235ada01663ae150020e1 Mon Sep 17 00:00:00 2001 From: divinity76 Date: Fri, 9 Aug 2024 18:00:17 +0200 Subject: [PATCH] fix #1 Fixes https://github.com/axcheron/pyvmx-cracker/issues/1 Thanks to archidote for investigating the issue. --- pyvmx-cracker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyvmx-cracker.py b/pyvmx-cracker.py index 20398db..fc7e602 100644 --- a/pyvmx-cracker.py +++ b/pyvmx-cracker.py @@ -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: