-
-
Notifications
You must be signed in to change notification settings - Fork 739
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
Add support for registers in target remote
post hook
#1131
Comments
This seems very strange to me, I will look into it. Can you provide a complete reproduction case of what you're trying to test (command lines, binaries, scripts...)? |
All the files you need should be located in here. Just unzip and run |
looks like it's not setting up gef-remote at all. It's trying to read local maps. Very strange that it actually has the arch set correctly, though. |
Yeah, pwntools runs |
@hugsy Any updates on this? |
@Legoclones Hi, yes thanks to your repro, I've been able to reproduce the issue, but had little time to work on a proper solution. Note that this is very much a workaround, not an actual fix. Unfortunately, I haven't had the time lately to work seriously on this. |
For tracking: the fix for this issue will be part of a bigger work, tracked in #1149 |
Type of feature request
New architecture support/Existing architecture improvement
Misc
No response
Summary Description
I've been doing exploit development with
pwntools
and GEF together on themips32elr6
architecture. When I useqemu
for remote debugging with pwntool'sgdb.attach()
, it runstarget remote
instead ofgef-remote
.I did my research and found this was discussed in December of 2023 (Gallopsled/pwntools#2264) where the consensus was made to have GEF fix it instead of
pwntools
. This created the #1020 pull request where a remote posthook was created that catches thetarget remote
command and establishes basic functionality. However, it says in the description:It "works" for me, but the main issue I have is that the registers don't propagate because the
registers
command fails.I guess no one else has complained about this yet but I would love it if the registers could at least show up there. Other stuff (like
vmmap
) I don't know if that's possible to show up accurately just based on the data transferred by qemu with remote debugging, but my main request is that registers show up withtarget remote
.Implementation idea/suggestion
Ideally,
pwntools
would just bite the bullet and figure out how to dogef-remote
, but since it was decided that GEF will deal with it, I'm asking here. I also am aware the documentation saysI'm not familiar enough with the GEF or
pwntools
codebases to know the best way to deal with this, but would it be possible to just add theregisters
command or functionality so they show up in this situation? My current workaround is to patch thepwntools
source code to rungef-remote
instead...Existing alternatives?
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: