Alfredo Cardigliano
57fce4e350
Fix unused var
2021-09-03 17:46:04 +02:00
Alfredo Cardigliano
89af9b7e3c
Print API version
2021-09-01 09:48:37 +02:00
Luca Deri
a6b10cf73f
Fixed memory stats
2021-08-26 12:12:22 +02:00
Luca Deri
90c6fd99a7
ARM fixes
2021-08-25 09:46:29 +02:00
Luca Deri
88040f0449
Compilation fix
2021-08-20 22:47:46 +02:00
Ivan Nardi
9e0f0ce3df
Fix access to some TLS fields in flow structure ( #1277 )
...
Fields 'tls.hello_processed` and `tls.subprotocol_detected` are used by
QUIC (i.e UDP...), too.
2021-08-20 18:11:37 +02:00
Ivan Nardi
8fdffbf3a1
Compile everything with "-W -Wall -Wno-unused-parameter" flags ( #1276 )
...
Fix all the warnings.
Getting rid of "-Wno-unused-parameter" is quite complex because some
parameters usage depends on compilation variable (i.e.
`--enable-debug-messages`).
The "-Werror" flag has been added only in Travis builds to avoid
breaking the builds to users using uncommon/untested
OS/compiler/enviroment.
Tested on:
* x86_64; Ubuntu 20.04; gcc 7,8,9,10,11; clang 7,8,9,10,11,12
* x86_64; CentOS 7.7; gcc 4.8.5 (with "--disable-gcrypt" flag)
* Raspberry 4; Debian 10.10; gcc 8.3.0
2021-08-20 18:11:13 +02:00
Ivan Nardi
55eec29c08
wireshark/lua: restore full flow risks dissection ( #1275 )
...
It was partially disabled in 3eba8cc5 .
Wireshark and Wireshark-Lua bindings don't handle 64 bit integer very well.
(see https://www.wireshark.org/docs/wsdg_html_chunked/lua_module_Int64.html ).
As workaround, only for visualization purpose, split the (64 bit) risk mask
into two 32 bit integer values.
2021-08-18 11:34:46 +02:00
Toni
8d0c7b1fae
Fixed Mingw64 build, SonerCloud-CI and more. ( #1273 )
...
* Added ARM build and unit test run for SonarCloud-CI.
Signed-off-by: Toni Uhlig <matzeton@googlemail.com >
* Fixed Mingw64 build.
* adapted to SonarCloud-CI workflow
* removed broken and incomplete Windows example (tested on VS2017/VS2019)
* removed unnecessary include (e.g. pthread.h for the library which does not make use of it)
Signed-off-by: Toni Uhlig <matzeton@googlemail.com >
2021-08-18 11:34:16 +02:00
Luca Deri
677b513f70
Fixes a crash on ARM (Raspberry Pi 4 Model B Rev 1.1)
2021-08-18 11:12:06 +02:00
Luca Deri
821f4c9249
Fixed some invalid TLS guesses
2021-08-17 19:04:07 +02:00
Luca Deri
a2ea67152c
Added check to avoid clases on similar protocols (FTP adn SMTP) on setting hostname
2021-08-11 12:11:58 +02:00
Luca Deri
5c33fbf19b
Added extraction of hostname in SMTP
...
Fixed mail incalid subprotocol calculation
2021-08-11 11:52:24 +02:00
Alfredo Cardigliano
846b546dbc
Fix typo
2021-08-10 11:43:32 +02:00
Luca Deri
c1acb6d801
Typo
2021-08-09 18:36:36 +02:00
Luca Deri
0fbe895103
Addef ETH_ARP definition
2021-08-09 18:33:33 +02:00
Luca Deri
05492ec8e8
Defined more standard ethernet protocol types
2021-08-09 17:01:10 +02:00
Luca Deri
58ca7b5a7f
Added protocol defines
2021-08-09 16:45:03 +02:00
Luca Deri
0df8aa19ec
Clode cleanup (after last merge)
2021-08-08 17:10:08 +02:00
Toni and Luca Deri
259b60f574
Added entropy calculation to check for suspicious (encrypted) payload. ( #1270 )
...
Signed-off-by: Toni Uhlig <matzeton@googlemail.com >
Co-authored-by: Luca Deri <lucaderi@users.noreply.github.com >
2021-08-08 17:03:23 +02:00
Toni
4e856a41d6
Skip whitespaces between HTTP method and URL. ( #1271 )
...
* be less case-restrictive, RFC2616 wants it that way
Signed-off-by: Toni Uhlig <matzeton@googlemail.com >
2021-08-08 17:00:10 +02:00
Toni
8e996f7f7c
Fixed broken SonarCloud-CI. ( #1272 )
...
Signed-off-by: Toni Uhlig <matzeton@googlemail.com >
2021-08-08 16:59:36 +02:00
Luca Deri
3706267d68
Updated test output
2021-08-07 19:43:55 +02:00
Luca Deri
0522e562e8
Added testing pcap for TLS fatal alert
2021-08-07 19:42:53 +02:00
Luca Deri
4183718952
Added TLS fatal alert flow risk
2021-08-07 19:40:44 +02:00
Luca Deri
e8455236bd
Updated output
2021-08-07 17:38:33 +02:00
Luca Deri
a13f1fe52f
Report whether a protocol is encrypted
2021-08-07 17:35:34 +02:00
Luca Deri
46ebd7128f
Added ability to report whether a protocol is encrypted
...
Added new API calls
- u_int8_t ndpi_is_valid_protoId(u_int16_t protoId);
Cleaned up code and organized in a function.
- u_int8_t ndpi_is_encrypted_proto(struct ndpi_detection_module_struct *ndpi_str, ndpi_protocol proto);
Check whether a protocol is encrypted or not based on master and app protocols
2021-08-07 17:10:18 +02:00
Luca Deri
dc841574af
Win fix
2021-08-03 09:44:50 +02:00
Luca Deri
6b7e5fa8d2
Added legacy whatsapp rules used to match old pcaps that need to be removed in the future
2021-07-31 23:49:48 +02:00
Toni
ad57af9f79
Improved RTSP detection and fixed HTTP false-positive. Fixes #1229 . ( #1266 )
...
Signed-off-by: Toni Uhlig <matzeton@googlemail.com >
2021-07-31 23:31:49 +02:00
Fábio Depin
ce597b4806
Updated WhatsAPP and Instagram addresses ( #1264 )
...
* Updated WhatsAPP addresses
* Added Instagram addresses
2021-07-31 23:30:34 +02:00
Toni
13c5d6801e
Improved libm check via Autoconf. ( #1263 )
...
* libm will now be part of @ADDITIONAL_LIBS@ (if required)
Signed-off-by: Toni Uhlig <matzeton@googlemail.com >
2021-07-28 22:24:03 +02:00
Luca Deri
cb26a8c82d
Moved to 4.1.0
2021-07-26 09:40:50 +02:00
Luca Deri
4cafa7cb1e
Improved risk detection mask algorithm
2021-07-26 09:38:53 +02:00
Toni
29ec34f66d
Improved TFTP detection. Fixes #1242 , #1256 ( #1262 )
...
Signed-off-by: Toni Uhlig <matzeton@googlemail.com >
2021-07-25 21:54:19 +02:00
Luca Deri
a482e1c0be
Typo (Thanks Ivan)
2021-07-24 18:12:09 +02:00
Luca Deri
1d9a830b2f
Update changelog
2021-07-24 17:54:32 +02:00
Luca Deri
51e4888442
Implemented ALPN automa for checking uncommon ALPNs
2021-07-24 17:50:32 +02:00
Luca Deri
526568fcd5
Risk check improvement
2021-07-24 16:18:18 +02:00
Alfredo Cardigliano
c73501f859
Typo
2021-07-23 18:14:11 +02:00
Alfredo Cardigliano
d5a60880d0
Fix prototype
2021-07-23 18:12:54 +02:00
Luca Deri
61fc5be202
Reworked flow risk implementation
2021-07-23 17:27:15 +02:00
Ivan Nardi
4ffe1eb3c0
Fix unit tests when "--disable-gcrypt" flag is used ( #1255 )
2021-07-23 10:37:36 +02:00
Toni
6ad0d6666c
Implemented function to retrieve flow information. #1253 ( #1254 )
...
* fixed [h]euristic typo
Signed-off-by: Toni Uhlig <matzeton@googlemail.com >
2021-07-23 10:37:20 +02:00
Luca Deri
8ea8ba8e9b
Fixed risk mask implementation
2021-07-23 08:29:36 +02:00
Luca Deri
b01b60a2b5
Implementation of flow risk eception (work in progress)
2021-07-22 01:35:57 +02:00
Alfredo Cardigliano
fc9901292d
Update changelog
2021-07-20 17:04:35 +00:00
Toni
32275543c4
Added risk: TLS_EXTENSION_SUSPICIOUS ( #1252 )
...
* validates client/server hello TLS extensions
* inspects content for some extensions
Signed-off-by: Toni Uhlig <matzeton@googlemail.com >
2021-07-19 16:23:24 +02:00
Ivan Nardi
57b8969a3d
Fix setting of flow risks on 32 bit machines ( #1251 )
...
Since 19a29e1e (NDPI_TLS_CERT_VALIDITY_TOO_LONG is 32), unit tests are
failing on 32 bit machines (i.e Raspberry 4)
2021-07-19 16:22:39 +02:00