Implemented SQL Injection and XSS attack detection

This commit is contained in:
Luca Deri
2019-11-01 23:05:11 +01:00
parent 75302a10bd
commit a3a85106a1
6 changed files with 182 additions and 12 deletions
+2
View File
@@ -940,6 +940,8 @@ extern "C" {
const char* ndpi_data_ratio2str(float ratio);
void ndpi_data_print_window_values(struct ndpi_analyze_struct *s); /* debug */
ndpi_url_risk ndpi_validate_url(char *url);
#ifdef __cplusplus
}
#endif
+6
View File
@@ -42,6 +42,12 @@ typedef enum {
ndpi_l4_proto_tcp_and_udp,
} ndpi_l4_proto_info;
typedef enum {
ndpi_url_no_problem = 0,
ndpi_url_possible_xss,
ndpi_url_possible_sql_injection
} ndpi_url_risk;
/* NDPI_VISIT */
typedef enum {
ndpi_preorder,