aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--analyse/script.sh20
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