mirror of
https://github.com/vanhauser-thc/thc-hydra.git
synced 2025-07-05 20:41:39 -07:00
improved compatibility when null sessions fail
This commit is contained in:
parent
1ea3fc5a28
commit
4e45f85fbb
1 changed files with 8 additions and 0 deletions
|
@ -131,6 +131,14 @@ bool smb2_run_test(creds_t *cr, const char *server, uint16_t port) {
|
|||
smbc_free_context(ctx, 1);
|
||||
return true;
|
||||
break;
|
||||
case EPERM:
|
||||
// Probably this means access denied inspite of mention above
|
||||
// about being related to wrong workgroup. I have observed
|
||||
// libsmbclient emitting this when connecting to a vanilla install
|
||||
// of Windows 2019 server (non-domain) with wrong credentials. It
|
||||
// appears related to a fallback null session being rejected after
|
||||
// the library tries with provided credentials. If the null
|
||||
// session is accepted, EACCES is returned.
|
||||
case EACCES:
|
||||
// 100% access denied
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue