Can someone explain how to write shellcode for execve command in linux?

  • Thread starter Thread starter Setera
  • Start date Start date
S

Setera

Guest
I am trying to write shellcode to open a /bin/bash shell in linux and I'm wondering if someone could explain how this works. I'm just a beginner at this... and I'm writing in assembly and then disassembling into hex bytes from there.

As far as I know, eax stores the system call id, ebx, ecx, edx store arguments for the function. How can I specify the arguments for execve()? I realize there is shellcode already available on the internet, but I would like to learn how to write it myself.

Any help is much appreciated.
 
Back
Top