Bypassing antivirus with the Veil-Framework
As a penetration tester, always remember that you are simulating real-world attacks, and in the real world, hackers are trying to bypass antivirus protection using many techniques. The Veil-Framework is a fantastic tool for avoiding payload detection. To install Veil 3.0, you need to download it from its official GitHub source at https://github.com/Veil-Framework/Veil:
# git clone https://github.com/Veil-Framework/Veil

Now you just need to select a task from an assisted main menu:

To generate a payload, select list
, and type use 1
:

To list all the available payloads, use list
as usual:

Select your payload using the use
command:

Enter generate
to create the payload:

Complete the options, and you will generate an undetectable payload, as simple as that:

You can also do an Nmap scan using Metasploit, exporting the results and importing them later from the database (Metasploit uses the PostgreSQL database):
Msf> nmap [target] -oX [output]

Metasploit is an...