Class: Rex::Proto::NTLM::Message::Type3

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

Class Method Summary collapse

Class Method Details

.create(arg, opt = {}) ⇒ Object



292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
# File 'lib/rex/proto/ntlm/message.rb', line 292

def create(arg, opt ={})
  t = new
  t.lm_response = arg[:lm_response]
  t.ntlm_response = arg[:ntlm_response]
  t.domain = arg[:domain]
  t.user = arg[:user]
  t.workstation = arg[:workstation]

  if arg[:session_key]
    t.enable(:session_key)
    t.session_key = arg[session_key]
  end
  if arg[:flag]
    t.enable(:session_key)
    t.enable(:flag)
    t.flag = arg[:flag]
  end
  t
end

.parse(str) ⇒ Object



286
287
288
289
290
# File 'lib/rex/proto/ntlm/message.rb', line 286

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