Sha256: 705060807c88ff31e011d7f632e00a2b90c91218fc6a1085b90ac96831ea7571

Contents?: true

Size: 789 Bytes

Versions: 2

Compression:

Stored size: 789 Bytes

Contents

#!/usr/bin/env ruby
# -*- coding: binary -*-

module Rex
module Post
module Meterpreter
module Extensions
module Stdapi
module Sys
module EventLogSubsystem

###
#
# This class encapsulates the data from an event log record.
#
###
class EventRecord

	attr_reader :num, :generated, :written, :eventid
	attr_reader :type, :category, :strings, :data

	protected

	attr_writer :num, :generated, :written, :eventid
	attr_writer :type, :category, :strings, :data

	public

	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

end

end end end end end end end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
librex-0.0.68 lib/rex/post/meterpreter/extensions/stdapi/sys/event_log_subsystem/event_record.rb
librex-0.0.66 lib/rex/post/meterpreter/extensions/stdapi/sys/event_log_subsystem/event_record.rb