01_all_exploits_have_payloads_test.rb 374 B

123456789101112131415
  1. require 'testbase'
  2. describe Msf::Simple::Framework do
  3. $msf.exploits.each_module do |name, mod|
  4. e = $msf.exploits.create(name)
  5. e.targets.each_with_index do |t, idx|
  6. it "#{name} target #{idx} should have compatible payloads" do
  7. e.datastore['TARGET'] = idx
  8. r = e.compatible_payloads
  9. r.length.should_not == 0
  10. end
  11. end
  12. end
  13. end