Pwngdb icon indicating copy to clipboard operation
Pwngdb copied to clipboard

fixed magic function

Open alexpark07 opened this issue 6 years ago • 3 comments

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

alexpark07 avatar Aug 03 '17 01:08 alexpark07

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.

scwuaptx avatar Aug 05 '17 13:08 scwuaptx

perfect! I totally agreed with you.

Thanks, -Alex

alexpark07 avatar Aug 07 '17 23:08 alexpark07

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

RoderickChan avatar Jul 02 '21 18:07 RoderickChan