python通过scapy 获取网卡列表如下:

#coding:utf-8
from scapy.all import *
#显示网卡信息
show_interfaces()

运行结果如下:

python 通过scapy获取网卡列表

 

相关文章: