Class: Rex::Proto::NTLM::Message::Type1

Inherits:
Object
  • Object
show all
Defined in:
lib/rex/proto/ntlm/message.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.parse(str) ⇒ Object



156
157
158
159
160
# File 'lib/rex/proto/ntlm/message.rb', line 156

def parse(str)
  t = new
  t.parse(str)
        t
end

Instance Method Details

#parse(str) ⇒ Object



163
164
165
166
167
168
169
170
171
172
# File 'lib/rex/proto/ntlm/message.rb', line 163

def parse(str)
  super(str)
  enable(:domain) if has_flag?(:DOMAIN_SUPPLIED)
  enable(:workstation) if has_flag?(:WORKSTATION_SUPPLIED)
  super(str)
  if ( (len = data_edge - head_size) > 0)
    self.padding = "\0" * len
    super(str)
  end
end