Skip to content

Commit 34c24b3

Browse files
committed
Msf::Module::UUID#generate_uuid: Replace Rex::Text with SecureRandom.uuid
1 parent b5129fe commit 34c24b3

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lib/msf/core/module/uuid.rb

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
require 'rex/text'
1+
require 'securerandom'
22

33
module Msf::Module::UUID
44
#
@@ -18,12 +18,11 @@ module Msf::Module::UUID
1818
# @!attribute [w] uuid
1919
attr_writer :uuid
2020

21-
2221
#
2322
# Instance Methods
2423
#
2524

2625
def generate_uuid
27-
self.uuid = Rex::Text.rand_text_alphanumeric(8).downcase
26+
SecureRandom.uuid
2827
end
2928
end

0 commit comments

Comments
 (0)