metasploit-framework/data/msfweb/app/models/exploit.rb

8 lines
123 B
Ruby

class Exploit
def self.find_all()
mods = []
$msframework.exploits.each_module { |n,m| mods << m.new }
mods
end
end