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

Add output if a successful authentication is via Guest privileges #333

Merged
merged 6 commits into from
Jun 7, 2024

Conversation

Marshall-Hallenbeck
Copy link
Collaborator

@Marshall-Hallenbeck Marshall-Hallenbeck commented Jun 5, 2024

@Dfte wrote a great post about Guest vs NULL sessions here, so I have updated the SMB plaintext&hash login code to tell the user if the login was via Guest privileges.

Hopefully this along with the blog post helps alleviate confusion!

@mpgn @NeffIsBack I added code to check if the hash is 16 or 32 bytes, do you think it's necessary? Helps catch if people off-by-one the length of hashes. There's no reason the hash should be anything else, right?

image

@Marshall-Hallenbeck Marshall-Hallenbeck added the enhancement New feature or request label Jun 5, 2024
@Marshall-Hallenbeck Marshall-Hallenbeck self-assigned this Jun 5, 2024
@Dfte
Copy link
Contributor

Dfte commented Jun 5, 2024

Love it ahah! Yeah I see no reason why hashes could be anything except 16/32 :)

@mpgn
Copy link
Collaborator

mpgn commented Jun 5, 2024

yeah nice :)

mpgn
mpgn previously approved these changes Jun 5, 2024
@mpgn mpgn added this to the v1.3.0 milestone Jun 5, 2024
@NeffIsBack
Copy link
Contributor

Did not test that, but shouldn't LM:NT hash be exactly 33 chars? :D

@NeffIsBack
Copy link
Contributor

On that note, @Marshall-Hallenbeck can you add tests for a file containing hashes, including a test where we use the full LM:NT hash?

nxc/connection.py Outdated Show resolved Hide resolved
@NeffIsBack
Copy link
Contributor

Somehow github doesn't show the latest tests anymore, but after mpgn approval the tests failed for py3.8 @Marshall-Hallenbeck

ref: https://github.com/Pennyw0rth/NetExec/actions/runs/9384835180

@Marshall-Hallenbeck
Copy link
Collaborator Author

@NeffIsBack uhh weird, that is a package error, and I didn't change anything about the packages.

@NeffIsBack
Copy link
Contributor

Rerun the tests and they are looking fine now. Though, for py3.8 the Threadpool has some weird error, looks like #330

ref: https://github.com/Pennyw0rth/NetExec/actions/runs/9384835180/job/25851429136

Copy link
Contributor

@NeffIsBack NeffIsBack left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM
image

@NeffIsBack NeffIsBack merged commit eedbce8 into main Jun 7, 2024
6 checks passed
@NeffIsBack NeffIsBack deleted the marshall-guest-login branch June 7, 2024 17:58
@NeffIsBack
Copy link
Contributor

Oh, @Marshall-Hallenbeck you did add a hash file but not a test using it, did you?

@Marshall-Hallenbeck
Copy link
Collaborator Author

@NeffIsBack oop yeah you're right, I'll add 'em and PR real quick

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants