metasploit-framework/modules/auxiliary/scanner/smb
Zinterax fb39e422aa Fix smb_login calling nonexistent method
When a Rex::Proto::SMB::Exceptions::InvalidWordCount exception is thrown by this module, it attempts to call the nonexistent method error_reason and throws a NoMethodError:

Auxiliary failed: NoMethodError undefined method `error_reason' for #<Rex::Proto::SMB::Exceptions::InvalidWordCount:0x007f48fcda0e48>

This changes uses the built in method get_error to return an error code.

[-] x.x.x.x:445 SMB - [1/1] - \\Domain - FAILED LOGIN (xxxxxxxx) xxxx : xxxxx [STATUS_WAIT_0]
2014-04-28 09:28:29 -04:00
..
pipe_auditor.rb Redo the boilerplate / splat 2013-10-15 13:51:57 -05:00
pipe_dcerpc_auditor.rb Redo the boilerplate / splat 2013-10-15 13:51:57 -05:00
psexec_loggedin_users.rb PSEXEC Refactor 2013-11-24 16:24:05 +00:00
smb2.rb Redo the boilerplate / splat 2013-10-15 13:51:57 -05:00
smb_enumshares.rb Modififed output for smb_enumshares module 2014-02-14 13:39:13 -06:00
smb_enumusers.rb Redo the boilerplate / splat 2013-10-15 13:51:57 -05:00
smb_enumusers_domain.rb Redo the boilerplate / splat 2013-10-15 13:51:57 -05:00
smb_login.rb Fix smb_login calling nonexistent method 2014-04-28 09:28:29 -04:00
smb_lookupsid.rb Redo the boilerplate / splat 2013-10-15 13:51:57 -05:00
smb_version.rb Redo the boilerplate / splat 2013-10-15 13:51:57 -05:00