From cfbcb3e353e07edc73fc28fc4ac832f64024f1ec Mon Sep 17 00:00:00 2001 From: Sebastian Rieger Date: Thu, 13 Aug 2015 17:21:22 +0200 Subject: [PATCH] added capture-from-socket.py --- capture-from-socket.py | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 capture-from-socket.py diff --git a/capture-from-socket.py b/capture-from-socket.py new file mode 100644 index 0000000..e427169 --- /dev/null +++ b/capture-from-socket.py @@ -0,0 +1,10 @@ +__author__ = 'Sebastian Rieger' + +import os; + +ncat_path = "C:\\Users\\Sebastian\\Downloads\\ncat" +wireshark_path = "\"C:\\Program Files\\Wireshark\\Wireshark.exe\"" +virl_host = "192.168.0.150" +pcap_port = input("Please enter the port of the live capture: ") + +os.system(ncat_path + " " + virl_host + " " + str(pcap_port) + " | " + wireshark_path + " -k -i -")