, ,

GDB hook .gdbinit

Ahmad Avatar

GDB hook that helps without third-party apps

set disassembly-flavor intel
define hook-stop
info register eax
info register ebx
info register ecx
info register edx
info register ebp
info register esp
info register edi
info register eip
 
echo OPCODE ->\r\n
 
x/10i $pc
 
echo ESP ->\r\n
x/16w $esp
echo EBP ->\r\n
 
x/16w $ebp
end

Enjoying this article?

Subscribe to get new posts delivered straight to your inbox. No spam, unsubscribe anytime.

No spam. Unsubscribe anytime.

You may also like

See All blog →

Leave a Comment

Your email address will not be published. Required fields are marked *

*

This site uses Akismet to reduce spam. Learn how your comment data is processed.