HTB Starting Point - Impacket : unpack requires a buffer of 1 bytes

Fixed.

I am on impacket version 0.9.22.
I am still getting this error.

It is a problem with the server:
Connect to the server , reboot it then try again. eg:

# wmiexec.py administrator:MEGACORP_4dm1n\!\!@10.10.10.27
Impacket v0.9.21 - Copyright 2020 SecureAuth Corporation

[*] SMBv3.0 dialect used
[!] Launching semi-interactive shell - Careful what you execute
[!] Press help for extra shell commands
C:\>shutdown /r /t 0 /f

C:\>exit
# mssqlclient.py ARCHETYPE/sql_svc:M3g4c0rp123@10.10.10.27 -windows-auth
Impacket v0.9.21 - Copyright 2020 SecureAuth Corporation

[*] Encryption required, switching to TLS
[*] ENVCHANGE(DATABASE): Old Value: master, New Value: master
[*] ENVCHANGE(LANGUAGE): Old Value: , New Value: us_english
[*] ENVCHANGE(PACKETSIZE): Old Value: 4096, New Value: 16192
[*] INFO(ARCHETYPE): Line 1: Changed database context to 'master'.
[*] INFO(ARCHETYPE): Line 1: Changed language setting to us_english.
[*] ACK: Result: 1 - Microsoft SQL Server (140 3232)
[!] Press help for extra shell commands
SQL>

Check if your SAM and SYSTEM files are valid This link may help: unpack requires a buffer of 4 bytes · Issue #1052 · fortra/impacket · GitHub