基于sniffer做的一个抓包监控软件

上传者: 26641337 | 上传时间: 2021-04-11 19:56:20 | 文件大小: 3.62MB | 文件类型: RAR
// ipmonDlg.cpp : implementation file // #include "stdafx.h" #include "ipmon.h" #include "ipmonDlg.h" #include "mstcpip.h" #include "afxsock.h" #include "Iphlpapi.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif ///////////////////////////////////////////////////////////////////////////// // CAboutDlg dialog used for App About PROTN2T aOfProto [ PROTO_NUM + 1] = { { IPPROTO_IP , "IP" }, { IPPROTO_ICMP , "ICMP" }, { IPPROTO_IGMP , "IGMP" }, { IPPROTO_GGP , "GGP" }, { IPPROTO_TCP , "TCP" }, { IPPROTO_PUP , "PUP" }, { IPPROTO_UDP , "UDP" }, { IPPROTO_IDP , "IDP" }, { IPPROTO_ND , "NP" }, { IPPROTO_RAW , "RAW" }, { IPPROTO_MAX , "MAX" }, { NULL , "" } } ; char *get_proto_name( unsigned char proto ) { BOOL bFound = FALSE ; for( int i = 0 ; i < PROTO_NUM ; i++ ) { if( aOfProto[i].proto == proto ) { bFound = TRUE ; break ; } } if( bFound ) return aOfProto[i].pprototext ; return aOfProto[PROTO_NUM].pprototext ; } class CAboutDlg : public CDialog { public: CAboutDlg(); // Dialog Data //{{AFX_DATA(CAboutDlg) enum { IDD = IDD_ABOUTBOX }; //}}AFX_DATA // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CAboutDlg) protected: virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support //}}AFX_VIRTUAL // Implementation protected: //{{AFX_MSG(CAboutDlg) //}}AFX_MSG DECLARE_MESSAGE_MAP() }; CAboutDlg::CAboutDlg() : CDialog(CAboutDlg::IDD) { //{{AFX_DATA_INIT(CAboutDlg) //}}AFX_DATA_INIT } void CAboutDlg::DoDataExchange(CDataExchange* pDX) { CDialog::DoDataExchange(pDX); //{{AFX_DATA_MAP(CAboutDlg) //}}AFX_DATA_MAP } BEGIN_MESSAGE_MAP(CAboutDlg, CDialog) //{{AFX_MSG_MAP(CAboutDlg) // No message handlers //}}AFX_MSG_MAP END_MESSAGE_MAP() ///////////////////////////////////////////////////////////////////////////// // CIpmonDlg dialog CIpmonDlg::CIpmonDlg(CWnd* pParent /*=NULL*/) : CDialog(CIpmonDlg::IDD, pP

文件下载

资源详情

