Is there any way I could do this...
I would like to be able to modify the tcpdump binary and add one small option.
I would like to be able to run a command once the activity stops for more than 5 secs.
For example, I'm transfering a file on a specific port, I want tcpdump to monitor the file transfer activity but once it stops, I would like the option to run a command or play a sound so that I know my download is complete. I know I could use firefox or a browser, but I've been experimenting with netcat and would like to learn more about tcp/ip. So I'm transfering files on netcat, monitoring the activity on the command
sudo tcpdump -i ath0 dst port 6666
So I see all the packets been sent, but I would like to know when the download is complete(since netcat doesn't give any notice when the file has been fully downloaded) by letting me play a sound or basically running a command once there is more than 5 secs of inactivity on tcpdump -i ath0 dst port 6666
How would I go about doing this? I'm not an experienced programmer but I love learning and exploring. Thanks.
Last edited by trist007; 01-30-2009 at 03:50 PM.
|