Skip to content

Commit b54fdb7

Browse files
authored
Fix bad UTF16 decoding on big endian (#4797)
1 parent e2941ba commit b54fdb7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scapy/layers/msrpce/mseerr.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -623,7 +623,7 @@ def show(self) -> None:
623623
if err.ComputerName.Type == EEComputerNamePresent.eecnpPresent:
624624
print(
625625
" | ComputerName:",
626-
err.ComputerName.value.value.valueof("pString").decode("utf-16"),
626+
err.ComputerName.value.value.valueof("pString").decode("utf-16le"),
627627
)
628628
print(
629629
" | Generating Component:",

0 commit comments

Comments
 (0)