diff options
author | Masfehico <clyhtsuriva@gmail.com> | 2020-03-02 12:53:41 +0100 |
---|---|---|
committer | Masfehico <clyhtsuriva@gmail.com> | 2020-03-02 12:53:41 +0100 |
commit | 2d6eb470a3b415907307a758845c5caaf65436b3 (patch) | |
tree | b21eb506dac57e9319156d2e4ed161dce76fb249 /analyse | |
parent | d994b0ff0d48aae65f81ee7f23066cfa6575b3ef (diff) |
pic remove and script moved
Diffstat (limited to 'analyse')
-rw-r--r-- | analyse/script.sh | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/analyse/script.sh b/analyse/script.sh new file mode 100644 index 0000000..aca8ed0 --- /dev/null +++ b/analyse/script.sh @@ -0,0 +1,19 @@ +#!/bin/bash + +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 +done + + + |