syscall.sh / x86 / getrandom

getrandom

obtain a series of random bytes

sys_getrandom(char *buf, size_t count, unsigned int flags)
number355 (0x163)
abii386
entry pointsys_getrandom
sinceLinux 3.17
man pagegetrandom(2)
sourceelixir.bootlin.com

Registers

registervalue
eax355, the syscall number
ebxchar *buf
ecxsize_t count
edxunsigned int flags
eaxthe return value

Then run int 0x80 to enter the kernel.

Same syscall on other architectures

Get this as JSON: https://api.syscall.sh/v2/syscalls/x86/getrandom