diff --git a/impacket/structure.py b/impacket/structure.py index 3493e68d9c..e3feaffbe2 100644 --- a/impacket/structure.py +++ b/impacket/structure.py @@ -11,6 +11,8 @@ from __future__ import division from __future__ import print_function + +import re from struct import pack, unpack, calcsize import six @@ -66,7 +68,7 @@ class is the class to use when unpacking ':' fields. some additional format specifiers: : just copy the bytes from the field into the output string (input may be string, other structure, or anything responding to __str__()) (for unpacking, all what's left is returned) z same as :, but adds a NUL byte at the end (asciiz) (for unpacking the first NUL byte is used as terminator) [asciiz string] - u same as z, but adds two NUL bytes at the end (after padding to an even size with NULs). (same for unpacking) [unicode string] + u same as z, but adds two NUL bytes at the end (after padding to an even size with NULs). (same for unpacking) [UTF16-le encoded bytes] w DCE-RPC/NDR string (it's a macro for [ '