Metasploit framework is a pentesting tool where you can write, test, and execute exploits. The platform already comes loaded with lot of tools ready to go so you can attack and test for vulnerabilities, enumerate and map out networks, and collect useful data. It is a free tool, but a very powerful one that almost all pentesters use. MSFconsole is the CLI where you access the framework. You can install the bundle by typing $ bundle install and get the console started. It has help command as well so you can get all the information you need.
There are several modules you should know, first we have exploits which are tools you can use, payloads which are sets of malicious codes, shellcode which are codes you can activate once inside a target box, post exploitation code which is a deeper penetration, nops which is an instruction to keep payload from crashing, encoders which are used to convert code, listeners which is software that hides in order to gain access, and auxiliary functions which are extra tools. Is is a one stop shop that is ready to conduct surveillance on a network without getting caught, find vulnerabilities, and take advantage of the vulnerabilities and break into it using multiple tools that are effective against identified vulnerabilities to cause havoc.