資源簡介
保存wireshark抓包的數(shù)據(jù)為txt文本,然后更改cpp文件中的文件路勁并運行
代碼片段和文件信息
//?Data1?Test2.cpp?:?定義控制臺應(yīng)用程序的入口點。
//
#include?“stdafx.h“
#include?“stdafx.h“
#include?
#include
#include
int?_tmain(int?argc?_TCHAR*?argv[])
{
FILE**?fp?=?new?(FILE*);
char?a?b?c;
int?i;
//strhex?=?“0123456789abcdefABCDEF“;
if?(fopen_s(fp?“E:\\For?Analysis?Test1.txt“?“r“)?!=?NULL)
{
printf(“error...\n“);
return?-1;
}
while?(fscanf_s(*fp?“%c“?&a?1)?==?1)
{
if?(a?==?‘R‘)
{
i?=?0;
while?(i?168)
{
fscanf_s(*fp?“%c“?&a?1);
評論
共有 條評論