Executable and Linkable Format (ELF), is the default binary format on Linux-based systems.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| mod gdb_break; | |
| pub fn main() { | |
| // this will create a new tmux session with gdb | |
| // To let the program continue run `detach` in gdb and close it | |
| gdb_break(); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #define STR(x) #x | |
| #define TO_S(x) STR(x) | |
| __asm__("int3; nop " TO_S(__LINE__) ::: "memory"); |
Note: This gist may be outdated, thanks to all contributors in comments.
adb is the Android CLI tool with which you can interact with your android device, from your PC
You must enable developer mode (tap 7 times on the build version in parameters) and install adb on your PC.
Don't hesitate to read comments, there is useful tips, thanks guys for this !
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| set -xe | |
| # This script takes as a parameter the name of the VM | |
| # and creates a linked clone | |
| # Ref: https://unix.stackexchange.com/a/33584 | |
| # The scripts assumes that it runs from the same folder | |
| # where the vm image is located and it coincides with the | |
| # image name |
