网络编程
文章平均质量分 53
dangdanding
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
udp分片报文发送和接收
接收指定端口收到的udp报文保存到本地文件,通过比较发送文件和接收文件的内容测试中间转发设备是否正确完整的处理了分片和重组原创 2024-12-30 16:15:10 · 810 阅读 · 0 评论 -
Python脚本发送接收组播报文
组播测试脚本,接收和发送组播报文原创 2024-12-26 14:20:22 · 528 阅读 · 0 评论 -
使用paramiko模块构建一个ClientSSH类
# -*- coding: utf-8 -*-"""Created on Wed May 14 10:53:38 2019@author: PhoenixModified : 2019-10-24"""import paramikofrom time import sleepclass ClientSSH(object): def __init__(self, ip, port, username, password, timeout=30): """...原创 2021-06-12 20:56:13 · 284 阅读 · 0 评论 -
利用pcap编写自己的sniffer程序
Programming with pcapTim Carstenstimcarst at yahoo dot comThe latest version of this document can be found at http://broker.dhs.org/pcap.html 原文:http://www.tcpdump.org/pcap.htm翻译:dangdanding@163原创 2004-05-17 23:05:00 · 11043 阅读 · 3 评论 -
使用pcap编写自己的sniffer(2)
怎样使用(处理)packet指针变量呢?一个packet指针所指的结构包含了很多属性,它并不是一个真正的字符串,而是多个结构组成的集合(比如:一个TCP/IP数据包包括以太网头、IP包头、TCP头和数据包中有效的数据负载)。首先需要定义这些结构: /* Ethernet header */ struct sniff_ethernet { u_char ether_dhost[ETHER_A原创 2004-05-19 13:39:00 · 2722 阅读 · 0 评论
分享