x3go
Posts: 4
Joined: Sun Dec 21, 2014 11:35 am

TCP/IP Sniffer using Upstart / Python / nodeJS Integration?

Fri Jul 17, 2015 10:13 am

I'm doing a project which is mainly a
Ethernet TCP/IP Sniffer

Details:
  • Raspbian on Raspberry Pi v1 Model B.
  • Similar to pitap (Automatic bridge creation and packet capture multiple network interfaces),
    using upstart, bridge-utils and tcpdump (libcap) for capturing the traffic over Ethernet.
  • SMS Handler written in Python using pySerial (UART)
    for communication (send/receive data/instructions) through a GSM/GPRS Module.
  • LCD 16X2 Display (HD44780) connected through SPI [py-spidev (Python)].
    I'm using FPGA DE0-Nano As a SPI-Slave and LCD Controller/Driver (it's a requirement).
  • Network statistics to be displayed & controlled by a node.js http web server application.
  • Use some sort of a parser for dissection and statistics.
    Wireshark doesn't fit me as i want to implement my own small scale filtering / basic small network statistics application.
------------------------------------------------------------------------

How can i integrate all of the above to run all together?

- Should i use a separate upstart daemons / services for each? not sure how all of those work together?
- Should i share some sort of a db derived from the tcpdump pcap file or can it be avoided?

- Maybe it's better approach to gather all to the node.js app
replacing python with pi-spi for SPI, node-serialport for UART.
and launch tcpdump as a child process or something?

I'll be more than glad for some insights :)

Thanks


- - - - - - - - - - - - - - - - - - - - -
( Follows my stackexchange post)

Return to “General programming discussion”