Kerberos: add support for Krb-Error messages (#1647)
This commit is contained in:
@@ -424,7 +424,7 @@ void ndpi_search_kerberos(struct ndpi_detection_module_struct *ndpi_struct,
|
||||
|
||||
return;
|
||||
} else if(kerberos_len == expected_len) {
|
||||
if(packet->payload_packet_len > 128) {
|
||||
if(packet->payload_packet_len > 64) {
|
||||
u_int16_t koffset, i;
|
||||
|
||||
for(i=8; i<16; i++)
|
||||
@@ -444,6 +444,7 @@ void ndpi_search_kerberos(struct ndpi_detection_module_struct *ndpi_struct,
|
||||
|
||||
if(((packet->payload[koffset] == 0x0A)
|
||||
|| (packet->payload[koffset] == 0x0C)
|
||||
|| (packet->payload[koffset] == 0x1E)
|
||||
|| (packet->payload[koffset] == 0x0D)
|
||||
|| (packet->payload[koffset] == 0x0E))) {
|
||||
u_int16_t koffsetp, body_offset = 0, pad_len;
|
||||
@@ -679,6 +680,12 @@ void ndpi_search_kerberos(struct ndpi_detection_module_struct *ndpi_struct,
|
||||
sport, dport, flow->protos.kerberos.hostname, flow->protos.kerberos.domain,
|
||||
flow->protos.kerberos.username);
|
||||
flow->extra_packets_func = NULL;
|
||||
} else if(msg_type == 0x1e) /* Error */ {
|
||||
#ifdef KERBEROS_DEBUG
|
||||
printf("[Kerberos] Processing KRB-Error\n");
|
||||
#endif
|
||||
/* Nothing specific to do; stop dissecting this flow */
|
||||
flow->extra_packets_func = NULL;
|
||||
}
|
||||
|
||||
return;
|
||||
|
||||
Binary file not shown.
@@ -0,0 +1,8 @@
|
||||
Guessed flow protos: 0
|
||||
|
||||
DPI Packets (UDP): 2 (2.00 pkts/flow)
|
||||
Confidence DPI : 1 (flows)
|
||||
|
||||
Kerberos 2 481 1
|
||||
|
||||
1 UDP 148.151.79.183:34473 <-> 144.199.10.233:88 [VLAN: 2008][proto: 111/Kerberos][ClearText][Confidence: DPI][cat: Network/14][1 pkts/333 bytes <-> 1 pkts/148 bytes][Goodput ratio: 86/68][0.36 sec][linux.shell.com\mus-n-cj0709][PLAIN TEXT (LINUX.SHELL.COM)][Plen Bins: 0,0,0,50,0,0,0,0,50,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]
|
||||
@@ -1,4 +1,4 @@
|
||||
Guessed flow protos: 33
|
||||
Guessed flow protos: 29
|
||||
|
||||
DPI Packets (TCP): 77 (2.14 pkts/flow)
|
||||
Confidence Unknown : 2 (flows)
|
||||
|
||||
Reference in New Issue
Block a user