From 4e71fb00d6f5e9ae134aed8eb2c110ac1fc28e21 Mon Sep 17 00:00:00 2001 From: Technion Date: Fri, 16 May 2025 19:54:17 +1000 Subject: [PATCH] This python script presents a syntax error when executed: vmwarevmx2hashcat.py:17: SyntaxWarning: invalid escape sequence '\)' ks_re = '.+phrase/(.*?)/pass2key=(.*?):cipher=(.*?):rounds=(.*?):salt=(.*?),(.*?),(.*?)\)' This fixes that error. --- tools/vmwarevmx2hashcat.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/vmwarevmx2hashcat.py b/tools/vmwarevmx2hashcat.py index 015b2a614..f8a004e12 100755 --- a/tools/vmwarevmx2hashcat.py +++ b/tools/vmwarevmx2hashcat.py @@ -14,7 +14,7 @@ from binascii import hexlify import re import base64 -ks_re = '.+phrase/(.*?)/pass2key=(.*?):cipher=(.*?):rounds=(.*?):salt=(.*?),(.*?),(.*?)\)' +ks_re = '.+phrase/(.*?)/pass2key=(.*?):cipher=(.*?):rounds=(.*?):salt=(.*?),(.*?),(.*?)\\)' ks_struct = { 'password_hash': None,