Files
metasploit-gs/lib/msf/core/module/uuid.rb
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

30 lines
371 B
Ruby
Raw Normal View History

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