⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 icmp_inforeq.h

📁 xprobe package sources code
💻 H
字号:
/* $Id: icmp_inforeq.h,v 1.7 2003/08/20 05:30:18 mederchik Exp $ *//*** Copyright (C) 2001 Fyodor Yarochkin <fygrave@tigerteam.net>,**                    Ofir Arkin       <ofir@sys-security.com>**** This program is free software; you can redistribute it and/or modify** it under the terms of the GNU General Public License as published by** the Free Software Foundation; either version 2 of the License, or** (at your option) any later version.****** 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** Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.*/#ifndef ICMP_INFOREQ_H#define ICMP_INFOREQ_H#include "xprobe.h"#include "xprobe_module.h"#include "xprobe_module_param.h"typedef struct ttl_val {    int high;    int low;} ttl_val_s;class ICMP_Inforeq_Mod: public Xprobe_Module {    private:        OS_Matrix *current_os;		map <string, Xprobe_Module_Param_ICMP *> kwd_chk;		map <string, Xprobe_Module_Param_ICMP *>::iterator s_i;        int do_icmp_query(Target *);		void generate_signature(Target *, ICMP *, ICMP *);    public:        ICMP_Inforeq_Mod(void);        ~ICMP_Inforeq_Mod(void);        int init(void);        int parse_keyword(int, const char *, const char *);        int exec(Target *, OS_Matrix *);        int fini(void);};class ICMP_Inforeq_Reply_Check: public Xprobe_Module_Param_ICMP {	public:		ICMP_Inforeq_Reply_Check(void):Xprobe_Module_Param_ICMP(XPROBE_MODULE_PARAM_BOOL) { return; }		~ICMP_Inforeq_Reply_Check(void) {return;}		int check_param(ICMP *ip_pkt, ICMP *orig_pkt, OS_Matrix *os);};class ICMP_Inforeq_Ip_Id_Check: public Xprobe_Module_Param_ICMP {	public:		ICMP_Inforeq_Ip_Id_Check(void):Xprobe_Module_Param_ICMP(XPROBE_MODULE_PARAM_ZNZORIG) { return; }		~ICMP_Inforeq_Ip_Id_Check(void){ return; }		int check_param(ICMP *ip_pkt, ICMP *orig_pkt, OS_Matrix *os);};class ICMP_Inforeq_Ttl_Check: public Xprobe_Module_Param_ICMP {	public:		ICMP_Inforeq_Ttl_Check(void):Xprobe_Module_Param_ICMP(XPROBE_MODULE_PARAM_RANGE) { return; }		~ICMP_Inforeq_Ttl_Check(void) { return; }		int check_param(ICMP *ip_pkt, ICMP *orig_pkt, OS_Matrix *os);};#endif /* ICMP_INFOREQ_H */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -