Skip to content

Commit 7c1fa3e

Browse files
committed
fix 'info -d module', it assumed active module only
1 parent 199bf8e commit 7c1fa3e

File tree

1 file changed

+3
-3
lines changed
  • lib/msf/ui/console/command_dispatcher

1 file changed

+3
-3
lines changed

lib/msf/ui/console/command_dispatcher/core.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -807,10 +807,10 @@ def cmd_info(*args)
807807
elsif dump_json
808808
print(Serializer::Json.dump_module(mod) + "\n")
809809
elsif show_doc
810-
f = Rex::Quickfile.new(["#{active_module.shortname}_doc", '.html'])
810+
f = Rex::Quickfile.new(["#{mod.shortname}_doc", '.html'])
811811
begin
812-
print_status("Generating documentation for #{active_module.shortname}, then opening #{f.path} in a browser...")
813-
Msf::Util::DocumentGenerator.spawn_module_document(active_module, f)
812+
print_status("Generating documentation for #{mod.shortname}, then opening #{f.path} in a browser...")
813+
Msf::Util::DocumentGenerator.spawn_module_document(mod, f)
814814
ensure
815815
f.close if f
816816
end

0 commit comments

Comments
 (0)