Not able to send packets in SCAPY on python3 on MacOS.

I am new to scapy and was trying to send an icmp packet using my wireless interface. I keep getting following error. I am using the latest scapy version on python3. When i try to send packet using python3 shell, i keep getting segmentation fault 11 error. Both sr and send is failing. But it works seamlessly using ./run_python. Any suggestion workaround is really appeciated. Is this a known issue? I have tried updating the scapy to the latest version from the github repository which is ’ ‘Version 2.4.0rc4.dev94’.

bash-3.2$ ifconfig en1 en1: flags=8863\<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST\> mtu 1500ether 24:a0:74:ef:c2:0ainet6 fe80::1421:2877:9b9f:8b7e%en1 prefixlen 64 secured scopeid 0x5inet netmask 0xffffff00 broadcast options=201\<PERFORMNUD,DAD\>media: autoselect status: active bash-3.2$ ping -S PING ( data bytes64 bytes from172.217.166.68: icmp\_seq=0 ttl=55 time=26.458 ms64 bytes from172.217.166.68: icmp\_seq=1 ttl=55 time=21.927 ms bASH-3.2$ scapy WARNING:Cannot read wireshark manuf database WARNING:Crypto-related methods disabled forIPsec,Dot11and TLS layers (needs python-cryptography v1.7+).WARNING:No route found forIPv6 destination ::(no default route?)INFO:Can't import python-cryptography v1.7+. Disabled WEP decryption/encryption. INFO: Can't import python-cryptography v1.7+.DisabledIPsecencryption/authentication.WARNING:IPythonnot available.Using standard Python shell instead.AutoCompletion,History are disabled.\>\>\> sr(IP(dst='')/ICMP())Traceback(most recent call last):File"\<console\>", line 1,in\<module\>File"/Library/Python/2.7/site-packages/scapy-2.4.0rc4- py2.7.egg/scapy/", line 364,in sr s = conf.L3socket(promisc=promisc, filter=filter, iface=iface,nofilter=nofilter)File"/Library/Python/2.7/site-packages/scapy-2.4.0rc4- py2.7.egg/scapy/arch/bpf/", line 57,in \_\_init\_\_(self.ins,\_bpf)= get\_dev\_bpf()File"/Library/Python/2.7/site-packages/scapy-2.4.0rc4- py2.7.egg/scapy/arch/bpf/", line 98,in get\_dev\_bpfraiseScapy\_Exception("No /dev/bpf handle is available !")Scapy\_Exception:No/dev/bpf handle is available

Hi @aryan21710,

This post was moved to a different board that fits your topic of discussion a bit better. This means you’ll get better engagement on your post, and it keeps our Community organized so users can more easily find information.

As you’ll notice, your Topic is now in the Project Development Help and Advice board. No action is needed on your part; you can continue the conversation as normal here.