Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
The last section was informative, but what if the vulnerable system sits behind a firewall and the attacker cannot connect to the exploited system on a new port? As discussed in the previous chapter, attackers will then use another technique: have the exploited system connect back to the attacker on a particular IP and port. This is referred to as a reverse connecting shell.
The good news is that we only need to change a few things from our previous port binding code: