CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
rapid7

CoCalc provides the best real-time collaborative environment for Jupyter Notebooks, LaTeX documents, and SageMath, scalable from individual users to large groups and classes!

GitHub Repository: rapid7/metasploit-framework
Path: blob/master/lib/msf/core/module/uuid.rb
Views: 1904
1
require 'rex/text'
2
3
module Msf::Module::UUID
4
#
5
# Attributes
6
#
7
8
# @!attribute [r] uuid
9
# A unique identifier for this module instance
10
attr_reader :uuid
11
12
protected
13
14
#
15
# Attributes
16
#
17
18
# @!attribute [w] uuid
19
attr_writer :uuid
20
21
22
#
23
# Instance Methods
24
#
25
26
def generate_uuid
27
self.uuid = Rex::Text.rand_text_alphanumeric(8).downcase
28
end
29
end
30
31