Class: Rex::Post::Meterpreter::Extensions::Stdapi::Sys::EventLogSubsystem::EventRecord

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#categoryObject

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

#dataObject

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

#eventidObject

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

#generatedObject

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

#numObject

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

#stringsObject

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

#typeObject

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

#writtenObject

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