From d994b0ff0d48aae65f81ee7f23066cfa6575b3ef Mon Sep 17 00:00:00 2001
From: Luneji <61687883+Luneji@users.noreply.github.com>
Date: Mon, 2 Mar 2020 11:51:22 +0100
Subject: Add files via upload
---
script.sh | 19 +++++++++++++++++++
1 file changed, 19 insertions(+)
create mode 100644 script.sh
(limited to 'script.sh')
diff --git a/script.sh b/script.sh
new file mode 100644
index 0000000..aca8ed0
--- /dev/null
+++ b/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
+
+
+
--
cgit v1.2.3
'switch'/>
| Music app in Java | |