Skip to content

Commit

Permalink
Specify tempfile extension
Browse files Browse the repository at this point in the history
  • Loading branch information
moozzi committed Feb 5, 2024
1 parent 5dc91dc commit 5e00fa7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ronin/masscan.rb
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def self.scan(*ips,**kwargs,&block)

unless masscan.output_file
FileUtils.mkdir_p(CACHE_DIR)
tempfile = Tempfile.new('masscan', CACHE_DIR)
tempfile = Tempfile.new(['masscan', '.json'], CACHE_DIR)

masscan.output_file = tempfile.path
end
Expand Down

0 comments on commit 5e00fa7

Please sign in to comment.