Metasploit is the most widely used exploitation framework

main components:

Clarify recurring Concepts:

btw. launching the calc.exe application is a benign way to show that we can run commands on the target system.

This command will search the Metasploit Framework database for modules relevant to the given search parameter. You can conduct searches using CVE numbers, exploit names (eternalblue, heartbleed, etc.), or target system.

https://github.com/rapid7/metasploit-framework/wiki/Exploit-Ranking

Summary

The exploitation process comprises three main steps; finding the exploit, customizing the exploit, and exploiting the vulnerable service.