Filesystem and Libraries

Metasploit Filesystem

  • /usr/share/metasploit-framework

root@kali:~# ls /usr/share/metasploit-framework/

... 

...

Data

  • The data directory contains editable files used by Metasploit to store binaries required for certain exploits, wordlists, images, and more.

root@kali:~# ls /usr/share/metasploit-framework/data/
cpuinfo              ipwn           meterpreter  snmp            webcam
eicar.com            isight.bundle  mime.yml     sounds          wmap
eicar.txt            john.conf      msfcrawler   SqlClrPayload   wordlists
emailer_config.yaml  lab            passivex     templates
exploits             logos          php          vncdll.x64.dll
flash_detector       markdown_doc   post         vncdll.x86.dll

Documentation

  • The documentation directory contains the available documentation for the framework.

Lib

  • The lib directory contains the ‘meat’ of the framework code base.

Modules

  • The modules directory is where you will find the actual MSF modules for exploits, auxiliary and post modules, payloads, encoders, and nop generators.

Plugins

Scripts

  • The scripts directory contains Meterpreter and other scripts.

Tools

  • The tools directory has various useful command-line utilities.

Metasploit Libraries

REX

  • The basic library for most tasks

  • Handles sockets, protocols, text transformations, and others

  • SSL, SMB, HTTP, XOR, Base64, Unicode

MSF::CORE

  • Provides the ‘basic’ API

  • Defines the Metasploit Framework

MSF::BASE

  • Provides the ‘friendly’ API

  • Provides simplified APIs for use in the Framework

References

Last updated