From c93234845ba3a0b0465223d44772c0d6f35d7740 Mon Sep 17 00:00:00 2001 From: Dobin Rutishauser Date: Wed, 26 Jun 2024 06:33:10 +0200 Subject: [PATCH] feature: setting for disabling the window --- model/settings.py | 1 + phases/injector.py | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/model/settings.py b/model/settings.py index 6203313..a2a8779 100644 --- a/model/settings.py +++ b/model/settings.py @@ -39,6 +39,7 @@ class Settings(): # More self.fix_missing_iat = True + self.patch_show_window = True self.payload_location = PayloadLocation.DATA # directories and filenames diff --git a/phases/injector.py b/phases/injector.py index 3f54408..558d359 100644 --- a/phases/injector.py +++ b/phases/injector.py @@ -143,7 +143,8 @@ class Injector(): self.inject_and_reference_data() # changes from console to UI (no console window) if necessary - self.superpe.patch_subsystem() + if self.settings.patch_show_window: + self.superpe.patch_subsystem() # We done logger.info("--( Write to file: {}".format(exe_out))