Unpack and pack an unsigned integer per 8 bytes
MS-255
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user