0

I am writing assembly[shellcode] for i386 linux. I wanted to know if there are any man pages or cheats sheets to see which registers need to be set-up for the calls[ read, write, execve] to be made.

cRAYonhere
  • 47
  • 1
  • 10

1 Answers1

3

You can consult syscall man-page for syscall ABI on different architectures. For a specific syscall, see the man-page of the corresponding C-library wrapper function which usually includes a C library/kernel differences chapter if necessary. For the list of all syscalls see syscalls man-page.

For the actual syscall numbers see asm/unistd.h header.

r3mus n0x
  • 5,954
  • 1
  • 13
  • 34