mirror of
https://github.com/rapid7/metasploitable3.git
synced 2024-06-28 15:55:47 +02:00
Added IIS, psexec and winrm tests
This commit is contained in:
parent
e90d1b1163
commit
36d99c45d3
8
chef/cookbooks/metasploitable/test/windows/iis.rb
Normal file
8
chef/cookbooks/metasploitable/test/windows/iis.rb
Normal 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
|
14
chef/cookbooks/metasploitable/test/windows/psexec.rb
Normal file
14
chef/cookbooks/metasploitable/test/windows/psexec.rb
Normal 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
|
||||
|
9
chef/cookbooks/metasploitable/test/windows/winrm.rb
Normal file
9
chef/cookbooks/metasploitable/test/windows/winrm.rb
Normal 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
|
Loading…
Reference in New Issue
Block a user