Files
metasploit-gs/lib/msf/core/model/note.rb
T
Mike Smith d5d9d56081 Create a dedicated db table to track sessions & session events.
* Add new db tables for session & session_events
* Migrate existing session data from events db table
* Modify session report methods to log to the new tables


git-svn-id: file:///home/svn/framework3/trunk@12273 4d416f70-5f16-0410-b530-b9f4589650da
2011-04-07 21:59:32 +00:00

23 lines
266 B
Ruby

module Msf
class DBManager
class Note < ActiveRecord::Base
include DBSave
belongs_to :workspace
belongs_to :host
belongs_to :service
serialize :data
def after_save
if data_changed? and ntype =~ /fingerprint/
host.normalize_os
end
end
end
end
end