From f3a8dc247b1ef84c87950568b823f33790ebb5c1 Mon Sep 17 00:00:00 2001 From: Jeff McJunkin Date: Wed, 29 Jan 2025 09:32:04 -0800 Subject: [PATCH] Update unicorn.py: Python 3.12 raw string changes Closes #177. Figured I'd put this PR in while I was here <3 --- unicorn.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/unicorn.py b/unicorn.py index 9a18f38..4cfbb27 100755 --- a/unicorn.py +++ b/unicorn.py @@ -1234,7 +1234,7 @@ def ms_voodoo_stuff(): ps_help() gen_usage() sys.exit() - elif sys.argv[2] == "macro" and re.search('\.ps1$', sys.argv[1]) is None: # "unicorn.py PATH.ps1 macro" not working, there's a fix + elif sys.argv[2] == "macro" and re.search(r'\.ps1$', sys.argv[1]) is None: # "unicorn.py PATH.ps1 macro" not working, there's a fix macro_help() gen_usage() sys.exit() @@ -1287,7 +1287,7 @@ def ms_voodoo_stuff(): if len(sys.argv) > 2 and sys.argv[2] == "crt": attack_type = "crt" payload = sys.argv[1] - elif re.search('\.ps1$', sys.argv[1]) is not None: + elif re.search(r'\.ps1$', sys.argv[1]) is not None: attack_type = "custom_ps1" ps1path = sys.argv[1]