Skip to content

Instantly share code, notes, and snippets.

@sneppy
Created March 10, 2019 20:37
Show Gist options
  • Save sneppy/d38cf6e714444224c0d2c7a5ec7b31a8 to your computer and use it in GitHub Desktop.
Save sneppy/d38cf6e714444224c0d2c7a5ec7b31a8 to your computer and use it in GitHub Desktop.
Simple shell program to disasm a function of a C/C++ program (requires gdb)
#!/bin/bash
# Call GDB with batch
gdb -batch -ex "file $1" -ex "disas $2"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment