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



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

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



289
290
291
292
293
# File 'lib/rex/proto/ntlm/message.rb', line 289

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