nDPI icon indicating copy to clipboard operation
nDPI copied to clipboard

found an issue in nDPI

Open rathnaTech opened this issue 10 years ago • 5 comments

Dear all, while running ./ndpireader it will detect website as a protocol.

for example: i am loading www.whatsapp.com it shows in detected protocols (whatsapp packets -1 flows -3) My question is that i am loading http protocol right why it show htttp as whatsapp.

And actually nDPI should detect whatsapp protocol for whatsapp application.but it also detect website as protocol.

rathnaTech avatar Feb 08 '16 06:02 rathnaTech

I think the point is that for a http packet we also try if there is a host name match here https://github.com/ntop/nDPI/blob/dev/src/lib/ndpi_content_match.c.inc#L7404 .

Later I'll check better.

kYroL01 avatar Feb 08 '16 09:02 kYroL01

so if i am using application for whatsapp it will also detect a protocol right. if i am using whatsapp.com you are tracking the string and marked it as a protocol. michele

rathnaTech avatar Feb 08 '16 10:02 rathnaTech

Yes exactly. nDPI parse the url of the payload to find more information about the application protocol. If you using whatsapp app or visit the website, the packets as inside the host name of the application, and this is why they are detecting as the same protocol. This is not a bug, is the behaviour of nDPI. I think this aspect maybe must be re-consider for a better implementation. I'll see in the future.

kYroL01 avatar Feb 12 '16 10:02 kYroL01

Thank you michele i understood .

you have made some algorithm to read the hostname in that certificate.using that you have printed the DNS and protocol name right.

Is it possible to get the payload and data using that algorithm for application protocols?? i am looking forward for your response as soon as possible..

rathnaTech avatar Feb 13 '16 07:02 rathnaTech

No this is something we won't provide as nDPI is not the place for doing this kind of things.

lucaderi avatar Feb 13 '16 07:02 lucaderi