There are two version of Netcat, traditional and openbsd.
The traditional version is the one that I've been used in my previous post. It have more function than the openbsd version.
In the openbsd version we can't add -e command. This because the openbsd version is designed to prevent the hacker who want to make a backdoor use it. This way, we can't create a shell.
But, there's a way to bypass it using mkfifo. Mkfifo help us to create a pipe connection. Pipes allow separate process to communicate without having been designed explicitly to work together. This allows tools to combine their function in complex ways.
Mkfifo takes one or more file names as arguments or commands for the specified task and creates pipes with those names.
Ok. Lets start..
1. Remove the netcat-traditional and install netcat-openbsd to your ubuntu machine.
# apt-get remove netcat-traditional
# apt-get install netcat-openbsd