Skip to content
This repository has been archived by the owner on Dec 6, 2023. It is now read-only.

Fix mssql check_if_admin function #546

Merged
merged 1 commit into from Mar 6, 2022

Conversation

qtc-de
Copy link
Contributor

@qtc-de qtc-de commented Mar 3, 2022

The check_if_admin function from mssql.py takes an additional auth parameter, that is actually not used. Other parts of the code are calling the function without the parameter, which leads to an error when enumerating mssql endpoints. By simply removing the parameter and fixing the locations that use it, the issue gets resolved.

The actual bug is currently sitting at line 216. This line calls the check_if_admin function with no parameters, despite the current version requires one.

The check_if_admin function from mssql.py takes an additional auth
parameter, that is actually not used. Other parts of the code are
calling the function without the parameter, which leads to an error when
enumerating mssql endpoints. By simply removing the parameter and fixing
the locations that use it, the issue gets resolved.
@mpgn
Copy link
Contributor

mpgn commented Mar 6, 2022

Indeed really strange :)

@mpgn mpgn merged commit 2467a57 into byt3bl33d3r:master Mar 6, 2022
@willl03
Copy link

willl03 commented Sep 23, 2022

Hey guys, this commit breaks SQL auth with the --local-auth argument. With CME 5.30, it says:
ERROR(xxx\yyy): Line 1: Login failed. The login is from an untrusted domain and cannot be used with Windows authentication.
I tried with 5.22 and SQL auth works fine. @mpgn @qtc-de Thanks !

@willl03
Copy link

willl03 commented Sep 23, 2022

There's more to this, I reverted just that commit, built 5.30, and it fails again.

@mpgn
Copy link
Contributor

mpgn commented Sep 23, 2022

So maybe it is not linked to this commit at all 😁

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants