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 42a17cc commit ae1b7e5Copy full SHA for ae1b7e5
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("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