![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
网络编程
文章平均质量分 84
dangdanding
这个作者很懒,什么都没留下…
展开
-
使用paramiko模块构建一个ClientSSH类
# -*- coding: utf-8 -*- """ Created on Wed May 14 10:53:38 2019 @author: Phoenix Modified : 2019-10-24 """ import paramiko from time import sleep class ClientSSH(object): def __init__(self, ip, port, username, password, timeout=30): """ ...原创 2021-06-12 20:56:13 · 212 阅读 · 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 · 10897 阅读 · 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 · 2531 阅读 · 0 评论