Requirement: I need to obtain files/objets of any kind that are being downloaded via my wifi interface.
I am running tshhark to listen to my wifi interface and export HTTP objects to a given directory using the following command.
tshark -i wlp4s0 --export-object "http,/tmp/tshark-objects/"
It successfully intercepts the objects but does not write them automatically in the specified path unless i manually stop tshark using "Ctrl+C".
Question: How do I export objects of any kind that are downloaded via different protocols using the same command/script.
Constraint:
I want tshark to run continuously and exporting the objects as soon as they are transmitted over the network. PS Using tshark is not mandatory for me. I can switch to some other tool if that fulfills this requirement.