diff options
author | Masfehico <clyhtsuriva@gmail.com> | 2020-03-02 12:58:16 +0100 |
---|---|---|
committer | Masfehico <clyhtsuriva@gmail.com> | 2020-03-02 12:58:16 +0100 |
commit | a43dc49ffbdb4abccd775766fc20dd53f76f6f28 (patch) | |
tree | 2b459cef1f7705a2dfe03b58f717200d9d20ac5c /analyse | |
parent | daf3d081e68738868276e40cb1b4db0158e200b2 (diff) |
script modified
Diffstat (limited to 'analyse')
-rw-r--r-- | analyse/script.sh | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/analyse/script.sh b/analyse/script.sh index aca8ed0..1d58b9f 100644 --- a/analyse/script.sh +++ b/analyse/script.sh @@ -3,16 +3,16 @@ while : do - sudo tcpdump -i eth1 -nn -c1 -A src 192.168.52.19 -w capture.pcap - sudo tcpdump -r capture.pcap > grostas - cat grostas | cut -d" " -f1 >> heure.txt - cat grostas | cut -d" " -f2 >> protocole.txt - cat grostas | cut -d" " -f3 >> source.txt - cat grostas | cut -d" " -f5 >> destination.txt - tail -n1 heure.txt - tail -n1 protocole.txt - tail -n1 source.txt - tail -n1 destination.txt + sudo tcpdump -i eth1 -nn -c1 -A src 192.168.52.19 -w capture.pcap + sudo tcpdump -r capture.pcap > grostas + cat grostas | cut -d" " -f1 >> /tmp/heure.txt + cat grostas | cut -d" " -f2 >> /tmp/protocole.txt + cat grostas | cut -d" " -f3 >> /tmp/source.txt + cat grostas | cut -d" " -f5 >> /tmp/destination.txt + tail -n1 /tmp/heure.txt + tail -n1 /tmp/protocole.txt + tail -n1 /tmp/source.txt + tail -n1 /tmp/destination.txt done |