compiling dsniff.urlsnarf source code in python
<p>I am compiling the <a href="http://dsniff.googlecode.com/svn/trunk/" rel="nofollow"><code>dsniff-read-only</code></a>. I was able to install the <code>dsniff</code>, using <code>python setup.py install</code>, earlier installing all the required modules. But now I don't know how to run <code>urlsnarf.py</code> in bin folder. When I try to run it via "python urlsnarf.py" it gives me following:</p>

<pre><code>root@ubuntu:~/dsniff-read-only/bin# python urlsnarf.py
Traceback (most recent call last):
File "urlsnarf.py", line 55, in &lt;module&gt;
dsniff.main()
File "/usr/local/lib/python2.7/site-packages/dsniff/dsniff.py", line 215, in main
program().main(argv)
File "/usr/local/lib/python2.7/site-packages/dsniff/dsniff.py", line 192, in main
handlers[cls.name] = cls()
File "/usr/local/lib/python2.7/site-packages/dsniff/dsniff.py", line 40, in __init__
self.setup()
File "urlsnarf.py", line 43, in setup
self.subscribe('service', 'http', self.recv_flow)
File "/usr/local/lib/python2.7/site-packages/dsniff/dsniff.py", line 70, in subscribe
pub._register(event, callback)
File "/usr/local/lib/python2.7/site-packages/dsniff/core/service.py", line 95, in          __proxy_register
self.subscribe('flow', fcap, callback)
File "/usr/local/lib/python2.7/site-packages/dsniff/dsniff.py", line 70, in subscribe
pub._register(event, callback)
File "/usr/local/lib/python2.7/site-packages/dsniff/core/flow.py", line 233, in _register
self.__resubscribe()
File "/usr/local/lib/python2.7/site-packages/dsniff/core/flow.py", line 229, in     __resubscribe
self.subscribe('ip', self.pcap_filter, self.recv_ip)
File "/usr/local/lib/python2.7/site-packages/dsniff/dsniff.py", line 70, in subscribe
pub._register(event, callback)
File "/usr/local/lib/python2.7/site-packages/dsniff/core/ip.py", line 17, in _register
self.subscribe('pcap', event, self.recv_pkt)
File "/usr/local/lib/python2.7/site-packages/dsniff/dsniff.py", line 70, in subscribe
pub._register(event, callback)
File "/usr/local/lib/python2.7/site-packages/dsniff/core/pkt.py", line 84, in _register
snaplen=self.snaplen)
File "/usr/local/lib/python2.7/site-packages/dsniff/core/pkt.py", line 54, in            __pcap_open
pc = PcapFactory(name, **kwargs)
File "/usr/local/lib/python2.7/site-packages/dsniff/core/pkt.py", line 22, in __new__
class Pcap(pcap.pcap): pass
AttributeError: 'module' object has no attribute 'pcap'
</code></pre>

<p>Thanks in advance.</p>
