Skip to content

How to use datastore options

sinn3r edited this page Aug 29, 2014 · 54 revisions

A datastore option is a type of variable that can be set by the user, allowing various components of Metasploit to be more configurable during use. For example, in msfconsole, you can set the ConsoleLogging option in order to log all the console input/output - something that's kind of handy for documentation purposes during a pentest. When you load a module, there will be a lot more options registered by the mixin(s) or the module, always check first. The best way to find out what options you can set is by using these commands:

  • show options - Shows you all the basic options.
  • show advanced - Shows you all the advanced options.
  • set - Shows you everything. Obviously you also use this command to set an option.

Module level options vs global options

Basic vs advanced options

Types of options

The register_options method

The deregister_options method

Modifying datastore options at run-time

Metasploit Uncyclo Pages


Clone this wiki locally