Class: Rex::Post::Meterpreter::Extensions::Stdapi::Sys::EventLogSubsystem::EventRecord
- Inherits:
-
Object
- Object
- Rex::Post::Meterpreter::Extensions::Stdapi::Sys::EventLogSubsystem::EventRecord
- Defined in:
- lib/rex/post/meterpreter/extensions/stdapi/sys/event_log_subsystem/event_record.rb
Overview
This class encapsulates the data from an event log record.
Instance Attribute Summary collapse
-
#category ⇒ Object
readonly
Returns the value of attribute category.
-
#data ⇒ Object
readonly
Returns the value of attribute data.
-
#eventid ⇒ Object
readonly
Returns the value of attribute eventid.
-
#generated ⇒ Object
readonly
Returns the value of attribute generated.
-
#num ⇒ Object
readonly
Returns the value of attribute num.
-
#strings ⇒ Object
readonly
Returns the value of attribute strings.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
-
#written ⇒ Object
readonly
Returns the value of attribute written.
Instance Method Summary collapse
-
#initialize(recnum, timegen, timewri, id, type, cat, strs, data) ⇒ EventRecord
constructor
A new instance of EventRecord.
Constructor Details
#initialize(recnum, timegen, timewri, id, type, cat, strs, data) ⇒ EventRecord
Returns a new instance of EventRecord.
28 29 30 31 32 33 34 35 36 37 |
# File 'lib/rex/post/meterpreter/extensions/stdapi/sys/event_log_subsystem/event_record.rb', line 28 def initialize(recnum, timegen, timewri, id, type, cat, strs, data) self.num = recnum self.generated = Time.at(timegen) self.written = Time.at(timewri) self.eventid = id self.type = type self.category = cat self.strings = strs self.data = data end |
Instance Attribute Details
#category ⇒ Object
Returns the value of attribute category.
19 20 21 |
# File 'lib/rex/post/meterpreter/extensions/stdapi/sys/event_log_subsystem/event_record.rb', line 19 def category @category end |
#data ⇒ Object
Returns the value of attribute data.
19 20 21 |
# File 'lib/rex/post/meterpreter/extensions/stdapi/sys/event_log_subsystem/event_record.rb', line 19 def data @data end |
#eventid ⇒ Object
Returns the value of attribute eventid.
18 19 20 |
# File 'lib/rex/post/meterpreter/extensions/stdapi/sys/event_log_subsystem/event_record.rb', line 18 def eventid @eventid end |
#generated ⇒ Object
Returns the value of attribute generated.
18 19 20 |
# File 'lib/rex/post/meterpreter/extensions/stdapi/sys/event_log_subsystem/event_record.rb', line 18 def generated @generated end |
#num ⇒ Object
Returns the value of attribute num.
18 19 20 |
# File 'lib/rex/post/meterpreter/extensions/stdapi/sys/event_log_subsystem/event_record.rb', line 18 def num @num end |
#strings ⇒ Object
Returns the value of attribute strings.
19 20 21 |
# File 'lib/rex/post/meterpreter/extensions/stdapi/sys/event_log_subsystem/event_record.rb', line 19 def strings @strings end |
#type ⇒ Object
Returns the value of attribute type.
19 20 21 |
# File 'lib/rex/post/meterpreter/extensions/stdapi/sys/event_log_subsystem/event_record.rb', line 19 def type @type end |
#written ⇒ Object
Returns the value of attribute written.
18 19 20 |
# File 'lib/rex/post/meterpreter/extensions/stdapi/sys/event_log_subsystem/event_record.rb', line 18 def written @written end |