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 guint64 fid_persistent;
65 guint32 frame_req, frame_res;
67 guint8 *preauth_hash_req, *preauth_hash_res;
74 smb2_extra_info_t extra_info_type;
79 guint32 connect_frame;
84 #define SMB2_PREAUTH_HASH_SIZE 64
85 #define AES_KEY_SIZE 16
94 guint8 session_key[NTLMSSP_KEY_LEN];
95 guint8 signing_key[NTLMSSP_KEY_LEN];
96 guint8 client_decryption_key16[AES_KEY_SIZE];
97 guint8 server_decryption_key16[AES_KEY_SIZE];
98 guint8 client_decryption_key32[AES_KEY_SIZE*2];
99 guint8 server_decryption_key32[AES_KEY_SIZE*2];
106 guint8 preauth_hash[SMB2_PREAUTH_HASH_SIZE];
114 GHashTable *unmatched;
121 guint8 *preauth_hash_current;
122 guint8 preauth_hash_con[SMB2_PREAUTH_HASH_SIZE];
123 guint8 preauth_hash_ses[SMB2_PREAUTH_HASH_SIZE];
131 #define SMB2_FLAGS_RESPONSE 0x00000001
132 #define SMB2_FLAGS_ASYNC_CMD 0x00000002
133 #define SMB2_FLAGS_CHAINED 0x00000004
134 #define SMB2_FLAGS_SIGNATURE 0x00000008
135 #define SMB2_FLAGS_PRIORITY_MASK 0x00000070
136 #define SMB2_FLAGS_DFS_OP 0x10000000
137 #define SMB2_FLAGS_REPLAY_OPERATION 0x20000000
139 #define SMB2_FLAGS_PRIORITY1 0x00000010
140 #define SMB2_FLAGS_PRIORITY2 0x00000020
141 #define SMB2_FLAGS_PRIORITY3 0x00000030
142 #define SMB2_FLAGS_PRIORITY4 0x00000040
143 #define SMB2_FLAGS_PRIORITY5 0x00000050
144 #define SMB2_FLAGS_PRIORITY6 0x00000060
145 #define SMB2_FLAGS_PRIORITY7 0x00000070
148 #define SMB2_FLAGS_ATTR_ENCRYPTED 0x00004000
149 #define SMB2_FLAGS_ATTR_INDEXED 0x00002000
150 #define SMB2_FLAGS_ATTR_OFFLINE 0x00001000
151 #define SMB2_FLAGS_ATTR_COMPRESSED 0x00000800
152 #define SMB2_FLAGS_ATTR_REPARSEPOINT 0x00000400
153 #define SMB2_FLAGS_ATTR_SPARSE 0x00000200
154 #define SMB2_FLAGS_ATTR_TEMPORARY 0x00000100
155 #define SMB2_FLAGS_ATTR_NORMAL 0x00000080
156 #define SMB2_FLAGS_ATTR_DEVICE 0x00000040
157 #define SMB2_FLAGS_ATTR_ARCHIVE 0x00000020
158 #define SMB2_FLAGS_ATTR_DIRECTORY 0x00000010
159 #define SMB2_FLAGS_ATTR_VOLUMEID 0x00000008
160 #define SMB2_FLAGS_ATTR_SYSTEM 0x00000004
161 #define SMB2_FLAGS_ATTR_HIDDEN 0x00000002
162 #define SMB2_FLAGS_ATTR_READONLY 0x00000001
165 #define SMB2_FID_TYPE_UNKNOWN 0
166 #define SMB2_FID_TYPE_FILE 1
167 #define SMB2_FID_TYPE_DIR 2
168 #define SMB2_FID_TYPE_PIPE 3
169 #define SMB2_FID_TYPE_OTHER 4
172 #define SMB2_COM_NEGOTIATE_PROTOCOL 0x00
173 #define SMB2_COM_SESSION_SETUP 0x01
174 #define SMB2_COM_SESSION_LOGOFF 0x02
175 #define SMB2_COM_TREE_CONNECT 0x03
176 #define SMB2_COM_TREE_DISCONNECT 0x04
177 #define SMB2_COM_CREATE 0x05
178 #define SMB2_COM_CLOSE 0x06
179 #define SMB2_COM_FLUSH 0x07
180 #define SMB2_COM_READ 0x08
181 #define SMB2_COM_WRITE 0x09
182 #define SMB2_COM_LOCK 0x0A
183 #define SMB2_COM_IOCTL 0x0B
184 #define SMB2_COM_CANCEL 0x0C
185 #define SMB2_COM_KEEPALIVE 0x0D
186 #define SMB2_COM_FIND 0x0E
187 #define SMB2_COM_NOTIFY 0x0F
188 #define SMB2_COM_GETINFO 0x10
189 #define SMB2_COM_SETINFO 0x11
190 #define SMB2_COM_BREAK 0x12
194 guint32 ioctl_function;
Definition: packet-dcerpc.h:54
Definition: packet_info.h:44
Definition: packet-smb2.h:112
Definition: packet-smb2.h:36
Definition: packet-smb2.h:41
Definition: packet-smb2.h:192
Definition: packet-smb2.h:61
Definition: packet-smb2.h:87
Definition: packet-smb2.h:77
Definition: packet-smb.h:112
Definition: value_string.h:170
Definition: wmem_map.c:44
Definition: tvbuff-int.h:35