How to Debug binary

From HyperSecurity Wiki
Revision as of 04:03, 5 May 2025 by Srapaz (talk | contribs)
(diff) ←Older revision | view current revision (diff) | Newer revision→ (diff)
Jump to: navigation, search

gdb is a GNU debugger that is used to debug binary files.

Installing gbd

apt install gdb

Debugging

gdb --args {binary}

gbd Commands

gdb = general debugging of binary
bt = backtrace

Valggrind is a memory leak analizer that checks binary files for memory issues in debug mode.

Installing Valgrind

apt install valgrind

Valgrind Commands

valgrind  {binary}