-
Notifications
You must be signed in to change notification settings - Fork 35
/
Copy pathlive_pcap_gui.cmd
28 lines (24 loc) · 927 Bytes
/
live_pcap_gui.cmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
@echo off
REM This batch file is primarily the work of other users in our community. I have just adapted a simple GUI
REM to make the script more user freindly.
REM Thank you to user Flex from our Support community for creating the initial batch file
REM Thank you to [email protected] for your continued input and fun bits.
REM
REM Make sure that you have installed zenmap (https://nmap.org/zenmap/) on your system.
REM
REM Adapted by: [email protected]
REM Last Modified: Sep 5, 2017
REM
TITLE VIRL Live PCap
MODE con:cols=80 lines=12
COLOR 1F
set NETCAT_PATH=%PROGRAMFILES(x86)%\Nmap\ncat.exe
set WIRESHARK_PATH=%PROGRAMFILES%\Wireshark\Wireshark.exe
echo.
set /P VIRL_HOST="VIRL PE IP: "
set /P PCAP_PORT="Live Port : "
echo.
echo Reading live pCap from port %PCAP_PORT%.
echo Close this window to stop capture!
echo.
"%NETCAT_PATH%" %VIRL_HOST% %PCAP_PORT% | "%WIRESHARK_PATH%" -k -i -