2004-09-30 00:26:52 +00:00
|
|
|
/*
|
2025-02-14 10:24:30 -05:00
|
|
|
* Copyright (C) 2013-2025 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
2019-01-25 10:15:50 -05:00
|
|
|
* Copyright (C) 2007-2013 Sourcefire, Inc.
|
2008-04-02 15:24:51 +00:00
|
|
|
*
|
|
|
|
* Authors: Trog
|
2004-09-30 00:26:52 +00:00
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
2008-04-02 15:24:51 +00:00
|
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
|
|
* published by the Free Software Foundation.
|
2004-09-30 00:26:52 +00:00
|
|
|
*
|
|
|
|
* 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
|
|
|
|
* along with this program; if not, write to the Free Software
|
2006-04-09 19:59:28 +00:00
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
|
|
|
|
* MA 02110-1301, USA.
|
2004-09-30 00:26:52 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __SPECIAL_H
|
|
|
|
#define __SPECIAL_H
|
|
|
|
|
2008-11-26 13:02:37 +00:00
|
|
|
#include "others.h"
|
2009-04-10 13:23:13 +00:00
|
|
|
#define SWIZZ_MAXERRORS 2000
|
2008-12-02 19:55:57 +00:00
|
|
|
struct swizz_stats {
|
2018-12-03 12:40:13 -05:00
|
|
|
uint16_t gngrams[17576];
|
|
|
|
uint32_t total;
|
|
|
|
uint32_t suspicious;
|
|
|
|
int has_version;
|
|
|
|
int has_manifest;
|
|
|
|
int errors;
|
|
|
|
int entries;
|
2008-12-02 19:55:57 +00:00
|
|
|
};
|
2008-11-26 13:02:37 +00:00
|
|
|
|
2011-06-15 12:00:23 +02:00
|
|
|
int cli_check_mydoom_log(cli_ctx *ctx);
|
2011-06-15 20:50:42 +02:00
|
|
|
int cli_check_riff_exploit(cli_ctx *ctx);
|
2008-12-02 19:55:57 +00:00
|
|
|
void cli_detect_swizz_str(const unsigned char *str, uint32_t len, struct swizz_stats *stats, int blob);
|
|
|
|
int cli_detect_swizz(struct swizz_stats *stats);
|
2004-09-30 00:26:52 +00:00
|
|
|
|
|
|
|
#endif
|