摘要: 该实例实现ARP反向代理 #coding:utf-8 from scapy.all import * import threading import random proxy_mac = "00:0c:29:93:19:97" #代理MAC地址 net_list = ["vethd5d1611"," 阅读全文
posted @ 2021-05-11 18:04 h云淡风轻 阅读(10) 评论(0) 推荐(0) 编辑
摘要: 该实例实现ARP反向代理 #include <stdio.h> #include <string.h> #include <pthread.h> #include <pcap.h> #include <assert.h> #include <stdbool.h> #define RECV_SEND_ 阅读全文
posted @ 2021-05-11 18:01 h云淡风轻 阅读(18) 评论(0) 推荐(0) 编辑
摘要: #define HexPrint(_buf, _len) \ {\ int _m_i = 0;\ char *_m_buf = (char *)(_buf);\ int _m_len = (int)(_len);\ printf("[%s:%d] \r\n", __FUNCTION__, __LIN 阅读全文
posted @ 2021-05-11 17:45 h云淡风轻 阅读(9) 评论(0) 推荐(0) 编辑
摘要: /*头文件*/ #include <semaphore.h> /*声明与定义*/ extern sem_t s_update_info_sem; sem_t s_update_info_sem; /*创建信号灯*/ int ret = sem_init(&s_update_info_sem, 0, 阅读全文
posted @ 2021-05-11 17:42 h云淡风轻 阅读(7) 评论(0) 推荐(0) 编辑