Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed magic function #14

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

alexpark07
Copy link

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
Copy link
Owner

scwuaptx commented Aug 5, 2017

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
Copy link
Author

perfect!
I totally agreed with you.

Thanks,
-Alex

@RoderickChan
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants