(ip, fake_bcast="ff:ff:00:00:00:00",**kargs)
return responses is not None
Try to guess if target is in Promisc mode. The target is provided by its ip.
Try to guess if target is in Promisc mode. The target is provided by its ip.
Try to guess if target is in Promisc mode . The target is provided by its ip .
def is_promisc(ip, fake_bcast="ff:ff:00:00:00:00",**kargs):
    """Try to guess if target is in Promisc mode. The target is provided by its ip."""

    responses = srp1(Ether(dst=fake_bcast) / ARP(op="who-has", pdst=ip),type=ETH_P_ARP, iface_hint=ip, timeout=1, verbose=0,**kargs)

    return responses is not None
def is_promisc ( ip , fake_bcast = "ff:ff:00:00:00:00" , * * kargs ) : responses = srp1 ( Ether ( dst = fake_bcast ) / ARP ( op = "who-has" , pdst = ip ) , type = ETH_P_ARP , iface_hint = ip , timeout = 1 , verbose = 0 , * * kargs ) return responses is not None