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'
#!/bin/sh
. /etc/profile
# TO RUN THIS FILE: bash <(curl -ks [external web/intranet location of this file] );
# ALIASES WILL BE LOADED AND AVAILABLE ON THE MACHINE.
# FEEL FREE TO ADD YOUR OWN. I HAD TO REMOVE MANY CUSTOM SCRIPTS STORED ON OLD JOB SERVERS.
# TO NOT AFFECT FORMATTING THE BELOW EXAMPLE HAS REPLACED OPEN/CLOSE PARENTHESIS WITH BRACES.
# EXAMPLE FORMAT:
#==================#Helpful subsection title#=================={}
# alias_name{} { commands go here; }