Re: sniffer in python

2005-08-16 Thread billiejoex
Moreover the getInterface() function seems to be unexistent: >>> from pcapy import * >>> getInterface() Traceback (most recent call last): File "", line 1, in ? NameError: name 'getInterface' is not defined Maybe it can be used only on *nix platforms? -- http://mail.python.org/mailman/listi

Re: sniffer in python

2005-08-16 Thread billiejoex
Sorry... the text has been wrong formatted. Read this, plz >>> Thanks for your help. Like you suggested I converted the integer value in a string one by using the repr() funtion applied on the print: print '%d \n %s' %(count, repr(iface)) The program now permit me to select the interface. The outp

Re: sniffer in python

2005-08-16 Thread billiejoex
Thanks for your help. Like you suggested I converted the integer value in a string one by using the repr() funtion applied on the print: print '%d \n %s' %(count, repr(iface)) The program now permit me to select the interface. The output is in a strange hex-similar form: C:\Python24>test.py 0

Re: sniffer in python

2005-08-15 Thread Peter Hansen
billiejoex wrote: > Thank you for your fast reply. You're right. I'll be more specific, sorry. > The example source is the one you can find on the 'Impacket' page on the > same site of pcapy: > http://oss.coresecurity.com/impacket/sniff.py > I use a Win XP prof sp2 system, python ver. 2.4.1. > Her

Re: sniffer in python

2005-08-15 Thread billiejoex
Thank you for your fast reply. You're right. I'll be more specific, sorry. The example source is the one you can find on the 'Impacket' page on the same site of pcapy: http://oss.coresecurity.com/impacket/sniff.py I use a Win XP prof sp2 system, python ver. 2.4.1. Here's the output: C:\Python24>1

Re: sniffer in python

2005-08-15 Thread Peter Hansen
billiejoex wrote: > For python exist a porting called pcapy: > http://oss.coresecurity.com/projects/pcapy.html > ...that I'd like to use BUT... all the examples reported on the sites don't > works!! It usually helps to describe *in what way* things don't work. Do they crash? If so, provide the