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

Print stack #637

Closed
wants to merge 3 commits into from
Closed

Print stack #637

wants to merge 3 commits into from

Conversation

qwetboy10
Copy link

Print stack command

Description/Motivation/Screenshots

Prints the current stack frame. Inspired by the same command from pwndbg. This is useful when the context view of the stack isn't big enough, and you just want a quick look at the stack. This command is pretty much just an alias to dereference ($rbp - $rsp)/8

How Has This Been Tested?

Architecture Yes/No Comments
x86-32 ✖️
x86-64 ✔️
ARM ✖️
AARCH64 ✖️
MIPS ✖️
POWERPC ✖️
SPARC ✖️
RISC-V ✖️
make tests ✖️

Checklist

  • My PR was done against the dev branch, not master.
  • My code follows the code style of this project.
  • My change includes a change to the documentation, if required.
  • My change adds tests as appropriate.
  • I have read and agree to the CONTRIBUTING document.

@hugsy
Copy link
Owner

hugsy commented Apr 8, 2021

A stack command already exists https://github.com/hugsy/gef-extras/blob/master/scripts/stack.py . I am not sure what your command is adding to it. Can you elaborate?

@qwetboy10
Copy link
Author

I didn't know that command existed. It seems like a better version than mine though. Is gef-extras part of gef, or a separate tool?

@hugsy
Copy link
Owner

hugsy commented Apr 8, 2021

gef-extras is an open community-driven repo for gef, but easily installable on top of it:
https://gef.readthedocs.io/en/master/#additional-commands

@hugsy hugsy closed this Apr 9, 2021
@hugsy hugsy added the duplicate label Apr 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants