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

15 lines
330 B
Ruby

control "psexec" do
title "PxExec"
desc "Checks if the ports 139 - NetBIOS and 445 - SMB are listening"
describe command('netstat -aob | findstr :139') do
its('stdout') { should match ("LISTENING") }
end
describe command('netstat -aob | findstr :445') do
its('stdout') { should match ("LISTENING") }
end
end