Skip to content

Commit aa85cb8

Browse files
committed
Update powershell.rb
1 parent ae1b7e5 commit aa85cb8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/msf/core/post/windows/powershell.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ module Powershell
1919
# Returns true if powershell is installed
2020
#
2121
def have_powershell?
22-
cmd_out = cmd_exec("cmd.exe /c echo. | powershell get-host")
22+
cmd_out = cmd_exec('cmd.exe /c "echo. | powershell get-host"')
2323
return true if cmd_out =~ /Name.*Version.*InstanceId/m
2424
return false
2525
end

0 commit comments

Comments
 (0)