-
Notifications
You must be signed in to change notification settings - Fork 1.7k
ROP should also use __setattr__ to automatically set register values with setRegisters #1636
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
Comments
Hi,
But what should go on the right hand side of the assignment? A tuple? e.g.
This looks a bit ugly to me, but I'm not sure what else we can do.
Thanks, |
Yes, this is a good option, but I don't think this would be required. Most will actually use it with a single register name. A pretty pretty option would be to allow something like this: rop = ROP(context.binary)
rop(rax=0xdead, rdi=0xbeef, rsi=0xcafe) |
Indeed the |
I like the __call__ interface, can we make it so that it takes kwargs *or*
a dict? I know we can just do **dict but not everybody knows that.
On Sun, Sep 27, 2020 at 11:51 PM Mariusz Skoneczko ***@***.***> wrote:
Indeed the __call__ interface @Arusekk <https://github.com/Arusekk>
proposes appears quite pleasant. Any other opinions?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#1636 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAA3IGEJ4YERBGGJSKW24V3SIAI6DANCNFSM4OWJKL2Q>
.
--
*Zach Riggle*
|
See #1681 |
Please see my PR #1688 |
Currently, if you have a ROP gadget that has a
pop eax; ret
gadget, you can accessROP.eax
and get the gadget information.This should work in the other direction, so that setting e.g.
rop.rax = 0xdeadbeef
adds the correct data to the stack.The text was updated successfully, but these errors were encountered: