Obtain MAC Address from Devices using Python

前端 未结 8 958
余生分开走
余生分开走 2020-11-30 03:34

I\'m looking for a way (with python) to obtain the layer II address from a device on my local network. Layer III addresses are known.

The

8条回答
  •  死守一世寂寞
    2020-11-30 04:00

    an easier way, if on linux:

    print os.system('arp -n ' + str(remoteIP))

    you will get:

        Address        HWtype  HWaddress           Flags Mask            Iface
        192.168.....   ether   9B:39:15:f2:45:51   C                     wlan0
    

提交回复
热议问题