|
|
|
@ -97,14 +97,12 @@ void DetectFiledataRegister(void)
|
|
|
|
|
PrefilterGenericMpmRegister,
|
|
|
|
|
HttpServerBodyGetDataCallback,
|
|
|
|
|
ALPROTO_HTTP, HTP_RESPONSE_BODY);
|
|
|
|
|
#ifdef HAVE_RUST
|
|
|
|
|
DetectAppLayerMpmRegister2("file_data", SIG_FLAG_TOSERVER, 2,
|
|
|
|
|
PrefilterMpmFiledataRegister, NULL,
|
|
|
|
|
ALPROTO_SMB, 0);
|
|
|
|
|
DetectAppLayerMpmRegister2("file_data", SIG_FLAG_TOCLIENT, 2,
|
|
|
|
|
PrefilterMpmFiledataRegister, NULL,
|
|
|
|
|
ALPROTO_SMB, 0);
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
DetectAppLayerInspectEngineRegister2("file_data",
|
|
|
|
|
ALPROTO_HTTP, SIG_FLAG_TOCLIENT, HTP_RESPONSE_BODY,
|
|
|
|
@ -114,14 +112,12 @@ void DetectFiledataRegister(void)
|
|
|
|
|
DetectEngineInspectFiledata, NULL);
|
|
|
|
|
DetectBufferTypeRegisterSetupCallback("file_data",
|
|
|
|
|
DetectFiledataSetupCallback);
|
|
|
|
|
#ifdef HAVE_RUST
|
|
|
|
|
DetectAppLayerInspectEngineRegister2("file_data",
|
|
|
|
|
ALPROTO_SMB, SIG_FLAG_TOSERVER, 0,
|
|
|
|
|
DetectEngineInspectFiledata, NULL);
|
|
|
|
|
DetectAppLayerInspectEngineRegister2("file_data",
|
|
|
|
|
ALPROTO_SMB, SIG_FLAG_TOCLIENT, 0,
|
|
|
|
|
DetectEngineInspectFiledata, NULL);
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
DetectBufferTypeSetDescriptionByName("file_data",
|
|
|
|
|
"http response body, smb files or smtp attachments data");
|
|
|
|
|