-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Manual decode summary (pairs -> bytes -> ASCII)
Pairs: FH EB FE FD EP EO CN EB EM FA EI EB CN DC CA BM
Bytes: 0x57 0x41 0x54 0x53 0x4F 0x4E 0x2D 0x41 0x4C 0x50 0x48 0x41 0x2D 0x32 0x20 0x1C
ASCII (first 15 bytes): "WATSON-ALPHA-2 " -> trimmed -> "WATSON-ALPHA-2"
Suffix: 0x1C (NetBIOS suffix/service identifier).
s = "FHEBFEFDEPEOCNEBEMFAEIEBCNDCCABM"
# split into pairs and decode
pairs = [s[i:i+2] for i in range(0, len(s), 2)]
bytes_decoded = []
for a,b in pairs:
v = (ord(a) - ord('A')) << 4 | (ord(b) - ord('A'))
bytes_decoded.append(v)
name = bytes(bytes_decoded[:15]).decode('ascii', errors='replace').rstrip()
suffix = bytes_decoded[15]
print(name, hex(suffix))
Metadata
Metadata
Assignees
Labels
No labels