1
mirror of https://github.com/rapid7/metasploit-framework synced 2024-11-12 11:52:01 +01:00
metasploit-framework/test/tests/01_all_exploits_have_payloads.rb
HD Moore 2b5d69447a Adds some rspec tests for the framework class, ensure that all modules can be created and have payloads listed
git-svn-id: file:///home/svn/framework3/trunk@7109 4d416f70-5f16-0410-b530-b9f4589650da
2009-10-01 18:18:01 +00:00

16 lines
307 B
Ruby
Executable File

require 'testbase'
describe Msf::Simple::Framework do
$msf.exploits.each_module do |m|
e = $msf.exploits.create(m)
it "#{m} should have compatible payloads" do
if(not e.default_target)
e.datastore['TARGET'] = 0
end
r = e.compatible_payloads
r.length.should_not == 0
end
end
end