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 reason code - was not displaying #428

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

godylockz
Copy link
Contributor

@godylockz godylockz commented Sep 27, 2024

Fix reason code - so it consistently displays.

Kept getting [-] on valid RDP credentials and couldn't figure out why. Is netexec not compatible with Credential Security Support Provider (CredSSP) / Network Level Authentication (NLA): ?

Xfreerdp worked, but only when setting tls-seclevel:0 flag.

/bin/xfreerdp /u:james /p:test /v:172.16.0.2 /cert-ignore /tls-seclevel:0

Before:

nxc rdp 172.16.0.2 -u james -p test
RDP         172.16.0.2      3389   DC               [*] Windows 8.1 or Windows Server 2012 R2 Build 9600 (name:DC) (domain:test.com) (nla:True)
RDP         172.16.0.2      3389   DC               [-] test.com\james:greenday

After:

nxc rdp 172.16.0.2 -u james -p test
RDP         172.16.0.2      3389   DC               [*] Windows 8.1 or Windows Server 2012 R2 Build 9600 (name:DC) (domain:test.com) (nla:True)
RDP         172.16.0.2      3389   DC               [-] test.com\james:greenday (CredSSP - Server verification failed!)

@NeffIsBack
Copy link
Contributor

Hey thanks for the PR!
Can you explain what was the issue in the code and how this fixes it?
Also, how could i reproduce the issue?

@godylockz
Copy link
Contributor Author

godylockz commented Sep 28, 2024

Hey thanks for the PR!
Can you explain what was the issue in the code and how this fixes it?

The reason was that the indication of the inconclusive result was not shown. I updated my previous post to show before/after behavior. The reason of the exception was never initialized to the exception so it isn't recognized by the end user.

Also, how could i reproduce the issue?

It can be reproduced by attempting a valid successful login on a Windows Server 2012 with CredSSP enabled.

@NeffIsBack
Copy link
Contributor

Sorry, couldn't get my setup to trigger the error and there are multiple issues with the code now. The variable reason was already used before and now multiple statements does not make sense anymore:
image

@NeffIsBack NeffIsBack added bug-fix This Pull Request fixes a bug Waiting for response labels Oct 11, 2024
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 Waiting for response
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants