Chapter21 python进阶——wireshark

一、wireshark

(1)windows下的ping命令

ping www.baidu.com

可以获取百度的ip地址

 

(2)TFTP介绍

Chapter21 python进阶——wireshark

Chapter21 python进阶——wireshark

Chapter21 python进阶——wireshark

Chapter21 python进阶——wireshark

Chapter21 python进阶——wireshark

Chapter21 python进阶——wireshark

Chapter21 python进阶——wireshark

Chapter21 python进阶——wireshark

 

(3)tftp示例——服务器下载程序

梳理步骤:

Chapter21 python进阶——wireshark

配置tftp和网络

Chapter21 python进阶——wireshark

此时计算机处于断网状态,虚拟机处于联网状态

Server interface随便选了 VM net1的IP地址(或环回的127.0.0.1)

主机选择了VM net8的IP地址,端口号必须为默认的69

虚拟机的IP为192.168.150.128

结果:编写的程序为downloadFromTftp.py,测试成功:

Chapter21 python进阶——wireshark

Chapter21 python进阶——wireshark

编写的上传程序为uploadToTftpd.py,测试成功:

Chapter21 python进阶——wireshark

Chapter21 python进阶——wireshark