The best way to learn the structure of Metasploit is to browse through its directory. When using a Kali Linux, the Metasploit Framework is usually located at path /usr/share/metasploit-framework, as shown in the following screenshot:
![](https://static.packt-cdn.com/products/9781838822477/graphics/27cf4c84-1f03-4d55-8e27-dd8e43a708e5.jpg)
At a broad level, the Metasploit Framework structure is as shown in the following screenshot:
![](https://static.packt-cdn.com/products/9781838822477/graphics/15ec4cab-a7ef-44c7-903f-ffc91f0201a9.jpg)
The Metasploit Framework has a very clear and well-defined structure, and the tools/utilities within the framework are organized based on their relevance in various phases of the penetration testing life cycle. We'll be using tools/utilities from each of these categories as we progress through the book.
In the next section, we'll have a brief overview of all the Metasploit components.