Skip to content

Commit 2dab69d

Browse files
committed
Use constant instead of hardcoded filename
1 parent 7d1cd22 commit 2dab69d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/msf/core/db.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3004,7 +3004,7 @@ def import_filetype_detect(data)
30043004
@import_filedata[:zip_basename] = @import_filedata[:zip_filename].gsub(/\.zip$/,"")
30053005
@import_filedata[:zip_entry_names] = data.entries.map {|x| x.name}
30063006

3007-
if @import_filedata[:zip_entry_names].include?("manifest.csv")
3007+
if @import_filedata[:zip_entry_names].include?(Metasploit::Credential::Importer::Zip::MANIFEST_FILE_NAME)
30083008
return :msf_cred_dump_zip
30093009
end
30103010

0 commit comments

Comments
 (0)