You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ah, no it's because of a rogue read shellcode wrapper on amd64. Removing that file fixes your issue, since the generated syscall wrapper handles arguments first before generating the syscall instruction, doing the right thing by accident. You can get your code to work by using sh = shellcraft.syscalls.read('eax', '0x006030c0', 0x1000).
The real problem is regsort not considering at the register mapping:
Reproduced with the pwntools/pwntools:stable container.
Code to reproduce:
eax gets overwritten before it gets read:
If we use rax instead, it works as expected:
Granted, in my use case rax was probably the correct register to use, but it was annoying to figure that out anyways.
The text was updated successfully, but these errors were encountered: