Skip to content

Instantly share code, notes, and snippets.

View 1upbyte's full-sized avatar

Pablo Comino 1upbyte

View GitHub Profile
@1upbyte
1upbyte / convert_raw_sid.py
Created October 25, 2025 17:47
convert raw SID to readable format (msssql)
# Get SID from MSSQL
# MSSQL> SELECT SUSER_SID()
import struct
import sys
def convert_sid(raw_sid: bytes) -> str:
if not raw_sid:
raise ValueError("Empty SID input")