scapy
Welcome to Scapy (2.2.0)
>>> get_if_hwaddr('eth1')
'00:1b:78:76:06:b8'
>>> get_if_addr('eth1')
'192.168.110.1'
>>>
在scapy上获取接口IP地址和mac地址
最新推荐文章于 2023-05-18 16:41:46 发布
scapy
Welcome to Scapy (2.2.0)
>>> get_if_hwaddr('eth1')
'00:1b:78:76:06:b8'
>>> get_if_addr('eth1')
'192.168.110.1'
>>>