rapid7/metasploit-framework — pull request #3089 by todb-r7 (2014-03-11 19:34:03+00:00)
Title: Bug/8730 rescue instead of crash

This intends to fix the bug described at:

https://dev.metasploit.com/redmine/issues/8730

This bug was all tangled up in #2656 but that PR ended up going nowhere. Regardless, the bug should still get fixed.

Unfortunately, it's tricky to reproduce, because we're not quite sure how to elicit an InvalidWordCount error from a target SMB server.

So.... here are some kind of lame verification steps, partially lifted from #2656:

## Verification

- [ ] Run this module against target network that includes an SMB server with a known user
- [ ] Ensure that the module does not crash on the run.
- [ ] Ensure that the known user is reported correctly with the `creds` command, like so:

````
msf > creds

Credentials
===========

host port user pass type proof active?
---- ---- ---- ---- ---- ----- -------
10.6.0.118 445 bob trustno1 password true
````