2021-01-28 10:35:25 +00:00
|
|
|
require 'rex/text'
|
|
|
|
|
|
2014-10-17 11:31:56 -05:00
|
|
|
module Msf::Module::UUID
|
|
|
|
|
#
|
|
|
|
|
# Attributes
|
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
# @!attribute [r] uuid
|
|
|
|
|
# A unique identifier for this module instance
|
|
|
|
|
attr_reader :uuid
|
|
|
|
|
|
|
|
|
|
protected
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
|
# Attributes
|
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
# @!attribute [w] uuid
|
|
|
|
|
attr_writer :uuid
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
|
# Instance Methods
|
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
def generate_uuid
|
|
|
|
|
self.uuid = Rex::Text.rand_text_alphanumeric(8).downcase
|
|
|
|
|
end
|
2021-01-28 10:35:25 +00:00
|
|
|
end
|