SocketLogger: A class to log all socket traffic.#4893
SocketLogger: A class to log all socket traffic.#4893antoniovazquezblanco wants to merge 1 commit intosecdev:masterfrom
Conversation
|
BTW, please let me know if you have any suggestion. I was never that happy with the naming I chose nor the way I've implemented this. If you have any better ideas they will be appreciated :) |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #4893 +/- ##
==========================================
- Coverage 80.85% 80.81% -0.04%
==========================================
Files 369 370 +1
Lines 90961 90988 +27
==========================================
- Hits 73542 73536 -6
- Misses 17419 17452 +33
🚀 New features to boost your workflow:
|
|
Hi ! Thanks for the PR. A few notes:
I'm not sure if this isn't too specific to end up in Scapy. But those are breaking in any case ^^ Thanks & happy new year ! |
|
Hi @gpotter2! Thanks for your comments. Just for clarification, you mean that I should implement the functionality in the base socket and allow to specify a pcapwriter on it's creation? Otherwise, if I go the inheritance route, this cannot be enabled/disabled and it would not work for the sockets that do not inherit from SimpleSocket. Or am I missing something? Happy new year! :D |
|
If I recall properly, |

Checklist:
tox)I've created a dummy package that I've been using to log all socket traffic to a pcap file. Sometimes this was useful for debugging my own scripts.
@polybassa noticed this package and commented if I could create a PR to upstream that utility: antoniovazquezblanco/scapy-socketlogger#3