metasploit-framework icon indicating copy to clipboard operation
metasploit-framework copied to clipboard

Add the current status of features to the debug command output

Open dwelch-r7 opened this issue 1 year ago • 1 comments

Realised when looking at #18791 that the debug command output doesn't have the feature flag status included We should add another section to the debug command output containing something similar to the output of the features command within msfconsole

Features table
==============

   #   Name                         Enabled  Description
   -   ----                         -------  -----------
   0   wrapped_tables               true     When enabled Metasploit will wordwrap all tables to fit into the available terminal width
   1   fully_interactive_shells     false    When enabled you will have the option to drop into a fully interactive shell from within meterpreter
   2   manager_commands             true     When enabled you will have access to manager commands such as _servicemanager and _historymanager
   3   datastore_fallbacks          true     When enabled you can consistently set username across modules, instead of setting SMBUser/FTPUser/BIND_DN/etc
   4   metasploit_payload_warnings  true     When enabled Metasploit will output warnings about missing Metasploit payloads, for instance if they were removed by antivirus etc
   5   defer_module_loads           false    When enabled will not eagerly load all modules
   6   smb_session_type             true     When enabled will allow for the creation/use of smb sessions
   7   postgresql_session_type      false    When enabled will allow for the creation/use of PostgreSQL sessions
   8   mysql_session_type           false    When enabled will allow for the creation/use of MySQL sessions
   9   dns_feature                  true     When enabled, allows configuration of DNS resolution behaviour in Metasploit
   10  hierarchical_search_table    true     When enabled, the search table is enhanced to show details on module actions and targets

This will be particularly useful when trying to replicate issues that may or may not be affected by a feature flag (in the case of #18791 the erorr only occurs when defer_module_loads is set to false for example)

dwelch-r7 avatar Feb 06 '24 13:02 dwelch-r7