Problems with Pcacp Library

P

Protos Jack

Hi!

I want to work with the pcap library, and I installed libpcap and pcap
library in Ubuntu, but when I try a code, there is an error:

/usr/lib/ruby/1.8/pcaplet.rb:51:in `lookupdev': no suitable device found
(Pcap::pcapError)
from /usr/lib/ruby/1.8/pcaplet.rb:51:in `initialize'
from httpsniff.rb:4:in `new'
from httpsniff.rb:4

I searched but i didnt find what to do (I've already required the
library...)

Thanks, and sorry for my english ^^
 
D

David Rio

[Note: parts of this message were removed to make it a legal post.]

Hi!

I want to work with the pcap library, and I installed libpcap and pcap
library in Ubuntu, but when I try a code, there is an error:

/usr/lib/ruby/1.8/pcaplet.rb:51:in `lookupdev': no suitable device found
(Pcap::pcapError)
from /usr/lib/ruby/1.8/pcaplet.rb:51:in `initialize'
from httpsniff.rb:4:in `new'
from httpsniff.rb:4

I searched but i didnt find what to do (I've already required the
library...)

Do you have any interface available that the library can use to sniff from?
If so,
be sure you run your script as root.

If still doesn't work post the code your are trying to run.

-drd
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

No members online now.

Forum statistics

Threads
473,774
Messages
2,569,599
Members
45,175
Latest member
Vinay Kumar_ Nevatia
Top