ntop / nDPI

Open Source Deep Packet Inspection Software Toolkit
http://www.ntop.org
GNU Lesser General Public License v3.0
3.83k stars 896 forks source link

How to Integrate nDPI for Deep Packet Inspection into a Python Project? #2505

Open Nishi13official opened 3 months ago

Nishi13official commented 3 months ago

Type your question in a clear and concise way to help the community answering it.I am looking for guidance on how to effectively use ndpi and integrate it into my Python project. Specifically, I need assistance with the following:

  1. Understanding ndpi: I would appreciate resources or explanations that detail what ndpi is and its capabilities.

  2. Integration with Python: I am interested in examples or documentation that demonstrate how to integrate ndpi into a Python project. Any sample code or step-by-step guides would be incredibly helpful.

If anyone has experience with ndpi or can point me in the right direction to get started, I would greatly appreciate your insights. Thank you in advance for your assistance!

IvanNardi commented 3 months ago

You can take a look at https://github.com/ntop/nDPI/blob/dev/python/README.md

Nishi13official commented 3 months ago

Thanks for the informative link! It was very helpful in implementing nDPI in my API. I’m now looking to extend my implementation to generate a CSV file from the nDPI analysis results. Here’s what I’ve done so far: I’ve successfully integrated nDPI into my API

Thanks in advance

Nishi13official commented 2 months ago

I’m now looking to extend my implementation to generate a CSV file from the nDPI analysis results.Do anyone have idea about that ?

IvanNardi commented 2 months ago

@Nishi13official, you can take a look at ./example/ndpiReader -K csv -k output.csv -v2 -i $INPUT_PCAP