[{"title":"( 52 个子文件 3.62MB ) 基于sniffer做的一个抓包监控软件","children":[{"title":"MySniff","children":[{"title":"Ipxsap.h <span style='color:#111;'> 5.53KB </span>","children":null,"spread":false},{"title":"ipmon.cpp <span style='color:#111;'> 2.09KB </span>","children":null,"spread":false},{"title":"Mprapi.h <span style='color:#111;'> 49.26KB </span>","children":null,"spread":false},{"title":"Release","children":[{"title":"ipmon.exe <span style='color:#111;'> 32.11KB </span>","children":null,"spread":false}],"spread":true},{"title":"Ipxtfflt.h <span style='color:#111;'> 2.39KB </span>","children":null,"spread":false},{"title":"res","children":[{"title":"ipmon.ico <span style='color:#111;'> 1.05KB </span>","children":null,"spread":false},{"title":"ipmon.rc2 <span style='color:#111;'> 397B </span>","children":null,"spread":false}],"spread":true},{"title":"ipmon.dsp <span style='color:#111;'> 4.18KB </span>","children":null,"spread":false},{"title":"LMcons.h <span style='color:#111;'> 7.44KB </span>","children":null,"spread":false},{"title":"Ipxrtdef.h <span style='color:#111;'> 10.73KB </span>","children":null,"spread":false},{"title":"IpxConst.h <span style='color:#111;'> 2.93KB </span>","children":null,"spread":false},{"title":"ipmon.plg <span style='color:#111;'> 1.97KB </span>","children":null,"spread":false},{"title":"AFXSOCK.H <span style='color:#111;'> 9.84KB </span>","children":null,"spread":false},{"title":"IPTypes.h <span style='color:#111;'> 3.16KB </span>","children":null,"spread":false},{"title":"ipmon.aps <span style='color:#111;'> 20.92KB </span>","children":null,"spread":false},{"title":"IpmConv.h <span style='color:#111;'> 2.13KB </span>","children":null,"spread":false},{"title":"Ipinfoid.h <span style='color:#111;'> 3.91KB </span>","children":null,"spread":false},{"title":"mstcpip.h <span style='color:#111;'> 870B </span>","children":null,"spread":false},{"title":"Ipxrip.h <span style='color:#111;'> 5.35KB </span>","children":null,"spread":false},{"title":"IPHlpApi.Lib <span style='color:#111;'> 28.78KB </span>","children":null,"spread":false},{"title":"说明.txt <span style='color:#111;'> 55B </span>","children":null,"spread":false},{"title":"_Entryid.h <span style='color:#111;'> 2.51KB </span>","children":null,"spread":false},{"title":"Iprtrmib.h <span style='color:#111;'> 21.39KB </span>","children":null,"spread":false},{"title":"ipmonDlg.cpp <span style='color:#111;'> 14.88KB </span>","children":null,"spread":false},{"title":"IPHlpApi.h <span style='color:#111;'> 14.70KB </span>","children":null,"spread":false},{"title":"StdAfx.cpp <span style='color:#111;'> 207B </span>","children":null,"spread":false},{"title":"resource.h <span style='color:#111;'> 864B </span>","children":null,"spread":false},{"title":"IPExport.h <span style='color:#111;'> 7.61KB </span>","children":null,"spread":false},{"title":"Ipifcons.h <span style='color:#111;'> 13.81KB </span>","children":null,"spread":false},{"title":"ipmon.h <span style='color:#111;'> 1.28KB </span>","children":null,"spread":false},{"title":"StdAfx.h <span style='color:#111;'> 1.16KB </span>","children":null,"spread":false},{"title":"ipmon.rc <span style='color:#111;'> 5.78KB </span>","children":null,"spread":false},{"title":"ipmon.opt <span style='color:#111;'> 54.50KB </span>","children":null,"spread":false},{"title":"ipmon.clw <span style='color:#111;'> 1.07KB </span>","children":null,"spread":false},{"title":"ipmonDlg.h <span style='color:#111;'> 2.98KB </span>","children":null,"spread":false},{"title":"IpmcDefs.h <span style='color:#111;'> 636B </span>","children":null,"spread":false},{"title":"Debug","children":[{"title":"StdAfx.obj <span style='color:#111;'> 108.82KB </span>","children":null,"spread":false},{"title":"ipmonDlg.obj <span style='color:#111;'> 51.41KB </span>","children":null,"spread":false},{"title":"ipmon.res <span style='color:#111;'> 2.73KB </span>","children":null,"spread":false},{"title":"ipmon.sbr <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"ipmon.bsc <span style='color:#111;'> 3.13MB </span>","children":null,"spread":false},{"title":"ipmon.pch <span style='color:#111;'> 6.77MB </span>","children":null,"spread":false},{"title":"ipmon.pdb <span style='color:#111;'> 297.00KB </span>","children":null,"spread":false},{"title":"vc60.idb <span style='color:#111;'> 217.00KB </span>","children":null,"spread":false},{"title":"ipmonDlg.sbr <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"StdAfx.sbr <span style='color:#111;'> 1.35MB </span>","children":null,"spread":false},{"title":"ipmon.obj <span style='color:#111;'> 14.68KB </span>","children":null,"spread":false},{"title":"vc60.pdb <span style='color:#111;'> 372.00KB </span>","children":null,"spread":false},{"title":"ipmon.exe <span style='color:#111;'> 116.11KB </span>","children":null,"spread":false},{"title":"ipmon.ilk <span style='color:#111;'> 239.16KB </span>","children":null,"spread":false}],"spread":false},{"title":"ipmon.dsw <span style='color:#111;'> 533B </span>","children":null,"spread":false},{"title":"ipmon.ncb <span style='color:#111;'> 81.00KB </span>","children":null,"spread":false}],"spread":false}],"spread":true}]

评论信息

  • lixx163 :
    解压不了资源,没法用啊啊!
    2015-06-08

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明