def decode(self, message):
assert message.command == SMB2_COM_CREATE
if message.status == 0:
struct_size, self.oplock, _, self.create_action, \
create_time, lastaccess_time, lastwrite_time, change_time, \
self.allocation_size, self.file_size, self.file_attributes, \
_, self.fid, _, _ = struct.unpack(self.STRUCTURE_FORMAT, message.raw_data[SMB2Message.HEADER_SIZE:SMB2Message.HEADER_SIZE+self.STRUCTURE_SIZE])
self.create_time = convertFILETIMEtoEpoch(create_time)
self.lastaccess_time = convertFILETIMEtoEpoch(lastaccess_time)
self.lastwrite_time = convertFILETIMEtoEpoch(lastwrite_time)
self.change_time = convertFILETIMEtoEpoch(change_time)
smb2_structs.py 文件源码
python
阅读 28
收藏 0
点赞 0
评论 0
评论列表
文章目录