This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import base64 | |
| import argparse | |
| import sys | |
| print(f"NOTE: You need to use --self-test-disable in Hashcat", file=sys.stderr) | |
| def convert_to_hashcat(werkzeug_hash: str) -> str: | |
| # Split Werkzeug data | |
| parts = werkzeug_hash.strip().split("$") | |
| if len(parts) < 3: | |
| raise ValueError("invalid werkzeug hash format") | |
| params = parts[0].split(":") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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") |