@conf.commands.register
def promiscping(net, timeout=2, fake_bcast='ff:ff:ff:ff:ff:fe', **kargs):
 (ans, unans) = srp((Ether(dst=fake_bcast) / ARP(pdst=net)), filter='arp and arp[7] = 2', timeout=timeout, iface_hint=net, **kargs)
 ans = ARPingResult(ans.res, name='PROMISCPing')
 ans.display()
 return (ans, unans)

@ conf . commands . register def promiscping ( net , timeout = 2 , fake_bcast = 'ff:ff:ff:ff:ff:fe' , ** kargs ) : ( ans , unans ) = srp ( ( Ether ( dst = fake_bcast ) / ARP ( pdst = net ) ) , filter = 'arp and arp[7] = 2' , timeout = timeout , iface_hint = net , ** kargs ) ans = ARPingResult ( ans . res , name = 'PROMISCPing' ) ans . display ( ) return ( ans , unans )
send arp who-has requests to determine which hosts are in promiscuous mode promiscping .