CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
rapid7

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.

GitHub Repository: rapid7/metasploit-framework
Path: blob/master/test/tests/01_all_exploits_have_payloads_test.rb
Views: 11766
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