This change avoids namespace collisions around the Abbrev class

bug/bundler_fix
HD Moore 2015-04-07 13:06:26 -05:00
parent 38a77c930e
commit 9bce08b813
1 changed files with 5 additions and 1 deletions

View File

@ -201,7 +201,11 @@ class Msf::Payload::UUID
end
# Map a platform abbreviation to the real name
name = Msf::Platform::Abbrev[platform]
name = Msf::Platform.find_platform(platform)
if name && name.respond_to? :realname
name = name.realname.downcase
end
( Platforms.keys.select{ |k|
Platforms[k] == name
}.first || Platforms[0] ).to_i