diff --git a/gef.py b/gef.py index 7ce988f7a..727505393 100644 --- a/gef.py +++ b/gef.py @@ -9954,6 +9954,7 @@ def __init__(self) -> None: gef.config["gef.disable_color"] = GefSetting(False, bool, "Disable all colors in GEF") gef.config["gef.tempdir"] = GefSetting(GEF_TEMP_DIR, pathlib.Path, "Directory to use for temporary/cache content", hooks={"on_write": [GefSetting.no_spaces, GefSetting.create_folder_tree]}) gef.config["gef.show_deprecation_warnings"] = GefSetting(True, bool, "Toggle the display of the `deprecated` warnings") + gef.config["gef.show_banner"] = GefSetting(True, bool, "Show the banner when GEF first loads") gef.config["gef.buffer"] = GefSetting(True, bool, "Internally buffer command output until completion") gef.config["gef.bruteforce_main_arena"] = GefSetting(False, bool, "Allow bruteforcing main_arena symbol if everything else fails") gef.config["gef.libc_version"] = GefSetting("", str, "Specify libc version when auto-detection fails") @@ -11883,7 +11884,8 @@ def target_remote_posthook(): reset() assert isinstance(gef, Gef) gef.gdb.load() - gef.gdb.show_banner() + if gef.config["gef.show_banner"]: + gef.gdb.show_banner() # load config if gef.gdb.load_extra_plugins(): diff --git a/tests/commands/gef.py b/tests/commands/gef.py index f883cd80e..92de9347d 100644 --- a/tests/commands/gef.py +++ b/tests/commands/gef.py @@ -30,6 +30,7 @@ def test_cmd_gef_config(self): "gef.follow_child (bool)", "gef.readline_compat (bool)", "gef.show_deprecation_warnings (bool)", + "gef.show_banner (bool)", "gef.tempdir (Path)", "got.function_not_resolved (str)", "got.function_resolved (str)",