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

📄 dcerpc.h

📁 Snort为国际上著名的轻量型入侵防御系统,为国内多家著名“自主知识产权”网络安全公司所使用。
💻 H
字号:
/* * dcerpc.h * * Copyright (C) 2006 Sourcefire,Inc * Andrew Mullican * * 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. * * Description: * * Declares routines that handle decoding DCERPC packets. * * */#ifndef _DCERPC_H_#define _DCERPC_H_#ifdef WIN32#pragma pack(push,dce_hdrs,1)#else#pragma pack(1)#endiftypedef struct dcerpc_hdr{    u_int8_t  version;    u_int8_t  version_minor;    u_int8_t  packet_type;    u_int8_t  flags;    u_int32_t data_representation;    u_int16_t frag_length;    u_int16_t auth_length;    u_int32_t call_id;} DCERPC_HDR;typedef struct dcerpc_req{    DCERPC_HDR  dcerpc_hdr;    u_int32_t   alloc_hint;    u_int16_t   context_id;    u_int16_t   opnum;} DCERPC_REQ;/* Packet types */#define DCERPC_REQUEST   0#define DCERPC_BIND     11/* Packet flags */#define DCERPC_FIRST_FRAG   0x01#define DCERPC_LAST_FRAG    0x02#define DCERPC_FRAG_ALLOC   2/* PIPE function */#define DCERPC_PIPE     0x0026int IsCompleteDCERPCMessage(u_int8_t *data, u_int16_t size);int ProcessDCERPCMessage(u_int8_t *smb_hdr, u_int8_t *data, u_int16_t size);void ReassembleDCERPCRequest(u_int8_t *smb_hdr, u_int8_t *data, u_int16_t data_size);int DCERPC_Fragmentation(u_int8_t *smb_data, u_int16_t data_size, u_int16_t *frag_length);#ifdef WIN32#pragma pack(pop,dce_hdrs)#else#pragma pack()#endif#endif  /* _DCERPC_H_  */

⌨️ 快捷键说明

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