mirror of
https://github.com/rapid7/metasploitable3.git
synced 2024-07-07 12:12:24 +02:00
15 lines
330 B
Ruby
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
|
||
|
|