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:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user