2010-09-13 08:25:27 +00:00
|
|
|
module Msf
|
|
|
|
class DBManager
|
|
|
|
|
|
|
|
class Campaign < ActiveRecord::Base
|
|
|
|
has_one :email_template
|
|
|
|
has_one :web_template
|
2010-10-09 08:35:41 +00:00
|
|
|
has_one :attachment
|
2010-09-13 08:25:27 +00:00
|
|
|
has_many :email_addresses
|
2010-10-08 17:20:57 +00:00
|
|
|
has_many :clients
|
2010-09-13 08:25:27 +00:00
|
|
|
|
|
|
|
extend SerializedPrefs
|
|
|
|
|
|
|
|
serialize :prefs
|
|
|
|
|
2011-01-04 01:13:03 +00:00
|
|
|
# General settings
|
2011-06-02 20:55:46 +00:00
|
|
|
serialized_prefs_attr_accessor :payload_lhost, :listener_lhost, :payload_type
|
2011-01-04 01:13:03 +00:00
|
|
|
|
2010-09-13 08:25:27 +00:00
|
|
|
# Email settings
|
2010-10-09 08:35:41 +00:00
|
|
|
serialized_prefs_attr_accessor :do_email
|
2010-09-13 08:25:27 +00:00
|
|
|
serialized_prefs_attr_accessor :smtp_server, :smtp_port, :smtp_ssl
|
|
|
|
serialized_prefs_attr_accessor :smtp_user, :smtp_pass
|
2011-05-27 20:59:36 +00:00
|
|
|
serialized_prefs_attr_accessor :mailfrom, :display_from
|
2010-09-13 08:25:27 +00:00
|
|
|
|
|
|
|
# Web settings
|
2010-10-09 08:35:41 +00:00
|
|
|
serialized_prefs_attr_accessor :do_web
|
2010-10-11 05:56:18 +00:00
|
|
|
serialized_prefs_attr_accessor :web_uripath, :web_urihost, :web_srvport, :web_srvhost
|
2010-09-13 08:25:27 +00:00
|
|
|
serialized_prefs_attr_accessor :web_ssl
|
|
|
|
|
2010-10-09 08:35:41 +00:00
|
|
|
# Executable settings
|
|
|
|
serialized_prefs_attr_accessor :do_exe_gen
|
2011-01-04 01:13:03 +00:00
|
|
|
serialized_prefs_attr_accessor :exe_lport
|
2010-10-09 08:35:41 +00:00
|
|
|
serialized_prefs_attr_accessor :exe_name
|
2010-10-01 13:36:32 +00:00
|
|
|
|
2010-09-13 08:25:27 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|