MCPcopy
hub / github.com/fortra/impacket / pack

Method pack

impacket/smb.py:718–719  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

716 self._day = value
717
718 def pack(self):
719 return ((self._year << 9) & 0xFE00) + ((self._month << 5) & 0x01E0) + (self._day & 0x001F)
720
721 def pack_into(self):
722 """

Callers 15

pack_intoMethod · 0.95
packOptionsMethod · 0.45
set_wordMethod · 0.45
set_longMethod · 0.45
set_long_longMethod · 0.45
get_pseudo_headerMethod · 0.45
__str__Method · 0.45
get_pseudo_headerMethod · 0.45
n2aryMethod · 0.45
kerberosLoginMethod · 0.45
getSMBDateFunction · 0.45
getSMBTimeFunction · 0.45

Calls

no outgoing calls

Tested by 14

setUpMethod · 0.36
test_ntlmv1Method · 0.36
test_ntlmv2Method · 0.36
_set_u32Method · 0.36
_set_u16Method · 0.36
_set_u64Method · 0.36
_build_pageMethod · 0.36
build_nonresident_attrFunction · 0.36
build_file_name_attrFunction · 0.36
build_attr_list_entryFunction · 0.36
_setupMethod · 0.36