[BangPypers] Implementing Protocol Sniffer in Python.
learningpython at aol.com
Thu Mar 12 11:45:52 CET 2009
My name is Anand and i would like to thank you every one helped me. I will
explore all your response and get back to you. I am very new in python and
your help is really much appreciated.
Thanks every one.
> Hi 'Learning Python':
> It'd be much better you appeared to have a usual name :-) ... people like
> responding to human beings with names.
> You would need 2 things:--
> 1) way to sniff packets off the network. one (common) way to do it is to
> LibPCAP (Wireshark, Ethereal, Tcpdump... all of those FOSS sniffers use
> LibPCAP has what looks like a fairly robust Pythonic API exists).
> 2) ASN.1 codec. Here you have 2 choices (and I guess hard ones) --
> a) Use Python ASN.1 codec APIs
> b) Use C/C++ (native) ASN.1 codec's with Python wrapper.
> I don't know of very robust open-source ASN.1 codecs (either implemented
> C/C++ or Python) that are actively developed, so any problem you face, you
> are completely on your own. They generally work, but with a limited scope
> ASN.1 specs. There are ones which work fine for PER, there are others
> work fine for BER, and few which work only for DER/CER. One Python option
> On Mon, Mar 9, 2009 at 3:50 PM, Radhakrishna Rao <radrao at gmail.com> wrote:
>> i dont know about ASN.1 but there is a very good network tool
>> available in python called scapy. you can check it out at
>> On Mon, Mar 9, 2009 at 2:08 PM, learningpython <learningpython at aol.com>
>> > Hello
>> > I am very new to Python and looking forward to implement in Python the
>> > protocol sniffer.
>> > I need two helps here.
>> > 1. Functions to extract the bytes and bits from received from network
>> > serial input and performing decoding based on the input.
>> > 2. How to define the structure, like ASN.1 where further messages are
>> > on the No which is processed dynamically ex length of messages definer
>> > further Calling IDs, etc.
>> > Can someone help me..
>> > learning python
> BangPypers mailing list
> BangPypers at python.org
View this message in context: http://www.nabble.com/Implementing-Protocol-Sniffer-in-Python.-tp22409023p22472758.html
Sent from the BangPypers - Bangalore Python Users Group mailing list archive at Nabble.com.
More information about the BangPypers