metasploitable3/chef/cookbooks/metasploitable/test/windows/winrm.rb

10 lines
195 B
Ruby
Raw Normal View History

2017-07-07 15:16:43 +02:00
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