CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
rapid7

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.

GitHub Repository: rapid7/metasploit-framework
Path: blob/master/lib/msf/core/module/uuid.rb
Views: 11784
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