lib/rex/proto/smb/simpleclient.rb in librex-0.0.12 vs lib/rex/proto/smb/simpleclient.rb in librex-0.0.13

- old
+ new

@@ -180,11 +180,11 @@ end def login( name = '', user = '', pass = '', domain = '', verify_signature = false, usentlmv2 = false, usentlm2_session = true, send_lm = true, use_lanman_key = false, send_ntlm = true, - native_os = 'Windows 2000 2195', native_lm = 'Windows 2000 5.0') + native_os = 'Windows 2000 2195', native_lm = 'Windows 2000 5.0', spnopt = {}) begin if (self.direct != true) self.client.session_request(name) @@ -196,9 +196,11 @@ self.client.usentlm2_session = usentlm2_session self.client.send_lm = send_lm self.client.use_lanman_key = use_lanman_key self.client.send_ntlm = send_ntlm self.client.negotiate + self.client.spnopt = spnopt + ok = self.client.session_setup(user, pass, domain) rescue ::Interrupt raise $! rescue ::Exception => e n = XCEPT::LoginError.new