Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion gef.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down Expand Up @@ -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():
Expand Down
1 change: 1 addition & 0 deletions tests/commands/gef.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)",
Expand Down