2016年8月10日

网络嗅探器

摘要: // 网络嗅探器.cpp : 定义控制台应用程序的入口点。 // #include "stdafx.h" #include #include #include #pragma comment(lib, "Advapi32.lib") #pragma comment (lib,"ws2_32.lib") class CInitSock { public: CInitSock(... 阅读全文

posted @ 2016-08-10 17:06 yifi 阅读(323) 评论(0) 推荐(0) 编辑

原始套接字

摘要: 原始套接字套接字类型指定为SOCK_RAWsocket(AF_INET, SOCK_STREAM, 0);创建原始套接字时 第三个参数将成为IP头中协议域的值 发送ICMP报文时 必须由程序自己计算校验和FUNC:将数据以字为单位 加到一个双字中 如果数据长度是奇数 最后一个字节将被扩展到字 最后将 阅读全文

posted @ 2016-08-10 15:47 yifi 阅读(260) 评论(0) 推荐(0) 编辑

拷贝写

摘要: 重新做人 1 // Copy_On_Write.cpp : 定义控制台应用程序的入口点。 2 // 3 4 #include "stdafx.h" 5 #include <cstring> 6 #include <string> 7 8 using namespace std; 9 10 11 #p 阅读全文

posted @ 2016-08-10 06:21 yifi 阅读(191) 评论(0) 推荐(0) 编辑

导航