Skip to content

Commit

Permalink
Land #18619, Fix crash when running the favorites command
Browse files Browse the repository at this point in the history
  • Loading branch information
sjanusz-r7 committed Dec 15, 2023
2 parents e3810a4 + 7421485 commit b019b2f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/msf/ui/console/command_dispatcher/modules.rb
Expand Up @@ -1349,6 +1349,7 @@ def cmd_favorites_help
print_line 'Usage: favorites'
print_line
print_line 'Print the list of favorite modules (alias for `show favorites`)'
print_line 'You can use the %grnfavorite%clr command to add the current module to your favorites list'
print @@favorites_opts.usage
end

Expand Down Expand Up @@ -1570,7 +1571,7 @@ def show_favorites # :nodoc:
end
@module_search_results = filtered_results.flatten.sort_by(&:fullname)
end
@module_search_results_with_usage_metadata = @module_search_results
@module_search_results_with_usage_metadata = @module_search_results.map { |mod| { mod: mod, datastore: {} } }

show_module_metadata('Favorites', fav_modules)
print_module_search_results_usage
Expand Down

0 comments on commit b019b2f

Please sign in to comment.