Files
metasploit-gs/lib/msf/core/model/session.rb
T
2012-01-24 10:22:05 -06:00

20 lines
386 B
Ruby

module Msf
class DBManager
class Session < ActiveRecord::Base
belongs_to :host
has_one :workspace, :through => :host
has_many :events, :class_name => "SessionEvent", :order => "created_at"
has_many :routes
scope :alive, :conditions => "closed_at IS NULL"
scope :dead, :conditions => "closed_at IS NOT NULL"
serialize :datastore, Msf::Util::Base64Serializer.new
end
end
end