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.
1 parent ae1b7e5 commit aa85cb8Copy full SHA for aa85cb8
lib/msf/core/post/windows/powershell.rb
@@ -19,7 +19,7 @@ module Powershell
19
# Returns true if powershell is installed
20
#
21
def have_powershell?
22
- cmd_out = cmd_exec("cmd.exe /c echo. | powershell get-host")
+ cmd_out = cmd_exec('cmd.exe /c "echo. | powershell get-host"')
23
return true if cmd_out =~ /Name.*Version.*InstanceId/m
24
return false
25
end
0 commit comments