Fixed file read block.

bug/bundler_fix
Stephen Haywood 2016-10-03 10:47:03 -04:00 committed by GitHub
parent 708eb0eb4f
commit 25996a16bb
1 changed files with 2 additions and 4 deletions

View File

@ -51,10 +51,8 @@ class MetasploitModule < Msf::Auxiliary
return
end
File.open(datastore['DIR_LIST'], "r") do |f|
f.each_line do |line|
check_dir(line.chomp)
end
File.read(datastore['DIR_LIST']).each_line do |dir|
check_dir(dir.chomp)
end
end