How to Preserve 64-bit Register Values When Using movl in x86_64 ROP Constraints
In x86 64 machine code, when the
For example, if I and then call is there a way to use
I cant use
movl instruction is used with a register destination, it zeroes the higher order bytes of the 64 bit register. How can I use movl while preserving the original value of the full 64-bit register?For example, if I and then call is there a way to use
movl or perform some other operations after movl so that %rdx retains the original value of %rsp?I cant use
movq bcus in my current situation *a ROP attack, only movl instructions are available in my gadget farm actually. I also have access to andb, orb, cmpb, and testb instructions