Prefer Tempfile over Rex::Quickfile for info -d

Rex::Quickfile undefines Tempfile's finalizer, preventing cleanup.
GSoC/Meterpreter_Web_Console
William Vu 2019-01-17 13:58:03 -06:00
parent b412bb3136
commit e488cf4a37
1 changed files with 1 additions and 1 deletions

View File

@ -123,7 +123,7 @@ module Msf
if dump_json
print(Serializer::Json.dump_module(active_module) + "\n")
elsif show_doc
f = Rex::Quickfile.new(["#{active_module.shortname}_doc", '.html'])
f = Tempfile.new(["#{active_module.shortname}_doc", '.html'])
begin
print_status("Generating documentation for #{active_module.shortname}, then opening #{f.path} in a browser...")
Msf::Util::DocumentGenerator.spawn_module_document(active_module, f)