This another small shellcode I’ve written for both linux x86 and x86_64 architectures. Let’s have a look at the Linux programmers manual about how execve() takes arguments.
[code language=”C”]
#include <unistd.h>
int execve(const char *filename, char *const argv[],
char *const envp[]);
[/code]