emanuele-f
cdf197ccfe
Add function to search host in custom categories
2018-10-10 13:29:49 +02:00
emanuele-f
6ff6c2e5af
Fix category field not accounted in ndpi_get_proto_category
...
Fixes #627
2018-10-10 10:43:51 +02:00
Luca Deri
cf0c8be63d
Merge pull request #616 from wang-xuefei/dev
...
remake clean or remake install failed.
2018-10-09 17:45:23 +03:00
root
1d56c9aa1b
fix remake
2018-10-02 23:54:01 +08:00
Luca Deri
3cbdbc1db5
Merge pull request #610 from eglooca/pr-nest-log-sink
...
New dissector: Nest Log Sink
2018-10-02 10:06:07 +02:00
Luca Deri
90ca91caa8
Renamed files to avoid name clashes during compilation with other libs
2018-09-29 08:38:00 +02:00
Luca Deri
1f24adc9cd
Renamed source files to avoid clashes
2018-09-29 08:28:26 +02:00
Luca Deri
f639c237a1
Added check for not going beyond the string lenght
2018-09-24 09:57:51 +02:00
Darryl Sokoloski
46ebf541e1
Removed unused varaibles.
...
Signed-off-by: Darryl Sokoloski <darryl@sokoloski.ca >
2018-09-19 22:05:39 -04:00
Darryl Sokoloski
53910f0737
Added missing declarations for nest_log_sink dissector.
...
Signed-off-by: Darryl Sokoloski <darryl@sokoloski.ca >
2018-09-19 22:05:03 -04:00
Darryl Sokoloski
31f62c5cf5
New dissector: Nest Log Sink
...
This is a dissector for the Nest Log Sink protocol which is used by the Nest Protect (https://nest.com/ca/smoke-co-alarm/overview/ ).
Signed-off-by: Darryl Sokoloski <darryl@sokoloski.ca >
2018-09-19 21:25:16 -04:00
Luca
7117f0532c
Mapped the mining category in ndpi_category_get_name()
2018-09-18 18:32:08 +02:00
Luca
c6b427c252
Implementation of Bitcoin, Ethereum, ZCash, Monero dissectors all identified as mining
...
Implements #503
2018-09-18 18:13:04 +02:00
Luca Deri
b0f9f76b79
Addes support for SMBv1 traffic that has been split from SMBv23
2018-09-17 23:15:44 +02:00
Luca
8689d3293a
Added ndpi_protocol2id() API call
2018-09-17 17:57:47 +02:00
Luca Deri
51fdd12d23
Merge branch 'dev' of https://github.com/ntop/nDPI into dev
2018-09-13 00:11:09 +02:00
Luca Deri
24110acafc
Merge pull request #606 from eglooca/pr-fix-parse-packet-line-info
...
Prevent missing text lines and invalid reads past end-of-buffer.
2018-09-13 01:11:01 +03:00
Luca Deri
e8c738282d
Improved Facebook Messenger support
2018-09-13 00:04:19 +02:00
Darryl Sokoloski
c0ed50d5b0
Prevent invalid reads past end-of-buffer.
...
The recent revert commit applied to ndpi_parse_packet_line_info resurrects an old bug where the last lines in packets that end with a CR+NL will not be parsed. This revert commit is an attempt to prevent invalid reads past the end of the packet buffer. This PR moves the end-of-bounds test to before the 16-bit read and returns if true. This fixes the case where a text line ends aligned to the buffer-end boundary, and it fixes the invalid read issue.
Signed-off-by: Darryl Sokoloski <darryl@sokoloski.ca >
2018-09-11 17:16:12 -04:00
Daniele De Sensi
f48c7ab8e6
Fixed bug in spotify dissector (subnet /24 was matched as /22).
...
Slight performance improvements in spotify dissector (avoid doing ntohl and masking in each and all if conditions).
2018-09-11 12:41:05 +02:00
诟屍
adcb82d2b5
parse protocol's string_to_match into hex which could be match by hyperscan ( #589 )
...
* if one protocol do not have it's regex (pattern_to_match)
then parse it's string (string_to_match) into hex
so we can match every protocol with hyperscan
* fix string2hex()
* fix init_hyperscan():
check return value of string2hex()
2018-09-11 10:46:13 +02:00
Simone Mainardi
6ac83ce7eb
Fixes broken hyperscan compilation
2018-09-11 10:43:04 +02:00
Luca
b9ae0f8888
Fixes #578
2018-09-11 10:07:39 +03:00
Luca Deri
7b4d335944
Merge pull request #603 from pavlosantoniou/dev
...
Avoid possible NULL pointer dereference in ndpi_detection_process_packet
2018-09-11 10:04:15 +03:00
Luca
1075283d8e
Fixes #601
2018-09-11 09:26:01 +03:00
Pavlos Antoniou
77ea1c25bd
Avoid possible NULL pointer dereference in ndpi_detection_process_packet
2018-09-09 08:20:54 +00:00
Luca Deri
6373c355cf
Added fix for out of boundary memory access
...
Fixes warning
2018-09-05 23:23:54 +02:00
Campus
225826ce83
FIX: dropbox dissector. UPD: updated pcap file with new dropbox pkts
2018-09-05 16:10:07 +02:00
Luca Deri
4a2525241f
Merge pull request #598 from madpilot78/include_hyperscan_fix
...
Move the configure include file inclusion and code depending on it in…
2018-08-30 11:28:41 +02:00
Luca
e4f01976a6
Added missing categorization when giveup/guess is called
...
Added optimization for TCP flows that do not start with a SYN packet: early giveup is performed
Code cleanup
2018-08-30 11:10:30 +02:00
Luca
0a33e439bd
Better clang handling
2018-08-30 10:05:53 +02:00
Luca
f948f3525f
Cleaned up makefile
...
Used clang instead of gcc on MacOS
2018-08-30 09:59:39 +02:00
Guido Falsi
396e72f4fe
Move the configure include file inclusion and code depending on it in code protected by the NDPI_LIB_COMPILATION define, this should avoid it polluting the environment when including this file from ntopng.
2018-08-27 17:45:38 +02:00
Luca
a98c0a81be
Added target for shared liubrary creation
...
Added target for install
Fixes #593
2018-08-25 10:50:16 +02:00
Campus
2b9b996148
Merge branch 'pr-remove-autoconf-include' of https://github.com/eglooca/ndpi-pr into eglooca-pr-remove-autoconf-include
2018-08-23 12:01:14 +02:00
Michele Campus
b8571475c9
Merge pull request #592 from alm-A/patch-3
...
ndpi_typedefs.h : missing include
2018-08-23 11:59:31 +02:00
Campus
ff83bfbad0
ADD: add prototype of function ht_free in hash.h - DEL: delete include file .c in ndpi_main.c
2018-08-23 11:22:21 +02:00
alm-A
dd307af215
ndpi_typedefs.h : missing include
...
include to ndpi_protocol_ids.h needed for:
- NDPI_PROTOCOL_SIZE
- NDPI_MAX_SUPPORTED_PROTOCOLS
- NDPI_MAX_NUM_CUSTOM_PROTOCOLS
2018-08-22 16:37:59 +02:00
Luca Deri
1a6a9593fb
Changed type to ease compilation accross platforms
2018-08-20 14:49:59 +02:00
Luca Deri
6cb40ac75e
Compilation fix
2018-08-20 12:39:55 +02:00
Luca Deri
50591238e5
Merge pull request #586 from eglooca/pr-sys-types-include-for-actypes-h
...
Include <sys/types.h> for u_int16_t.
2018-08-17 14:18:27 +02:00
Simone Mainardi
291acb9459
Hyperscan regex for domains such as .com.cn or .co.uk
2018-08-17 13:13:26 +02:00
Simone Mainardi
47c2ad1b5f
Webex category fix
2018-08-17 12:59:19 +02:00
Simone Mainardi
6491568e15
Fixes hyperscan WeChat detection
2018-08-17 12:48:53 +02:00
Simone Mainardi
28ac30d827
Fixes hyperscan skype detection
2018-08-17 12:41:35 +02:00
Simone Mainardi
db74459ca2
Fixes weibo detection
2018-08-17 12:29:08 +02:00
Simone Mainardi
d2bc3ea209
Initial hyperscan support for all protocols
2018-08-17 12:00:28 +02:00
Darryl Sokoloski
cd9d456994
Include sys/types.h for u_int16_t.
...
On various embedded environments (OpenWrt, EdgeOS), <sys/types.h> must be included for u_intX_t types. The Hyperscan changes made recently introducted a u_int16_t member in actypes.h which is undeclared in certainly environments without this include.
Signed-off-by: Darryl Sokoloski <darryl@sokoloski.ca >
2018-08-16 22:31:23 -04:00
Darryl Sokoloski
06befec642
Remove autoconf include from typedefs headers.
...
Including this file in any "public" API header breaks all projects that also use autotools because macros such as PACKAGE_VERSION will be redefined.
Signed-off-by: Darryl Sokoloski <darryl@sokoloski.ca >
2018-08-16 22:24:15 -04:00
Simone Mainardi
579f1b05db
Adds hyperscan support for Apple and Dropbox
2018-08-16 19:42:04 +02:00