#!/usr/bin/env python
# -*- coding: utf-8 -*-
from scapy.all import srp,Ether,ARP,conf
ipscan='192.168.200.1/24'
try:
	    ans,unans = srp(Ether(dst="FF:FF:FF:FF:FF:FF")/ARP(pdst=ipscan),timeout=2,verbose=False)
except Exception,e:
	print str(e)
else:
	for snd,rcv in ans:
		#list_mac=rcv.sprintf("%Ether.src% - %ARP.psrc%")
		#print list_mac
		strmac = rcv.sprintf("%Ether.src%")
		if strmac == 'b8:27:eb:0e:ea:a5':
			strip = rcv.sprintf("%ARP.psrc%")
			print strip

  

相关文章:

  • 2021-12-26
  • 2021-08-23
  • 2021-10-01
  • 2021-12-26
  • 2021-12-26
  • 2021-05-25
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-11-09
  • 2022-01-02
  • 2022-12-23
  • 2021-07-09
  • 2021-11-17
  • 2021-12-26
相关资源
相似解决方案