You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
727 B

  1. @echo off
  2. REM start a remote capture session using the provided live capture
  3. REM tcp port as defined in UWM
  4. REM adapt path to Wireshark and NetCat (nc.exe) binaries
  5. REM
  6. REM NetCat for Windows can be found, e.g. at: https://nmap.org/ncat/
  7. REM
  8. REM sebastian.rieger@cs.hs-fulda.de
  9. if -%1-==-- echo live capture tcp port not provided, please start as "capture-from-socket.bat <tcp-live-capture-port>" & exit /b
  10. set NETCAT_PATH="C:\Users\Sebastian\Downloads\ncat"
  11. set WIRESHARK_PATH="C:\Program Files\Wireshark\Wireshark.exe"
  12. set VIRL_HOST="192.168.0.100"
  13. set PCAP_PORT="%1"
  14. start cmd /C "echo reading live capture from port %1, close Wireshark, to stop ... & %NETCAT_PATH% %VIRL_HOST% %PCAP_PORT% | %WIRESHARK_PATH% -k -i -"