A bind shell is created by running a malicious program or code on the target machine ( which makes the target listener ) and the attackers tires to connect to it. If connection is successful we get a shell back and the attacker has control over target machine .