stdafx.cpp

来自「ARP test mode. According to the idea we 」· C++ 代码 · 共 34 行

CPP
34
字号
// 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 + =
减小字号Ctrl + -
显示快捷键?