From 368996dede0bf2786af51913eb0569d66c7fe83c Mon Sep 17 00:00:00 2001 From: Alex <61382599+NeffIsBack@users.noreply.github.com> Date: Fri, 11 Aug 2023 14:00:39 +0200 Subject: [PATCH 1/2] Fix configparser error --- cme/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cme/config.py b/cme/config.py index 3bc49cc9..b0103e9a 100644 --- a/cme/config.py +++ b/cme/config.py @@ -16,7 +16,7 @@ config_log = cme_config.getboolean("CME", "log_mode", fallback=False) ignore_opsec = cme_config.getboolean("CME", "ignore_opsec", fallback=False) pwned_label = cme_config.get("CME", "pwn3d_label") audit_mode = cme_config.get("CME", "audit_mode") -reveal_chars_of_pwd = int(cme_config.get("CME", "reveal_chars_of_pwd")) +reveal_chars_of_pwd = int(cme_config.get("CME", "reveal_chars_of_pwd", fallback=0)) # this should probably be put somewhere else, but if it's in the config helpers, there is a circular import def process_secret(text): From 71d2ade361ac719eddee2b7d0eb2986fef3d9907 Mon Sep 17 00:00:00 2001 From: Alex <61382599+NeffIsBack@users.noreply.github.com> Date: Fri, 11 Aug 2023 14:00:48 +0200 Subject: [PATCH 2/2] Introduce more fallbacks --- cme/config.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cme/config.py b/cme/config.py index b0103e9a..eb168faf 100644 --- a/cme/config.py +++ b/cme/config.py @@ -14,8 +14,8 @@ if "CME" not in cme_config.sections(): cme_workspace = cme_config.get("CME", "workspace", fallback="default") config_log = cme_config.getboolean("CME", "log_mode", fallback=False) ignore_opsec = cme_config.getboolean("CME", "ignore_opsec", fallback=False) -pwned_label = cme_config.get("CME", "pwn3d_label") -audit_mode = cme_config.get("CME", "audit_mode") +pwned_label = cme_config.get("CME", "pwn3d_label", fallback="Pwn3d!") +audit_mode = cme_config.get("CME", "audit_mode", fallback=False) reveal_chars_of_pwd = int(cme_config.get("CME", "reveal_chars_of_pwd", fallback=0)) # this should probably be put somewhere else, but if it's in the config helpers, there is a circular import