Luca
0828dff3ac
Language fix
2023-09-15 12:56:29 +02:00
Luca Deri
1bf7e5face
Fixes matches with domain name strings that start with a dot
2023-09-11 22:50:03 +02:00
Luca Deri
805df2e5ce
Reworked initialization
2023-09-10 09:36:54 +02:00
Luca Deri
63977459b6
Added OperaVPN detection
2023-09-09 18:17:26 +02:00
Luca Deri
076edeab54
Enhance DNS risk for long hostnames (> 32)
2023-09-09 18:09:57 +02:00
Luca Deri
f50a4d7e85
Improved detection of invalid chars in DNS names
2023-09-09 17:46:13 +02:00
Luca Deri
1a797d7b74
Win fix
2023-09-08 12:24:27 +02:00
Luca Deri
770e460ba9
Added NDPI_TLS_ALPN_SNI_MISMATCH flow risk
2023-09-07 23:42:42 +02:00
Luca
47fb5e9f3d
Cleanup
2023-09-07 11:12:37 +02:00
Luca Deri
2bd986a00a
Disabled debug message
2023-09-05 18:39:26 +02:00
Luca Deri
ad9ed4f954
Minor warning fixes
2023-09-05 18:08:16 +02:00
Luca Deri
978df906b3
Improved classification further reducing memory used
2023-09-05 17:03:20 +02:00
Luca Deri
0080d0d092
Compilation fixes for old compilers
2023-09-05 10:43:36 +02:00
Luca Deri
feaaf83bed
Added sub-domain classification fix
2023-09-05 07:21:48 +02:00
Luca Deri
cf67f483f4
Classification fixes
2023-09-05 01:17:02 +02:00
Luca Deri
c5ebd84fd8
Added ndpi_bitmap64 support
2023-09-05 00:21:16 +02:00
Luca Deri
4f2ce2d43b
Added ndpi_murmur_hash to the nDPI API
2023-09-04 12:53:42 +02:00
Luca Deri
f0dc3347ec
Merged new and old version of ndpi_domain_classify.c code
2023-09-02 19:27:19 +02:00
Luca Deri
1d480c18e3
Reworked domain classification based on binary filters
2023-09-02 19:16:40 +02:00
Luca Deri
854c2d80f1
Improvement for reducing false positives
2023-09-01 10:26:07 +02:00
Luca Deri
74fdac7d77
Code cleanup
2023-09-01 08:50:55 +02:00
Luca Deri
133f45f3f3
Added ndpi_binary_bitmap datastruture
...
It is similar to ndpi_filter but based on binary search and with
the ability to store a category per value (as ndpi_domain_classify)
2023-08-31 23:51:50 +02:00
Luca Deri
19381f330a
Fixed heap-buffer-overflow issue
2023-08-31 18:35:49 +02:00
Luca Deri
16b0ce3710
Code cleanup
2023-08-31 09:14:17 +02:00
Luca Deri
f824939662
Added comment
2023-08-31 09:00:36 +02:00
Luca Deri
3c7b2a714e
Added missing lists files
2023-08-29 19:21:57 +02:00
Luca Deri
c5c610c941
Fixes dist
2023-08-29 18:49:43 +02:00
Luca Deri
65142b2a53
Added -G flag
2023-08-29 18:32:57 +02:00
Luca Deri
1de7fd9bf0
Warning fixes
2023-08-29 18:08:56 +02:00
Luca Deri
3dbc4f65fc
Added README file
2023-08-29 17:45:36 +02:00
Luca Deri
36abf06c6f
Swap from Aho-Corasick to an experimental/home-grown algorithm that uses a probabilistic
...
approach for handling Internet domain names.
For switching back to Aho-Corasick it is necessary to edit
ndpi-typedefs.h and uncomment the line
// #define USE_LEGACY_AHO_CORASICK
[1] With Aho-Corasick
$ ./example/ndpiReader -G ./lists/ -i tests/pcap/ookla.pcap | grep Memory
nDPI Memory statistics:
nDPI Memory (once): 37.34 KB
Flow Memory (per flow): 960 B
Actual Memory: 33.09 MB
Peak Memory: 33.09 MB
[2] With the new algorithm
$ ./example/ndpiReader -G ./lists/ -i tests/pcap/ookla.pcap | grep Memory
nDPI Memory statistics:
nDPI Memory (once): 37.31 KB
Flow Memory (per flow): 960 B
Actual Memory: 7.42 MB
Peak Memory: 7.42 MB
In essence from ~33 MB to ~7 MB
This new algorithm will enable larger lists to be loaded (e.g. top 1M domans
https://s3-us-west-1.amazonaws.com/umbrella-static/index.html )
In ./lists there are file names that are named as <category>_<string>.list
With -G ndpiReader can load all of them at startup
2023-08-29 17:34:04 +02:00
Luca Deri
34986de297
Search fixes
2023-08-26 19:47:50 +02:00
Luca Deri
eeeee46b1e
Changes for supporinng more efficient sub-string matching
2023-08-26 17:55:50 +02:00
Luca Deri
4ca94369e1
Improved domain search tet unit
2023-08-26 10:43:19 +02:00
Luca Deri
ac00542df2
LEak fix
2023-08-26 10:10:49 +02:00
Luca Deri
2c565c77c9
Added ndpi_domain_classify_XXX(0 API
2023-08-26 00:24:33 +02:00
Luca Deri
42fcb011ad
Warning fix
2023-08-25 19:29:43 +02:00
Luca Deri
eb9932164f
added bimap and/or with allocation
2023-08-24 07:45:38 +02:00
Luca Deri
ff4f291afe
Minor improvements
2023-08-23 11:04:31 +02:00
Luca
95fcd08687
Added ndpi_bitmap_is_empty() and ndpi_bitmap_optimize() API calls
2023-08-23 11:03:59 +02:00
Luca
9933b5910d
Boundary check
2023-08-21 23:19:57 +02:00
Luca
bd25df3334
Improved Wireguard detection
2023-08-21 13:40:42 +02:00
Luca
9e4bcc7771
Removed empty line
2023-08-21 13:40:30 +02:00
Luca
6e5466f9e5
Added ndpi_bitmap_andnot API call
2023-08-21 13:26:38 +02:00
Luca Deri
cfbb7a423e
Replaces free() with ndpi_free()
2023-08-14 18:51:11 +02:00
Luca Deri
049fbf819c
Reworked ndpi_filter_xxx implementation using compressed bitmaps
2023-08-14 12:50:54 +02:00
Luca Deri
3b34941be1
Typo
2023-08-12 11:39:19 +02:00
Luca Deri
9a44954365
ARM compilation fix
2023-08-12 07:39:35 +02:00
Luca Deri
fe634b8d55
Fixed to address issue
...
Run ./utils/check_symbols.sh || { FAILED=$?; echo "::error file=${NDPI_LIB}::Unwanted libc symbols found: ${FAILED}. Please make sure to use only ndpi_malloc/ndpi_calloc/ndpi_realloc/ndpi_free wrapper instead of malloc/calloc/realloc/free."; false; }
[ndpi_filter.o]: calloc
Unwanted symbols found: 1
Please make sure to use only ndpi_malloc/ndpi_calloc/ndpi_realloc/ndpi_free wrapper instead of malloc/calloc/realloc/free
Error: Unwanted libc symbols found: 1. Please make sure to use only ndpi_malloc/ndpi_calloc/ndpi_realloc/ndpi_free wrapper instead of
2023-08-12 00:27:37 +02:00
Luca Deri
8e17f50853
Added ndpi_filter_add_multi() API call
2023-08-11 23:55:44 +02:00
Luca Deri
890dcf91d9
Minor initialization fixes
2023-08-11 23:51:16 +02:00
Luca Deri
ec7adc212e
Added new API calls for implementing Bloom-filter like data structures
...
ndpi_filter* ndpi_filter_alloc(uint32_t elements_number);
bool ndpi_filter_add(ndpi_filter *f, uint64_t value);
bool ndpi_filter_contains(ndpi_filter *f, uint64_t value);
void ndpi_filter_free(ndpi_filter *f);
2023-08-11 22:49:31 +02:00
Luca
5fad72ebd9
Typo fix
2023-08-07 10:20:21 +02:00
Luca
33e9dbc24d
Added ndpi_bitmap_copy() API call
2023-08-06 09:35:56 +02:00
Luca Deri
196395398e
Compilation fixes for older C compilers
2023-08-01 15:35:33 +02:00
Luca Deri
6831187d62
Debian 12 fixes
2023-07-21 12:24:34 -04:00
Luca Deri
8e960f033d
Adds new pcap for testing "funny" HTTP servers
2023-07-14 21:12:11 +02:00
Luca Deri
a499edd2f2
Restored files
2023-07-14 21:12:04 +02:00
Luca Deri
fea09e825b
Fixes risk mask exception handling while improving the overall performance
2023-07-14 19:52:34 +02:00
Luca Deri
bfbbd18757
Removed -fno-color-diagnostics not available on all platforms
2023-07-13 23:30:05 +02:00
Luca Deri
33c42f9830
Cosmetic fixes
2023-07-13 23:26:35 +02:00
Luca Deri
1f55dc511f
Implemented Count-Min Sketch [count how many times a value has been observed]
...
- ndpi_cm_sketch_init()
- ndpi_cm_sketch_add()
- ndpi_cm_sketch_count()
- ndpi_cm_sketch_destroy()
2023-07-13 21:54:51 +02:00
Luca Deri
b1d25193d2
Minor code cleanup
2023-07-11 22:49:06 +02:00
Luca Deri
7ef80f6b78
Optimizes and fixes possible out0of0boundary write in ndpi_fill_prefix_v4()
2023-06-23 21:40:55 +02:00
Luca Deri
cdc0bb8c61
Compilation fix
2023-06-22 16:04:14 +02:00
Luca Deri
8dbd591053
Waring fix
2023-06-21 21:26:29 +02:00
Luca Deri
9cc4cbb9d1
Reworked teams handling
2023-06-15 22:31:11 +02:00
Luca Deri
d0609ea601
Implemented Zoom/Teams stream type detection
2023-06-14 23:44:57 +02:00
Luca Deri
66bee475ae
Improved line protocol dissection with heuristic
2023-06-13 19:20:02 +02:00
Luca Deri
de3cf260f8
Updated line test result
2023-06-13 19:07:02 +02:00
Luca Deri
be8178fc8d
Refreshed ASN lists
...
Enhanced the Line IP list with https://ipinfo.io/AS23576/125.209.252.0/24 used by line
2023-06-13 19:04:08 +02:00
Luca Deri
b02adcc381
Added check to avoid skype heuristic false positives
2023-06-12 23:29:20 +02:00
Luca Deri
63a2b359b9
Added vlan_id in ndpi_flow2json() prototype
2023-06-09 19:50:47 +02:00
Luca Deri
f692342f3c
Cosmetic changes
2023-05-23 22:16:34 +02:00
Luca Deri
8f718c9051
Made VK protocol detection more strict
2023-05-20 15:46:47 +02:00
Luca Deri
5ca6f0ac62
Implemented ndpi_predict_linear() for predicting a timeseries value overtime
2023-05-19 11:46:03 +02:00
Luca Deri
596a5fd5dc
Updated results
2023-05-10 17:11:14 +02:00
Luca
64853dff02
Improved MS Teams detection with heuristic
2023-05-10 16:59:28 +02:00
Luca
98f029a091
Enhanced MS teams STUN/Azure detection
2023-05-10 16:28:34 +02:00
Luca
7d5e4d0f7e
MS Teams enhancement
2023-05-10 15:41:26 +02:00
Luca
8de7c49298
MS Teams improvements
2023-05-10 15:16:39 +02:00
Luca Deri
2f9059dc54
Disabled query string validation in MDNS in order to avoid zapping chars that in DNS (instead) are not permitted
2023-05-09 15:04:02 +02:00
Luca Deri
bfe79243bc
Refreshed lists
2023-05-08 16:51:38 +02:00
Luca Deri
3681de4795
Updated pcap detection results after Facebook Reel/Stories support
2023-05-03 22:52:58 +02:00
Luca Deri
de13c6c0bd
Added detection of Facebook Reels and Stories
...
https://www.switcherstudio.com/blog/the-ultimate-guide-to-reels-and-stories#:~:text=Audience%3A%20Reels%20are%20served%20to,things%20like%20photos%20and%20boomerangs .
2023-05-03 22:50:02 +02:00
Luca Deri
6b803f48dc
Added missing check
2023-04-28 23:08:54 +02:00
Luca Deri
6e9dce357b
Added ndpi_guess_undetected_protocol_v4() to restore logic that
...
was removed in https://github.com/ntop/nDPI/commit/032e778a6dc1ee2173c4cdb2c671180c5b5df245
2023-04-28 23:00:33 +02:00
Luca Deri
f7138f07a6
Missing module termination
2023-04-28 23:00:33 +02:00
Luca Deri
b39ece4428
Updated (C)
2023-04-28 23:00:33 +02:00
Luca Deri
791d3e6ad3
Added missing check
2023-04-28 23:00:33 +02:00
Luca Deri
c4ba981370
Compilation fix on RH7
2023-04-24 08:49:11 +02:00
Luca Deri
9ba16a4837
Test files for riit games
2023-04-11 10:14:18 +02:00
Luca Deri
c47e9d201d
Implemented ndpi_XXX_reset() API calls whre XXX is ses, des, hw
2023-04-08 09:52:14 +02:00
Luca Deri
64ebf73b29
Added the ability to define custom protocols with arbitrary Ids in proto.txt
...
Example
- ip:213.75.170.11/32:443@CustomProtocol
nDPI assigns an is that can change based on protos.txt content
- ip:213.75.170.11/32:443@CustomProtocol=9999
nDPI assigns 9999 as protocolId to CustomProtocol and won't change when
protos.txt content will chaneg
2023-03-22 00:15:56 +01:00
Luca Deri
b3457c644f
Removed overlapping port
2023-03-21 19:27:56 +01:00
Luca Deri
c22d30786c
Improved checks for duplicated entries in protocols file
2023-03-21 19:25:03 +01:00
Luca Deri
9f46d41eca
FreeBSD compilation fix
...
(C) update
2023-03-14 22:16:57 +01:00
Luca Deri
3585e2d201
Added ability to define an unlimited number of custom rules IP:port for the same IP (it used tobe limited to 2)
2023-03-13 21:57:14 +01:00
Luca Deri
ebfc1fe827
Minor cleanup
2023-03-13 20:52:08 +01:00
Luca Deri
d398f232be
Added fix for better handling exceptions rollback in case of later match
2023-03-06 17:33:08 +01:00