mirror of https://github.com/OISF/suricata
Introduce http_server_body keyword.
The http_server_body content modifier modifies the previous content to inspect the normalized (dechunked, unzipped) http_server_body. The workings are similar to http_client_body. Additionally, a new pcre flag was introduced "/S". To facilitate this change the signature flags field was changed to be 64 bit.remotes/origin/master-1.2.x
parent
6e7a8f38bf
commit
89f83e714c
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,39 @@
|
||||
/* Copyright (C) 2007-2010 Open Information Security Foundation
|
||||
*
|
||||
* You can copy, redistribute or modify this Program under the terms of
|
||||
* the GNU General Public License version 2 as published by the Free
|
||||
* Software Foundation.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* version 2 along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||
* 02110-1301, USA.
|
||||
*/
|
||||
|
||||
/** \file
|
||||
*
|
||||
* \author Anoop Saldanha <poonaatsoc@gmail.com>
|
||||
*/
|
||||
|
||||
#ifndef __DETECT_ENGINE_HSBD_H__
|
||||
#define __DETECT_ENGINE_HSBD_H__
|
||||
|
||||
#define ENGINE_HSBD_BUFFER_LIMIT 20000
|
||||
|
||||
#include "app-layer-htp.h"
|
||||
|
||||
int DetectEngineRunHttpServerBodyMpm(DetectEngineCtx *,
|
||||
DetectEngineThreadCtx *, Flow *f, HtpState *);
|
||||
int DetectEngineInspectHttpServerBody(DetectEngineCtx *,
|
||||
DetectEngineThreadCtx *, Signature *, Flow *, uint8_t, void *);
|
||||
|
||||
void DetectEngineCleanHSBDBuffers(DetectEngineThreadCtx *);
|
||||
void DetectEngineHttpServerBodyRegisterTests(void);
|
||||
|
||||
#endif /* __DETECT_ENGINE_HSBD_H__ */
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,29 @@
|
||||
/* Copyright (C) 2007-2010 Open Information Security Foundation
|
||||
*
|
||||
* You can copy, redistribute or modify this Program under the terms of
|
||||
* the GNU General Public License version 2 as published by the Free
|
||||
* Software Foundation.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* version 2 along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||
* 02110-1301, USA.
|
||||
*/
|
||||
|
||||
/**
|
||||
* \file
|
||||
*
|
||||
* \author Anoop Saldanha <poonaatsoc@gmail.com>
|
||||
*/
|
||||
|
||||
#ifndef __DETECT_HTTP_SERVER_BODY_H__
|
||||
#define __DETECT_HTTP_SERVER_BODY_H__
|
||||
|
||||
void DetectHttpServerBodyRegister(void);
|
||||
|
||||
#endif /* __DETECT_HTTP_SERVER_BODY_H__ */
|
||||
Loading…
Reference in New Issue