Understanding the file structure

File structure in Metasploit is laid out in the scheme shown in the following figure:

We will cover the most relevant directories, which will aid us in building modules for Metasploit, through the following table:

Directory

Usage

lib

The heart and soul of Metasploit; it contains all the essential library files to help us build MSF modules.

modules

All the Metasploit modules are contained in this directory; from scanners to post exploitation modules, every module which was integrated into the Metasploit project can be found in this directory.

tools

Command-line utilities that aid penetration ...

Get Mastering Metasploit - Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.