forked from pwncollege/dojo
-
Notifications
You must be signed in to change notification settings - Fork 28
/
Copy path.gdbinit
59 lines (49 loc) · 1.69 KB
/
.gdbinit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# ==========================================
# For Beginner, enable pwndbg & Pwngdb Start
# source /opt/pwndbg/gdbinit.py
# source /opt/Pwngdb/pwngdb.py
# source /opt/Pwngdb/angelheap/gdbinit.py
# define hook-run
# python
# import angelheap
# angelheap.init_angelheap()
# end
# end
# Enable pwndbg & Pwngdb end
# ==========================================
# ==========================================
# For Advanced, enable gef start
# source /opt/gef/gdbinit-gef.py
# Enable gef end
# ==========================================
# ==========================================
# Other configurations
# source /opt/splitmind/gdbinit.py
# source /opt/gef/gdbinit-gef.py
# python
# import splitmind
# (splitmind.Mind()
# .tell_splitter(show_titles=True)
# .tell_splitter(set_title="Main")
# .right(display="backtrace", size="25%")
# .above(of="main", display="disasm", size="80%", banner="top")
# .show("code", on="disasm", banner="none")
# .right(cmd='tty; tail -f /dev/null', size="65%", clearing=False)
# .tell_splitter(set_title='Input / Output')
# .above(display="stack", size="75%")
# .above(display="legend", size="25%")
# .show("regs", on="legend")
# .below(of="backtrace", cmd="ipython", size="30%")
# .show("expressions", on="backtrace")
# .show("args", on="backtrace")
# .show("ghidra", on="backtrace")
# ).build(nobanner=True)
# end
# set context-clear-screen on
# set follow-fork-mode parent
# set context-code-lines 30
# set context-source-code-lines 30
# set context-ghidra always
# set context-sections "regs code disasm stack backtrace expressions args ghidra"
# shell echo tty $(tmux list-panes -F '#P #{pane_tty}' | grep '^3 ' | cut -d' ' -f2) > /tmp/gdb_tmux
# source /tmp/gdb_tmux