metasploit-framework/test/tests/01_all_exploits_have_payloa...

15 lines
374 B
Ruby

require 'testbase'
describe Msf::Simple::Framework do
$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
end