Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Path: blob/master/lib/metasploit/framework/data_service.rb
Views: 11779
require 'metasploit/framework/data_service/stubs/host_data_service'1require 'metasploit/framework/data_service/stubs/vuln_data_service'2require 'metasploit/framework/data_service/stubs/event_data_service'3require 'metasploit/framework/data_service/stubs/workspace_data_service'4require 'metasploit/framework/data_service/stubs/note_data_service'5require 'metasploit/framework/data_service/stubs/web_data_service'6require 'metasploit/framework/data_service/stubs/service_data_service'7require 'metasploit/framework/data_service/stubs/session_data_service'8require 'metasploit/framework/data_service/stubs/session_event_service'9require 'metasploit/framework/data_service/stubs/exploit_data_service'10require 'metasploit/framework/data_service/stubs/loot_data_service'11require 'metasploit/framework/data_service/stubs/msf_data_service'1213#14# All data service implementations should include this module to ensure proper implementation15#16module Metasploit17module Framework18module DataService19include HostDataService20include EventDataService21include VulnDataService22include WorkspaceDataService23include WebDataService24include NoteDataService25include ServiceDataService26include SessionDataService27include SessionEventDataService28include ExploitDataService29include LootDataService30include MsfDataService3132def name33raise 'DataService#name is not implemented';34end3536def active37raise 'DataService#active is not implemented';38end3940def active=(value)41raise 'DataService#active= is not implemented';42end4344def is_local?45raise 'DataService#is_local? is not implemented';46end4748#49# Hold metadata about a data service50#51class Metadata52attr_reader :id53attr_reader :name54attr_reader :active55attr_reader :is_local5657def initialize (id, name, active, is_local)58self.id = id59self.name = name60self.active = active61self.is_local = is_local6263end6465#######66private67#######6869attr_writer :id70attr_writer :name71attr_writer :active72attr_writer :is_local7374end75end76end77end787980