1
mirror of https://github.com/rapid7/metasploit-framework synced 2024-11-05 14:57:30 +01:00
metasploit-framework/test/tests/01_all_exploits_have_payloads.rb
James Lee fa3a86ec7a test all targets, not just the default. this found the bug fixed in r7483
git-svn-id: file:///home/svn/framework3/trunk@7484 4d416f70-5f16-0410-b530-b9f4589650da
2009-11-12 20:37:30 +00:00

15 lines
348 B
Ruby
Executable File

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