Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(smb errors): getErrorString only returns one item, not a tuple #119

Merged
merged 1 commit into from
Nov 26, 2023

Conversation

Marshall-Hallenbeck
Copy link
Collaborator

fixes #117

@XiaoliChan
Copy link
Contributor

variable desc was use in logger

f"{domain}\\{self.username}{used_ccache} {error} {f'({desc})' if self.args.verbose else ''}",

@Marshall-Hallenbeck
Copy link
Collaborator Author

Marshall-Hallenbeck commented Nov 13, 2023

variable desc was use in logger

f"{domain}\\{self.username}{used_ccache} {error} {f'({desc})' if self.args.verbose else ''}",

Good catch, looks like we should fix this everywhere. getErrorString() returns just a string, not a tuple, so I guess Impacket changed?
We should probably handle all these errors natively through Python, and not use Impacket's functions...

@NeffIsBack
Copy link
Contributor

variable desc was use in logger

f"{domain}\\{self.username}{used_ccache} {error} {f'({desc})' if self.args.verbose else ''}",

Good catch, looks like we should fix this everywhere. getErrorString() returns just a string, not a tuple, so I guess Impacket changed?

We should probably handle all these errors natively through Python, and not use Impacket's functions...

Can you check that somehow in impacket? It's really surprising to me that this obvious fault should be that long in the code without us running into it

@Marshall-Hallenbeck
Copy link
Collaborator Author

@NeffIsBack they changed it in Impacket: fortra/impacket@33058eb

@Marshall-Hallenbeck Marshall-Hallenbeck added the bug-fix This Pull Request fixes a bug label Nov 13, 2023
@Marshall-Hallenbeck
Copy link
Collaborator Author

Holding off on this fix until we hear back from fortra/impacket#1311

Currently it should be working in main since @mpgn reverted the gdki branch update to their master branch.

@Marshall-Hallenbeck Marshall-Hallenbeck merged commit 1784d55 into main Nov 26, 2023
1 of 2 checks passed
@Marshall-Hallenbeck Marshall-Hallenbeck deleted the issues/117 branch November 26, 2023 03:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug-fix This Pull Request fixes a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error on SMB using wrong password
3 participants