I'm writing a python script on a headless server, and I'd like to see the packet capture output for the script.
I can't run ettercap or Wireshark on the server as there is too much other noise (besides, wireshark is a GUI tool). I do have sudo access, however.
Is there any way that I can capture the packets generated by that script only? Preferably in a format that can be loaded into Wireshark (Not mandatory, however, I can trudge through the text if necessary)
Best Answer
Wireshark has a command line utility. I have used it on remote computers where I only had console access, it works quite well. Takes only a few minutes of reading the parameters to learn how to use it.