Added IIS, psexec and winrm tests

This commit is contained in:
Chan9390 2017-07-07 18:46:43 +05:30
parent e90d1b1163
commit 36d99c45d3
No known key found for this signature in database
GPG Key ID: 6CC28422F21ED4FA
3 changed files with 31 additions and 0 deletions

View File

@ -0,0 +1,8 @@
control "iis" do
title "IIS HTTP"
desc "Checks if the IIS server has started and listening on port 80. Setup script available at /scripts/installs/setup_iis.bat"
describe command('netstat -aob | findstr :3389') do
its('stdout') { should match ("LISTENING") }
end
end

View File

@ -0,0 +1,14 @@
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

View File

@ -0,0 +1,9 @@
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