Skip to content

Instantly share code, notes, and snippets.

@Pixailz
Created January 31, 2024 00:34
Show Gist options
  • Select an option

  • Save Pixailz/bbc8e9a1b6e0aa7afc77368a96d60922 to your computer and use it in GitHub Desktop.

Select an option

Save Pixailz/bbc8e9a1b6e0aa7afc77368a96d60922 to your computer and use it in GitHub Desktop.
attach to the current pid and remove a readonly var without root
#!/bin/bash
gdb -ex 'call (int)unbind_variable("<VAR_NAME>")' --pid=$$ --batch
#gdb -ex 'shell' --pid=$$ --batch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment