Advanced DLL Injections

Execute DLL injections from Exploit Pack Framework.
DLL injection is a technique used to load malicious code for the purposes of defence evasion, persistence and privilege escalation. Rather than execute malicious code directly via an executable file, adversaries will force code to run in place of other code using the context of a legitimate process.
After getting a vector of attack, deploying an exploit, conducting the attack and having an agent running. How to get execution after connecting to the target machine? A very good option is to use a DLL attack.