Pwngdb
Pwngdb copied to clipboard
fixed magic function
Hi scwuaptx, I'm a big fan of Pwngdb.
BTW, I like function named 'magic' that shows lots of information when I dig. I, however, found something wrong information when magic shows out.
for examples:
$ magic
<snip>
stdout(-0x7ffff71e1d18) : 0x00007ffff7bb0620
</snip>
$ print &stdout
$5 = (struct _IO_FILE **) 0x6092e8 <stdout>
magic shows me stdout is located at '0x7ffff71e1d18'. I think, it should be "0x6092e8" or "0x6092e8-codebase".
Please consider this request. Thanks, -Alex
If show the offset of stdout in codebase in magic function, it may be confusing with other function. I Let me think about a better solution for this problem.
perfect! I totally agreed with you.
Thanks, -Alex
This magic-function bug hasn't been solved.... How about finding stdin/stdout/stderr from libc.so's segments directly?