CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
rapid7

CoCalc provides the best real-time collaborative environment for Jupyter Notebooks, LaTeX documents, and SageMath, scalable from individual users to large groups and classes!

GitHub Repository: rapid7/metasploit-framework
Path: blob/master/test/tests/01_all_exploits_have_payloads_test.rb
Views: 1904
1
require 'testbase'
2
3
describe Msf::Simple::Framework do
4
$msf.exploits.each_module do |name, mod|
5
e = $msf.exploits.create(name)
6
e.targets.each_with_index do |t, idx|
7
it "#{name} target #{idx} should have compatible payloads" do
8
e.datastore['TARGET'] = idx
9
r = e.compatible_payloads
10
r.length.should_not == 0
11
end
12
end
13
end
14
end
15
16