Skip to content

Instantly share code, notes, and snippets.

View bilger321's full-sized avatar
🐧

Jacob Bilger bilger321

🐧
View GitHub Profile
@bilger321
bilger321 / killbutmakeitlooklikeanaccident.sh
Created July 17, 2022 17:34 — forked from moyix/killbutmakeitlooklikeanaccident.sh
Script to inject an exit(0) syscall into a running process. NB: only x86_64 for now!
#!/bin/bash
gdb -p "$1" -batch -ex 'set {short}$rip = 0x050f' -ex 'set $rax=231' -ex 'set $rdi=0' -ex 'cont'
@bilger321
bilger321 / killbutmakeitlooklikeanaccident.sh
Created July 17, 2022 17:34 — forked from moyix/killbutmakeitlooklikeanaccident.sh
Script to inject an exit(0) syscall into a running process. NB: only x86_64 for now!
#!/bin/bash
gdb -p "$1" -batch -ex 'set {short}$rip = 0x050f' -ex 'set $rax=231' -ex 'set $rdi=0' -ex 'cont'