scwuaptx / Pwngdb

gdb for pwn
GNU General Public License v3.0
888 stars 126 forks source link

fixed magic function #14

Open alexpark07 opened 7 years ago

alexpark07 commented 7 years ago

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

scwuaptx commented 7 years ago

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.

alexpark07 commented 7 years ago

perfect! I totally agreed with you.

Thanks, -Alex

RoderickChan commented 3 years ago

This magic-function bug hasn't been solved.... How about finding stdin/stdout/stderr from libc.so's segments directly?