2009-10-01 18:18:01 +00:00
|
|
|
require 'testbase'
|
|
|
|
|
|
|
|
describe Msf::Simple::Framework do
|
2009-11-12 20:37:30 +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
|
2009-10-01 18:18:01 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|