Prefer Tempfile over Rex::Quickfile for info -d
Rex::Quickfile undefines Tempfile's finalizer, preventing cleanup.GSoC/Meterpreter_Web_Console
parent
b412bb3136
commit
e488cf4a37
|
@ -123,7 +123,7 @@ module Msf
|
||||||
if dump_json
|
if dump_json
|
||||||
print(Serializer::Json.dump_module(active_module) + "\n")
|
print(Serializer::Json.dump_module(active_module) + "\n")
|
||||||
elsif show_doc
|
elsif show_doc
|
||||||
f = Rex::Quickfile.new(["#{active_module.shortname}_doc", '.html'])
|
f = Tempfile.new(["#{active_module.shortname}_doc", '.html'])
|
||||||
begin
|
begin
|
||||||
print_status("Generating documentation for #{active_module.shortname}, then opening #{f.path} in a browser...")
|
print_status("Generating documentation for #{active_module.shortname}, then opening #{f.path} in a browser...")
|
||||||
Msf::Util::DocumentGenerator.spawn_module_document(active_module, f)
|
Msf::Util::DocumentGenerator.spawn_module_document(active_module, f)
|
||||||
|
|
Loading…
Reference in New Issue