Forked from moyix/killbutmakeitlooklikeanaccident.sh
Created
August 15, 2022 04:30
-
-
Save paulolorenzobasilio/5eb11de088dadef38d952586869f0725 to your computer and use it in GitHub Desktop.
Script to inject an exit(0) syscall into a running process. NB: only x86_64 for now!
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
gdb -p "$1" -batch -ex 'set {short}$rip = 0x050f' -ex 'set $rax=231' -ex 'set $rdi=0' -ex 'cont' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment