rapid7/metasploit-framework — pull request #2448 by OJ (2013-10-01 23:24:11+00:00)
Title: Add a bind port setting to reverse listeners

This adds a `ReverseListenerBindPort` advanced setting to the reverse listeners whic
allows for the local bind port to be separated from the `LHOST` setting used in the
payload. This means that listeners can bind to different ports in cases where the
attacker isn't able to listen on the same port that the victim can call out on, but
there are NATs/portforwards/whatever in place that allow the connection to happen.