Land #11174, Fix platform bug when upgrade shell.

The platform on windows powershell should be 'win', rather than
'windows', this bug leads to failure when upgrade powershell session
to meterpreter.
This commit is contained in:
Green-m
2018-12-26 11:31:39 +08:00
@@ -73,7 +73,7 @@ class MetasploitModule < Msf::Post
# Handle platform specific variables and settings
case session.platform
when 'windows'
when 'windows', 'win'
platform = 'windows'
payload_name = 'windows/meterpreter/reverse_tcp'
lplat = [Msf::Platform::Windows]