sniffer in python
billiejoex
billiejoex at fastwebnet.it
Tue Aug 16 06:22:24 EDT 2005
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 is in a
strange hex-similar form:
http://billiejoex.altervista.org/test.txt
When I select the interface (0 or 1) I encounter an encoding error:
Traceback (most recent call last):
File "C:\Python24\test.py", line 108, in ?
main(filter)
File "C:\Python24\test.py", line 92, in main
p = open_live(dev, 1500, 0, 100)
UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-15:
ordi
nal not in range(128)
- How con I resolve this encoding problem?
- How can I display the interface names in a 'human' form?
Best regards
billie
More information about the Python-list
mailing list