-
Notifications
You must be signed in to change notification settings - Fork 68
/
whatsapp-proto.h
64 lines (53 loc) · 1.84 KB
/
whatsapp-proto.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
/*
* WhatsApp protocol dissector
* Written by David Guillen Fandos <[email protected]>
* Based on WhatsAPI sources
*
*/
extern const char * global_imei_whatsapp_1;
extern gboolean global_enable_decoding;
typedef struct _wa_userpass_t {
char* username;
char* password;
} wa_userpass_t;
extern wa_userpass_t * wa_userpass_uats;
extern guint wa_userpass_uats_num;
int whatsapp_data_length(const char * data, int len);
int whatsapp_data_dissect_tree(const char * data, int len, proto_tree *tree, tvbuff_t *tvb, packet_info *pinfo);
extern int hf_whatsapp_node;
extern int hf_whatsapp_nodesize8;
extern int hf_whatsapp_nodesize16;
extern int hf_whatsapp_attr_key;
extern int hf_whatsapp_attr_val;
extern int hf_whatsapp_attr_crypted;
extern int hf_whatsapp_attr_compressed;
extern int hf_whatsapp_attr_flags;
extern int hf_whatsapp_message;
extern int message_whatsapp;
extern int tree_whatsapp;
extern int userserver_string;
extern int tree_msg_flags;
extern int hf_whatsapp_userserver;
extern int hf_whatsapp_attribute;
extern int hf_whatsapp_attr_key_enc;
extern int hf_whatsapp_attr_val_enc;
extern int hf_whatsapp_attr_key_enc_ext;
extern int hf_whatsapp_attr_val_enc_ext;
extern int hf_whatsapp_attr_key_plain;
extern int hf_whatsapp_attr_val_plain;
extern int hf_whatsapp_tag_enc;
extern int hf_whatsapp_tag_enc_ext;
extern int hf_whatsapp_tag_plain;
extern int hf_whatsapp_nvalue_enc;
extern int hf_whatsapp_nvalue_enc_ext;
extern int hf_whatsapp_nibble_enc;
extern int hf_whatsapp_nvalue_plain;
extern int hf_whatsapp_crypted_hmac_hash;
extern int whatsapp_msg_crypted_message;
extern int whatsapp_msg_crypted_payload;
extern int whatsapp_msg_crypted_payload_mismatch;
extern int whatsapp_msg_compressed_message;
extern int whatsapp_msg;
extern int proto_whatsapp;
extern const value_string strings_list[];
extern const value_string strings_list_ext[];