📄 stdafx.cpp
字号:
// stdafx.cpp : source file that includes just the standard includes
// LANDetect.pch will be the pre-compiled header
// stdafx.obj will contain the pre-compiled type information
#include "stdafx.h"
int sec,frequency,type,f,f1,f2,sele;
BOOL check;
BYTE m1[4],m2[4];
CString bmac,etime;
CString myIP;
pcap_if_t *alldevs;
pcap_if_t *dev;
char errbuf[PCAP_ERRBUF_SIZE];
CString LIP[256];
int Lognum;
void iptos(u_long in,char output[])
{
u_char *p;
p = (u_char *)∈
sprintf(output, "%d.%d.%d.%d", p[0], p[1], p[2], p[3]);
}
u_char GetMAC(int i,CString fakeMAC) //获取MAC地址
{
u_char p;
p=(fakeMAC.GetAt(3*i-3)-55)*16+(fakeMAC.GetAt(3*i-2)-55);
return p;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -