New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sniff function Is not Functioning on OS X #97

Closed
Naqu6 opened this Issue Mar 22, 2016 · 3 comments

Comments

Projects
None yet
2 participants
@Naqu6

Naqu6 commented Mar 22, 2016

Hello,
I was trying to use Scapy's sniffing, and it was not functioning.
In pcapnet, there is a variable that is Null that the program assumes is Non-Null.
`>>> sniff(iface="en0")
WARNING: fileno: pcapy API does not permit to get capure file descriptor. Bugs ahead! Press Enter to trigger packet reading
WARNING: fileno: pcapy API does not permit to get capure file descriptor. Bugs ahead! Press Enter to trigger packet reading

WARNING: more fileno: pcapy API does not permit to get capure file descriptor. Bugs ahead! Press Enter to trigger packet reading
Traceback (most recent call last):
File "", line 1, in
File "/usr/local/lib/python2.7/site-packages/scapy/sendrecv.py", line 586, in sniff
p = s.recv(MTU)
File "/usr/local/lib/python2.7/site-packages/scapy/arch/pcapdnet.py", line 145, in recv
pkt = self.ins.next()
File "/usr/local/lib/python2.7/site-packages/scapy/arch/pcapdnet.py", line 92, in next
s,us = h.getts()
AttributeError: 'NoneType' object has no attribute 'gets'`
Thanks in advance!

@Naqu6 Naqu6 changed the title from Sniff function Is not Functioning to Sniff function Is not Functioning on OS X Mar 22, 2016

@Naqu6

This comment has been minimized.

Show comment
Hide comment
@Naqu6

Naqu6 Mar 22, 2016

Sorry about this, it was a dependency issue.

Naqu6 commented Mar 22, 2016

Sorry about this, it was a dependency issue.

@Naqu6 Naqu6 closed this Mar 22, 2016

@p-l-

This comment has been minimized.

Show comment
Hide comment
@p-l-

p-l- Mar 23, 2016

Member

@Naqu6 thanks anyway. Could you add a comment explaining how you solved the problem, in case someone else with the same problem finds this ticket?

Member

p-l- commented Mar 23, 2016

@Naqu6 thanks anyway. Could you add a comment explaining how you solved the problem, in case someone else with the same problem finds this ticket?

@Naqu6

This comment has been minimized.

Show comment
Hide comment
@Naqu6

Naqu6 Mar 23, 2016

Got it.
In a bash shell, i ran:
sudo pip install pypcap
Instead of sudo pip install pcap.
On Mar 23, 2016 12:10 AM, "Pierre Lalet" notifications@github.com wrote:

@Naqu6 https://github.com/Naqu6 thanks anyway. Could you add a comment
explaining how you solved the problem, in case someone else with the same
problem finds this ticket?


You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
#97 (comment)

Naqu6 commented Mar 23, 2016

Got it.
In a bash shell, i ran:
sudo pip install pypcap
Instead of sudo pip install pcap.
On Mar 23, 2016 12:10 AM, "Pierre Lalet" notifications@github.com wrote:

@Naqu6 https://github.com/Naqu6 thanks anyway. Could you add a comment
explaining how you solved the problem, in case someone else with the same
problem finds this ticket?


You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
#97 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment