Berildocs GitHub

Memory cards

x86_64 ROP needs the argument registers

confidence: highupdated: 2026-11-24status: activeexploitroplinux

Claim#

The first six arguments are rdi, rsi, rdx, rcx, r8, r9. A chain needs pop gadgets or a function that sets them.

Test#

Find pop rdi; ret. Put /bin/sh in a writable location. Call system or execve through a PLT or libc leak.

Proof#

A shell or a controlled call with the arguments visible in the debugger.

Failure modes#

A chain that assumes NX off fails on the target. libc offsets differ by build.