Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds the features configuration to the debug command output #19172

Merged

Conversation

cgranleese-r7
Copy link
Contributor

Resolves #18793

Adds the features configuration to the debug commands output, example below:

Framework Configuration

The features are configured as follows:

Collapse
name enabled
wrapped_tables true
fully_interactive_shells false
manager_commands true
datastore_fallbacks true
metasploit_payload_warnings true
defer_module_loads false
smb_session_type true
postgresql_session_type true
mysql_session_type true
mssql_session_type true
dns true
hierarchical_search_table true

Verification

List the steps needed to make sure this thing works

  • Start msfconsole
  • Use a random module
  • Run debug
  • Verify the features output match the features configuration output from running the features command
  • Verify the code changes are sane
  • Verify the markdown renders correctly on GitHub (I just used a comment for this)

@cgranleese-r7 cgranleese-r7 added enhancement rn-enhancement release notes enhancement labels May 8, 2024
required_fields = %w[name enabled]

table = "| #{required_fields.join(' | ')} |\n"
table += '|' + '-:|' * required_fields.count + "\n"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rex::table support for markdown tables intensifies

@cgranleese-r7 cgranleese-r7 force-pushed the add-features-to-debug-command-output branch from 9f3f8b2 to 7ee36eb Compare May 13, 2024 10:19
@adfoster-r7 adfoster-r7 merged commit 4233822 into rapid7:master May 13, 2024
34 checks passed
@adfoster-r7
Copy link
Contributor

adfoster-r7 commented May 13, 2024

Release Notes

Updates the debug command to export the currently enabled user features

@cgranleese-r7 cgranleese-r7 deleted the add-features-to-debug-command-output branch May 13, 2024 12:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement rn-enhancement release notes enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add the current status of features to the debug command output
2 participants