Sha256: 8419b4c719031e943682c7f7ef760ac4d413268039c5684bab3d6ed402a60168
Contents?: true
Size: 993 Bytes
Versions: 10
Compression:
Stored size: 993 Bytes
Contents
# Matches {#matchable} {Mdm::Service} or {Mdm::Vuln} to a {#module_detail Metasploit Module} that can exploit it. class MetasploitDataModels::AutomaticExploitation::Match < ActiveRecord::Base # # Associations # # A (polymorphic) "matchable" entity like a {Mdm::Vuln} or {Mdm::Service} # # @return [Mdm::Service, Mdm::Vuln] belongs_to :matchable, polymorphic: true # The {MatchSet} this match is part of has_many :match_results, class_name: 'MetasploitDataModels::AutomaticExploitation::MatchResult', inverse_of: :match # The {MatchSet} this match is part of belongs_to :match_set, class_name: 'MetasploitDataModels::AutomaticExploitation::MatchSet', inverse_of: :matches # The Metasploit Module that this match connects to belongs_to :module_detail, class_name: 'Mdm::Module::Detail', foreign_key: :module_fullname, primary_key: :fullname Metasploit::Concern.run(self) end
Version data entries
10 entries across 10 versions & 1 rubygems