Don't lookup nil platform, prevents a stack trace w/64-bit reverse_https
parent
ec28992ce2
commit
1d166c1ef6
|
@ -201,7 +201,7 @@ class Msf::Payload::UUID
|
|||
end
|
||||
|
||||
# Map a platform abbreviation to the real name
|
||||
name = Msf::Platform.find_platform(platform)
|
||||
name = platform ? Msf::Platform.find_platform(platform) : nil
|
||||
if name && name.respond_to?(:realname)
|
||||
name = name.realname.downcase
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue