Skip to content

Instantly share code, notes, and snippets.

Created February 5, 2022 22:51
Star You must be signed in to star a gist
What would you like to do?
Script to inject an exit(0) syscall into a running process. NB: only x86_64 for now!
gdb -p "$1" -batch -ex 'set {short}$rip = 0x050f' -ex 'set $rax=231' -ex 'set $rdi=0' -ex 'cont'
Copy link

mgalgs commented Jul 29, 2022


Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment