metasploit-framework/lib/msf/core/module/uuid.rb

27 lines
350 B
Ruby
Raw Normal View History

2014-10-17 16:31:56 +00: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
end