Skip to content

Commit 1d166c1

Browse files
author
HD Moore
committed
Don't lookup nil platform, prevents a stack trace w/64-bit reverse_https
1 parent ec28992 commit 1d166c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/msf/core/payload/uuid.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ def self.find_platform_id(platform)
201201
end
202202

203203
# Map a platform abbreviation to the real name
204-
name = Msf::Platform.find_platform(platform)
204+
name = platform ? Msf::Platform.find_platform(platform) : nil
205205
if name && name.respond_to?(:realname)
206206
name = name.realname.downcase
207207
end

0 commit comments

Comments
 (0)