metasploitable3/chef/cookbooks/metasploitable/test/windows/winrm.rb
2017-07-07 18:46:43 +05:30

10 lines
195 B
Ruby

control "winrm" do
title "WinRM"
desc "Checks if the port 5985 is listening"
describe command('netstat -aob | findstr :5985') do
its('stdout') { should match ("LISTENING") }
end
end