Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
command robustness improvements and graceful errors (#185)
* search: fix --word -2 param and allow --short in reflect to --type short Search failed when using the --word (-2) parameter as 'word' was not found in the type lookup. Using 'word' instead of 'short' seems to be the better option as that matches better in this context. * search: more robust and graceful error messages for invalid input This makes error messages for wrong input more graceful instead of dying and printing an ugly full traceback exception. * harden hexdump and telescope commands against malformed arguments * only allow retaddr and canary commands when in running mode * xor: gracefully complain on invalid memory address * next: check if proc is alive while continuing to avoid exceptions If the program terminates while we are still looping/continuing for the according next command, then an internal gdb.error is thrown as the program is not being run. We avoid such situations by adding the proc.alive to the looping conditions. * memory: force write_memory to be bytes for python2 gdb * catch general gdb.error instead of specific gdb.MemoryError
- Loading branch information
1 parent
1869b8a
commit 433bf23
Showing
8 changed files
with
50 additions
and
17 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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