What's the difference between the two? I want to execute the netcat command like so:
Is it better to use execv or execve and what would the C code look like using it?Code:nc -l -p 1234 -e /bin/sh
I tried this but got an invalid initializer
ThanksCode:char *args[] = ("nc","-l","-p 1234", "-e /bin/sh", (char *) 0); execv("nc",args);