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'