/
githubmirror
/
metasploit-framework
Обзор
Документация
Войти
/
githubmirror
/
metasploit-framework
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
lib/msf/core/module/uuid.rb
25 строк
535 B
bcoles
Msf::Module::UUID: Generate UUID using UUID_CHARS.sample(8).join
07 июн 2025, 17:24
Не верифицирован
07 июн 2025, 17:24
ffcc145
Код
Авторство
О чём код?
# NOTE: Metasploit does not use real UUIDs currently. # To modify this to be a real UUID we will need to do a database migration. # See: https://github.com/rapid7/metasploit-framework/pull/20170 module Msf::Module::UUID UUID_CHARS = [*('a'..'z'), *('0'..'9')].freeze private_constant :UUID_CHARS # # Attributes # # @return [String] A unique identifier for this module instance def uuid @uuid ||= UUID_CHARS.sample(8).join end protected # # Attributes # # @!attribute [w] uuid attr_writer :uuid end