explicitly identify an auth failure through smb.py
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
satori |
Fix Committed
|
High
|
Sam Stavinoha |
Bug Description
It is common to see the following error/log output when trying to communicate with remote windows servers:
Impacket v0.9.12 - Copyright 2002-2014 Core Security Technologies
Trying protocol 51666/SMB...
SMB SessionError: STATUS_
It would be useful to read this output explicitly (if it is the consistent output across most windows servers) and raise a specific authentication failure exception to inform the caller that the supplied credentials were invalid.
What currently happens is SubprocessError: subprocess with pid: 12345 has terminated unexpectedly (not informative!)
The code change would probably be here:
https:/ /github. com/stackforge/ satori/ blob/5f7272abf7 d44d5b3838eb0d9 f6e23f416b5b60b /satori/ smb.py# L299-L325