An important part of a successful exploitation is to be able to keep access of the compromised machine. In this recipe, we will learn about an amazing tool known as the Backdoor Factory (BDF). The main goal of BDF is to patch Windows/Linux binaries with our shell code so that the executable runs normally, along with executing our shell code every time it executes.