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:\Python24test.py 0

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 output

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 stdin, line 1, in ? NameError: name 'getInterface' is not defined Maybe it can be used only on *nix platforms? --

sniffer in python

2005-08-15 Thread billiejoex
programming languages is 'libcap' (winpcap for win32 platforms). 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!! Is there someone who has already created a network sniffer

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

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:

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. Here's