Unpack and pack an unsigned integer per 8 bytes

MS-255
This commit is contained in:
dmohanty-r7
2016-04-18 08:39:55 -05:00
parent e6a8d69b0b
commit e4fcaefc8c
+1 -1
View File
@@ -229,7 +229,7 @@ module Msf::DBManager::Import
end
# This is a text string, lets make sure its treated as binary
data.force_encoding(Encoding::ASCII_8BIT)
data = data.unpack("Q*").pack("Q*")
if data and data.to_s.strip.length == 0
raise Msf::DBImportError.new("The data provided to the import function was empty")
end