By now, you should already be familiar with MSFvenom, as we have used it a couple of times in previous recipes. MSFvenom is the tool to use for payload generation and encoding and it is an evolution of msfpayload and msfencode, which it replaced on June 8th, 2015.
In this chapter, we dig a bit deeper on the available payloads, learn why encoders can be useful when trying to evade detection, check the available executable, transform output formats, and much more.