diff --git a/nxc/protocols/mssql.py b/nxc/protocols/mssql.py index 7fa9746f..4ffb4fbd 100755 --- a/nxc/protocols/mssql.py +++ b/nxc/protocols/mssql.py @@ -451,7 +451,7 @@ class mssql(connection): # Query known group to determine raw SID & convert to canon raw_domain_sid = self.conn.sql_query(f"SELECT SUSER_SID('{domain}\\Domain Admins')")[0][""] - domain_sid = SID(bytes.fromhex(raw_domain_sid.decode())).formatCanonical()[:-4] + domain_sid = SID(bytes.fromhex(raw_domain_sid)).formatCanonical()[:-4] except Exception as e: self.logger.fail(f"Error parsing SID. Not domain joined?: {e}") return entries diff --git a/poetry.lock b/poetry.lock index 13dc2e2e..418cd087 100644 --- a/poetry.lock +++ b/poetry.lock @@ -516,7 +516,7 @@ dev = ["black (>=23.0.0)", "mypy (>=1.0.0)", "pytest (>=7.0.0)", "pytest-cov (>= [[package]] name = "certipy-ad" -version = "5.0.4" +version = "5.1.0" description = "Active Directory Certificate Services enumeration and abuse" optional = false python-versions = ">=3.10" @@ -544,7 +544,7 @@ bloodhound = ["neo4j (>=5.28.1,<5.29.0)"] type = "git" url = "https://github.com/Pennyw0rth/Certipy" reference = "HEAD" -resolved_reference = "49a4aa6b17d2246491a81f89b0d7d74b732c66d4" +resolved_reference = "069e03113095aa02772aa3d8debea90654933fe4" [[package]] name = "cffi"