自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(0)
  • 资源 (3)
  • 收藏
  • 关注

空空如也

email capture

抓取用户收发的邮件数据 ULONG nReceived = pCard->m_pkt_header->caplen; char *buffer = (char*)pCard->m_pkt_data; UINT offset = 0; UINT nDataLen = 0; UINT nCaptLen = 0; UCHAR sSource[4] ; UCHAR sDest[4]; ULONG nLong; UCHAR fromMAC[6] = {0}; UCHAR toMAC[6] = {0}; ETHERNET_HEADER *pEthernet = (ETHERNET_HEADER*)(buffer+offset); // 1st 6 bytes destination memcpy( toMAC, pEthernet->EthDHost, 6 ); // following 6 bytes source memcpy( fromMAC, pEthernet->EthSHost, 6 ); // VLAN if( pEthernet->EthType == 0x81 ) { offset += 4; } else if ( pEthernet->EthType != 0x8 && pEthernet->EthType != 0x800 ) { if( toMAC[0] == 0x1 && toMAC[1] == 0x00 && toMAC[2] == 0xc && toMAC[3] == 0xcc && toMAC[4] == 0xcc && toMAC[5] == 0xcc ) { // WriteDebugData( "CDP", buffer, nReceived ); } return; } PIP_HEADER pIp = (PIP_HEADER)(buffer+offset+sizeof(ETHERNET_HEADER)); nLong = pIp->SrcAddr; memcpy( sSource, &nLong, 4 ); nLong = pIp->DestAddr; memcpy( sDest, &nLong, 4 ); switch( pIp->Protocol ) { case 0x06:

2009-10-27

C++编程惯用法——高级程序员常用方法和技巧.pdf

C++编程惯用法 高级程序员常用方法和技巧

2009-06-22

windows32位汇编语言编程

Windows环境下32位汇编语言.chm Windows环境下32位汇编语言.chm Windows环境下32位汇编语言.chm 欢迎下载

2008-12-10

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除