Merge pull request #82 from mpgn/neff-bugfixes

Fix configparser issue with missing configs
main
mpgn 2023-08-11 14:18:16 +02:00 committed by GitHub
commit 12e259970d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -14,9 +14,9 @@ if "CME" not in cme_config.sections():
cme_workspace = cme_config.get("CME", "workspace", fallback="default") cme_workspace = cme_config.get("CME", "workspace", fallback="default")
config_log = cme_config.getboolean("CME", "log_mode", fallback=False) config_log = cme_config.getboolean("CME", "log_mode", fallback=False)
ignore_opsec = cme_config.getboolean("CME", "ignore_opsec", fallback=False) ignore_opsec = cme_config.getboolean("CME", "ignore_opsec", fallback=False)
pwned_label = cme_config.get("CME", "pwn3d_label") pwned_label = cme_config.get("CME", "pwn3d_label", fallback="Pwn3d!")
audit_mode = cme_config.get("CME", "audit_mode") audit_mode = cme_config.get("CME", "audit_mode", fallback=False)
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 # this should probably be put somewhere else, but if it's in the config helpers, there is a circular import
def process_secret(text): def process_secret(text):