'Determine if the user running w3af can sniff packets on the configured
interface.'

def can_sniff(self):

    from scapy.all import sniff
    try:
        p = sniff(filter='port    53', iface=self._iface, timeout=0.3)
    except Exception:
        return False
    else:
        return True
