Class: Rex::Proto::MsDtyp::MsDtypGuid
- Inherits:
-
RubySMB::Dcerpc::Uuid
- Object
- RubySMB::Dcerpc::Uuid
- Rex::Proto::MsDtyp::MsDtypGuid
- Defined in:
- lib/rex/proto/ms_dtyp.rb
Overview
[Universal Unique Identifier](pubs.opengroup.org/onlinepubs/9629399/apdxa.htm) The online documentation at [2.3.4.2](learn.microsoft.com/en-us/openspecs/windows_protocols/ms-dtyp/001eec5a-7f8b-4293-9e21-ca349392db40) weirdly doesn’t mention this needs to be 4 byte aligned for us to read it correctly, which the RubySMB::Dcerpc::Uuid definition takes care of.
Class Method Summary collapse
Class Method Details
.random_generate ⇒ Object
85 86 87 88 89 |
# File 'lib/rex/proto/ms_dtyp.rb', line 85 def self.random_generate # Taken from the "D" format as specified in # https://learn.microsoft.com/en-us/dotnet/api/system.guid.tostring?view=net-7.0 "{#{Rex::Text.rand_text_hex(8)}-#{Rex::Text.rand_text_hex(4)}-#{Rex::Text.rand_text_hex(4)}-#{Rex::Text.rand_text_hex(4)}-#{Rex::Text.rand_text_hex(12)}}".downcase end |