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 bac3c80 + 8cc48e0 commit 84411beCopy full SHA for 84411be
lib/msf/core/payload/uuid.rb
@@ -196,12 +196,16 @@ def self.parse_uri(uri)
196
#
197
def self.find_platform_id(platform)
198
# Handle a PlatformList input by grabbing the first entry
199
- if platform.respond_to? :platforms
+ if platform.respond_to?(:platforms)
200
platform = platform.platforms.first.realname.downcase
201
end
202
203
# Map a platform abbreviation to the real name
204
- name = Msf::Platform::Abbrev[platform]
+ name = Msf::Platform.find_platform(platform)
205
+ if name && name.respond_to?(:realname)
206
+ name = name.realname.downcase
207
+ end
208
+
209
( Platforms.keys.select{ |k|
210
Platforms[k] == name
211
}.first || Platforms[0] ).to_i
0 commit comments