Skip to content

Instantly share code, notes, and snippets.

@rtldg
Created September 16, 2021 02:34
Show Gist options
  • Save rtldg/74435d792458ae8f4a70f321e48f586e to your computer and use it in GitHub Desktop.
Save rtldg/74435d792458ae8f4a70f321e48f586e to your computer and use it in GitHub Desktop.
export blah="$(grep client.so /proc/$(pidof hl2_linux)/maps | head -n 1 | cut -d - -f1)" ; export DDDD="$(printf "0x%X\n" $((0x$blah + 0x3c856f)))" ; export FFFD="$(printf "0x%X\n" $(($DDDD + 4)))" ; grep -a -insecure "/proc/$(pidof hl2_linux)/cmdline" && sudo gdb -p $(pidof hl2_linux) -ex "set {int}$DDDD = 0x90909090" -ex "set {short}$FFFD = 0x9090" -batch
@rtldg
Copy link
Author

rtldg commented Mar 27, 2024

the requirements

  • native linux cs:s
  • zsh (because of the hexadecimal stuff)
  • gdb (a 32-bit / multilib one?)

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