2009-10-01 18:18:01 +00:00
|
|
|
require 'testbase'
|
|
|
|
|
|
|
|
describe Msf::Simple::Framework do
|
2013-09-30 18:47:53 +00:00
|
|
|
$msf.exploits.each_module do |name, mod|
|
|
|
|
e = $msf.exploits.create(name)
|
|
|
|
e.targets.each_with_index do |t, idx|
|
|
|
|
it "#{name} target #{idx} should have compatible payloads" do
|
|
|
|
e.datastore['TARGET'] = idx
|
|
|
|
r = e.compatible_payloads
|
|
|
|
r.length.should_not == 0
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
2009-10-01 18:18:01 +00:00
|
|
|
end
|