metasploit-framework/lib/msf/core/model/note.rb

23 lines
266 B
Ruby
Raw Normal View History

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