11#ifndef __PACKET_SMB2_H__
12#define __PACKET_SMB2_H__
14#include "packet-dcerpc.h"
15#include "packet-smb.h"
16#include "packet-ntlmssp.h"
42 uint64_t fid_persistent;
43 uint64_t fid_volatile;
54 gboolean delete_on_close;
55 uint32_t desired_access;
56 uint32_t granted_access;
69 uint32_t frame_req, frame_res;
72 uint8_t *preauth_hash_req, *preauth_hash_res;
79 smb2_extra_info_t extra_info_type;
86 const uint8_t *filename;
91 uint32_t connect_frame;
92 uint32_t disconnect_frame;
97#define SMB2_PREAUTH_HASH_SIZE 64
98#define AES_KEY_SIZE 16
106 uint16_t server_port;
107 uint32_t session_key_frame;
108 unsigned session_key_len;
109 uint8_t session_key[NTLMSSP_KEY_LEN*2];
110 uint8_t signing_key[NTLMSSP_KEY_LEN];
111 uint8_t client_decryption_key16[AES_KEY_SIZE];
112 uint8_t server_decryption_key16[AES_KEY_SIZE];
113 uint8_t client_decryption_key32[AES_KEY_SIZE*2];
114 uint8_t server_decryption_key32[AES_KEY_SIZE*2];
121 uint8_t preauth_hash[SMB2_PREAUTH_HASH_SIZE];
129 GHashTable *unmatched;
136 uint8_t *preauth_hash_current;
137 uint8_t preauth_hash_con[SMB2_PREAUTH_HASH_SIZE];
138 uint8_t preauth_hash_ses[SMB2_PREAUTH_HASH_SIZE];
146#define SMB2_FLAGS_RESPONSE 0x00000001
147#define SMB2_FLAGS_ASYNC_CMD 0x00000002
148#define SMB2_FLAGS_CHAINED 0x00000004
149#define SMB2_FLAGS_SIGNATURE 0x00000008
150#define SMB2_FLAGS_PRIORITY_MASK 0x00000070
151#define SMB2_FLAGS_DFS_OP 0x10000000
152#define SMB2_FLAGS_REPLAY_OPERATION 0x20000000
154#define SMB2_FLAGS_PRIORITY1 0x00000010
155#define SMB2_FLAGS_PRIORITY2 0x00000020
156#define SMB2_FLAGS_PRIORITY3 0x00000030
157#define SMB2_FLAGS_PRIORITY4 0x00000040
158#define SMB2_FLAGS_PRIORITY5 0x00000050
159#define SMB2_FLAGS_PRIORITY6 0x00000060
160#define SMB2_FLAGS_PRIORITY7 0x00000070
163#define SMB2_FLAGS_ATTR_ENCRYPTED 0x00004000
164#define SMB2_FLAGS_ATTR_INDEXED 0x00002000
165#define SMB2_FLAGS_ATTR_OFFLINE 0x00001000
166#define SMB2_FLAGS_ATTR_COMPRESSED 0x00000800
167#define SMB2_FLAGS_ATTR_REPARSEPOINT 0x00000400
168#define SMB2_FLAGS_ATTR_SPARSE 0x00000200
169#define SMB2_FLAGS_ATTR_TEMPORARY 0x00000100
170#define SMB2_FLAGS_ATTR_NORMAL 0x00000080
171#define SMB2_FLAGS_ATTR_DEVICE 0x00000040
172#define SMB2_FLAGS_ATTR_ARCHIVE 0x00000020
173#define SMB2_FLAGS_ATTR_DIRECTORY 0x00000010
174#define SMB2_FLAGS_ATTR_VOLUMEID 0x00000008
175#define SMB2_FLAGS_ATTR_SYSTEM 0x00000004
176#define SMB2_FLAGS_ATTR_HIDDEN 0x00000002
177#define SMB2_FLAGS_ATTR_READONLY 0x00000001
180#define SMB2_FID_TYPE_UNKNOWN 0
181#define SMB2_FID_TYPE_FILE 1
182#define SMB2_FID_TYPE_DIR 2
183#define SMB2_FID_TYPE_PIPE 3
184#define SMB2_FID_TYPE_OTHER 4
187#define SMB2_COM_NEGOTIATE_PROTOCOL 0x00
188#define SMB2_COM_SESSION_SETUP 0x01
189#define SMB2_COM_SESSION_LOGOFF 0x02
190#define SMB2_COM_TREE_CONNECT 0x03
191#define SMB2_COM_TREE_DISCONNECT 0x04
192#define SMB2_COM_CREATE 0x05
193#define SMB2_COM_CLOSE 0x06
194#define SMB2_COM_FLUSH 0x07
195#define SMB2_COM_READ 0x08
196#define SMB2_COM_WRITE 0x09
197#define SMB2_COM_LOCK 0x0A
198#define SMB2_COM_IOCTL 0x0B
199#define SMB2_COM_CANCEL 0x0C
200#define SMB2_COM_KEEPALIVE 0x0D
201#define SMB2_COM_FIND 0x0E
202#define SMB2_COM_NOTIFY 0x0F
203#define SMB2_COM_GETINFO 0x10
204#define SMB2_COM_SETINFO 0x11
205#define SMB2_COM_BREAK 0x12
209 uint32_t ioctl_function;
238 unsigned comp_offset;
Definition packet-dcerpc.h:54
Definition guid-utils.h:23
Definition packet_info.h:43
Definition packet-smb2.h:127
Definition packet-smb2.h:36
Definition packet-smb2.h:41
Definition packet-smb2.h:207
Definition packet-smb2.h:65
Definition packet-smb2.h:100
Definition packet-smb2.h:89
Definition packet-smb.h:112
Extended metadata for a value_string array.
Definition value_string.h:325
Definition tvbuff-int.h:36