Using the new evasion module
In the previous section, we have seen how to make use of encoders to encode the payloads and make them stealthy. The latest Metasploit 5.0 Framework comes with a new evasion module.
The evasion module helps generate a Windows executable, EXE
, which evades the Windows Defender antivirus. This is achieved using various techniques, such as metasm, anti-emulation, shellcode encryption, and source code obfuscation.
To use the evasion module, we'll first open up the msfconsole
utility and then use the command use evasion/windows/windows_defender_exe
, as in the following screenshot. We can then use the info
command to get more information on the evasion module:
Using the show options
command, as in the following screenshot, we can see the parameters required to run this module. We can set the required parameters accordingly.
As we can see from the preceding screenshot, the...