Class: Mdm::User
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Mdm::User
- Extended by:
- MetasploitDataModels::SerializedPrefs
- Defined in:
- app/models/mdm/user.rb
Overview
A user of metasploit-framework or metasploit-pro.
HTTP Proxy collapse
-
#http_proxy_host ⇒ String?
Proxy host.
-
#http_proxy_pass ⇒ String?
Password used to login as #http_proxy_user to proxy.
-
#http_proxy_port ⇒ String, ...
Port on which proxy run on #http_proxy_host.
-
#http_proxy_user ⇒ String?
User used to log into proxy.
Nexpose collapse
-
#nexpose_host ⇒ String?
Host name for server running Nexpose.
-
#nexpose_pass ⇒ String?
Password to log into Nexpose.
-
#nexpose_port ⇒ String, Integer. nil
Port on #nexpose_host on which Nexpose is running.
-
#nexpose_user ⇒ String?
User used to log into Nexpose.
Nexpose Authenticated Scan Credentials collapse
Instance Attribute Summary collapse
-
#admin ⇒ false, true
Whether this user is an administrator.
-
#company ⇒ String?
Company at which user works.
-
#created_at ⇒ DateTime
When the user was created.
-
#crypted_password ⇒ String
Hashed password (salted with #password_salt) by Authlogic in metasploit-pro.
-
#email ⇒ String?
The user's email address.
-
#fullname ⇒ String?
The user's normal human name.
-
#last_login_address ⇒ String?
Last IP address from which this user logged in.
-
#password_salt ⇒ String
Salt used when hashing password into #crypted_password by Authlogic in metasploit-pro.
-
#persistence_token ⇒ String
Token used for session and cookie when user is logged using Authlogic in metasploit-pro.
-
#phone ⇒ String?
Phone number for user.
-
#session_key ⇒ String?
Holds
session[:session_id]so user can only be logged in once. -
#time_zone ⇒ String?
User's preferred time zone.
-
#updated_at ⇒ DateTime
When the user was last updated.
-
#username ⇒ String
Username for this user.
Instance Method Summary collapse
-
#prefs ⇒ Hash
Hash of user preferences.
Methods included from MetasploitDataModels::SerializedPrefs
serialized_prefs_attr_accessor
Instance Attribute Details
#admin ⇒ false, true
Whether this user is an administrator. Administrator permissions are only enforced in metasploit-pro through the controllers.
|
|
# File 'app/models/mdm/user.rb', line 44
|
#company ⇒ String?
Company at which user works.
|
|
# File 'app/models/mdm/user.rb', line 52
|
#created_at ⇒ DateTime
When the user was created.
|
|
# File 'app/models/mdm/user.rb', line 57
|
#crypted_password ⇒ String
Hashed password (salted with #password_salt) by Authlogic in metasploit-pro.
|
|
# File 'app/models/mdm/user.rb', line 62
|
#email ⇒ String?
The user's email address.
|
|
# File 'app/models/mdm/user.rb', line 67
|
#fullname ⇒ String?
The user's normal human name.
|
|
# File 'app/models/mdm/user.rb', line 72
|
#http_proxy_host ⇒ String?
Proxy host.
149 |
# File 'app/models/mdm/user.rb', line 149 serialized_prefs_attr_accessor :http_proxy_host |
#http_proxy_pass ⇒ String?
Password used to login as #http_proxy_user to proxy.
155 |
# File 'app/models/mdm/user.rb', line 155 serialized_prefs_attr_accessor :http_proxy_pass |
#http_proxy_port ⇒ String, ...
Port on which proxy run on #http_proxy_host.
161 |
# File 'app/models/mdm/user.rb', line 161 serialized_prefs_attr_accessor :http_proxy_port |
#http_proxy_user ⇒ String?
User used to log into proxy.
167 |
# File 'app/models/mdm/user.rb', line 167 serialized_prefs_attr_accessor :http_proxy_user |
#last_login_address ⇒ String?
specifically NOT last_login_ip to prevent confusion with AuthLogic magic columns (which dont work for serialized fields)
Last IP address from which this user logged in. Used to report currently active user session's IP when the user
is logged off because theire session[:session_id] does not match #session_key.
129 |
# File 'app/models/mdm/user.rb', line 129 serialized_prefs_attr_accessor :last_login_address |
#nexpose_creds_pass ⇒ String?
211 |
# File 'app/models/mdm/user.rb', line 211 serialized_prefs_attr_accessor :nexpose_creds_pass |
#nexpose_creds_type ⇒ String?
215 |
# File 'app/models/mdm/user.rb', line 215 serialized_prefs_attr_accessor :nexpose_creds_type |
#nexpose_creds_user ⇒ String?
219 |
# File 'app/models/mdm/user.rb', line 219 serialized_prefs_attr_accessor :nexpose_creds_user |
#nexpose_host ⇒ String?
Host name for server running Nexpose.
181 |
# File 'app/models/mdm/user.rb', line 181 serialized_prefs_attr_accessor :nexpose_host |
#nexpose_pass ⇒ String?
Password to log into Nexpose.
187 |
# File 'app/models/mdm/user.rb', line 187 serialized_prefs_attr_accessor :nexpose_pass |
#nexpose_port ⇒ String, Integer. nil
Port on #nexpose_host on which Nexpose is running.
193 |
# File 'app/models/mdm/user.rb', line 193 serialized_prefs_attr_accessor :nexpose_port |
#nexpose_user ⇒ String?
User used to log into Nexpose.
199 |
# File 'app/models/mdm/user.rb', line 199 serialized_prefs_attr_accessor :nexpose_user |
#password_salt ⇒ String
Salt used when hashing password into #crypted_password by Authlogic in metasploit-pro.
|
|
# File 'app/models/mdm/user.rb', line 77
|
#persistence_token ⇒ String
Token used for session and cookie when user is logged using Authlogic in metasploit-pro.
|
|
# File 'app/models/mdm/user.rb', line 82
|
#phone ⇒ String?
Phone number for user.
|
|
# File 'app/models/mdm/user.rb', line 87
|
#session_key ⇒ String?
Holds session[:session_id] so user can only be logged in once. Only enforced in metasploit-pro.
135 |
# File 'app/models/mdm/user.rb', line 135 serialized_prefs_attr_accessor :session_key |
#time_zone ⇒ String?
User's preferred time zone.
115 |
# File 'app/models/mdm/user.rb', line 115 serialized_prefs_attr_accessor :time_zone |
#updated_at ⇒ DateTime
When the user was last updated.
|
|
# File 'app/models/mdm/user.rb', line 92
|
#username ⇒ String
Username for this user. Used to log into metasploit-pro.
|
|
# File 'app/models/mdm/user.rb', line 97
|
Instance Method Details
#prefs ⇒ Hash
Hash of user preferences
109 |
# File 'app/models/mdm/user.rb', line 109 serialize :prefs, MetasploitDataModels::Base64Serializer.new |