Skip to content

Commit

Permalink
Fix escaping issue in banner display
Browse files Browse the repository at this point in the history
  • Loading branch information
chvancooten committed Dec 21, 2023
1 parent caa0ea5 commit 70bf4c3
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions NimPlant.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

def print_banner():
print(
"""
r"""
* *(# #
** **(## ##
######## ( ********
Expand Down Expand Up @@ -130,7 +130,12 @@ def compile_nim(binary_type, xor_key, debug=False):

# Enable Ekko sleep mask if defined in config.toml, but only for self-contained executables
sleep_mask_enabled = config["nimplant"]["sleepMask"]
if sleep_mask_enabled and binary_type not in ["exe", "exe-selfdelete", "dll", "raw"]:
if sleep_mask_enabled and binary_type not in [
"exe",
"exe-selfdelete",
"dll",
"raw",
]:
print(" ERROR: Ekko sleep mask is only supported for executables!")
print(f" Compiling {binary_type} without sleep mask...")
sleep_mask_enabled = False
Expand Down Expand Up @@ -201,7 +206,6 @@ def compile_nim(binary_type, xor_key, debug=False):

if len(sys.argv) > 1:
if sys.argv[1] == "compile":

if len(sys.argv) > 3 and sys.argv[3] in ["nim", "nim-debug"]:
implant = sys.argv[3]
else:
Expand Down

0 comments on commit 70bf4c3

Please sign in to comment.