summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMalfurious <m@lfurio.us>2023-05-23 17:05:16 -0400
committerMalfurious <m@lfurio.us>2023-05-23 17:20:53 -0400
commit1658a6c2c4a21539d8b0948ba56d99d8da67b572 (patch)
tree27279ecd3893a8f4f8bc0e78390e5687413567fc
parent58c7697180ff43204c615825ca5805e3ba218046 (diff)
downloadrice-1658a6c2c4a21539d8b0948ba56d99d8da67b572.tar.gz
rice-1658a6c2c4a21539d8b0948ba56d99d8da67b572.zip
gdb: Add gdb/gef config
-rw-r--r--.gdbinit1
-rw-r--r--.gef.rc126
-rwxr-xr-xrice/install_pkgs.sh2
3 files changed, 129 insertions, 0 deletions
diff --git a/.gdbinit b/.gdbinit
new file mode 100644
index 0000000..7016ae3
--- /dev/null
+++ b/.gdbinit
@@ -0,0 +1 @@
+source /usr/share/gef/gef.py
diff --git a/.gef.rc b/.gef.rc
new file mode 100644
index 0000000..c2dddba
--- /dev/null
+++ b/.gef.rc
@@ -0,0 +1,126 @@
+[context]
+clear_screen = True
+enable = True
+grow_stack_down = False
+ignore_registers =
+layout = legend threads regs stack trace code args source memory extra
+libc_args = False
+libc_args_path =
+nb_lines_backtrace = 10
+nb_lines_backtrace_before = 2
+nb_lines_code = 16
+nb_lines_code_prev = 10
+nb_lines_stack = 16
+nb_lines_threads = -1
+peek_calls = False
+peek_ret = False
+redirect =
+show_opcodes_size = 0
+show_registers_raw = False
+show_source_code_variable_values = True
+show_stack_raw = True
+
+[dereference]
+max_recursion = 2
+
+[entry-break]
+entrypoint_symbols = main _main __libc_start_main __uClibc_main start _start
+
+[gef]
+autosave_breakpoints_file =
+debug = False
+disable_color = False
+extra_plugins_dir =
+follow_child = True
+readline_compat = False
+show_deprecation_warnings = True
+tempdir = /tmp/gef
+
+[got]
+function_not_resolved = yellow
+function_resolved = green
+
+[heap-analysis-helper]
+check_double_free = True
+check_free_null = False
+check_heap_overlap = True
+check_uaf = True
+check_weird_free = True
+
+[heap-chunks]
+peek_nb_byte = 16
+
+[hexdump]
+always_show_ascii = True
+
+[highlight]
+regex = False
+
+[pattern]
+length = 1024
+
+[pcustom]
+max_depth = 4
+struct_path = /tmp/gef/structs
+structure_name = bold blue
+structure_size = green
+structure_type = bold red
+
+[process-search]
+ps_command = /usr/bin/ps auxww
+
+[syscall-args]
+path = /tmp/gef/syscall-tables
+
+[theme]
+address_code = red
+address_heap = green
+address_stack = pink
+context_title_line = gray
+context_title_message = cyan
+default_title_line = gray
+default_title_message = cyan
+dereference_base_address = cyan
+dereference_code = gray
+dereference_register_value = bold blue
+dereference_string = yellow
+disassemble_current_instruction = green
+old_context = gray
+registers_register_name = blue
+registers_value_changed = bold red
+source_current_line = green
+table_heading = blue
+
+[trace-run]
+max_tracing_recursion = 1
+tracefile_prefix = ./gef-trace-
+
+[aliases]
+ctx = context
+telescope = dereference
+flags = edit-flags
+start = entry-break
+fmtstr-helper = format-string-helper
+hl = highlight
+highlight set = highlight add
+hla = highlight add
+hlc = highlight clear
+highlight ls = highlight list
+hll = highlight list
+highlight delete = highlight remove
+highlight del = highlight remove
+highlight unset = highlight remove
+highlight rm = highlight remove
+hlr = highlight remove
+nb = name-break
+pattern offset = pattern search
+pf = print-format
+ps = process-search
+status = process-status
+lookup = scan
+grep = search-pattern
+xref = search-pattern
+sc-get = shellcode get
+sc-search = shellcode search
+screen-setup = tmux-setup
+
diff --git a/rice/install_pkgs.sh b/rice/install_pkgs.sh
index 543a755..2631455 100755
--- a/rice/install_pkgs.sh
+++ b/rice/install_pkgs.sh
@@ -11,6 +11,8 @@ feh
file
firefox
fish
+gdb
+gef
git
htop
netcat