We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d5c61c0 + ad374c2 commit dda8766Copy full SHA for dda8766
lib/msf/core/db_manager/import.rb
@@ -119,7 +119,7 @@ def import_file(args={}, &block)
119
# Msf::DBManager::Import::MetasploitFramework::Zip becomes resolvable as Zip here, so need to use ::Zip so Zip
120
# is resolved as one from rubyzip gem.
121
data = ::Zip::File.open(filename)
122
- when "\xd4\xc3\xb2\xa1", "\xa1\xb2\xc3\xd4"
+ when "\xd4\xc3\xb2\xa1".force_encoding('ASCII-8BIT'), "\xa1\xb2\xc3\xd4".force_encoding('ASCII-8BIT')
123
data = PacketFu::PcapFile.new(:filename => filename)
124
else
125
::File.open(filename, 'rb') do |f|
0 commit comments