Suppose I am doing a penetration test on a network that has a firewall that blocks all ports except 80, 110, and 443. I want to use a metasploit reverse-TCP backdoor executable written in msfpayload to initiate a connection with a remote server that has a listener running.
Since I can't set the backdoor to run on an blocked port because of the firewall, can I set the executable to run on one of the allowed ports assuming that the port is dormant at the time and no traffic is going through it? If not is there any way to get around a blocked port or make this scenario work?