0

What is the appropriate way in python to sniff all IP packets in real time? I'm interested in getting the raw packet data.

I've read that raw sockets are supposed to let you read some packets but didn't quite get the hang of it.

matanso
  • 1,284
  • 1
  • 10
  • 17

1 Answers1

0

I think it make sense to use pylibpcap. Which is wrapper on Linux libcap application for package capturing.

wolendranh
  • 4,202
  • 1
  • 28
  • 37