Skip to content

Instantly share code, notes, and snippets.

@scottharman
Last active November 26, 2015 22:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save scottharman/9419ce2cc4657295f6e0 to your computer and use it in GitHub Desktop.
Save scottharman/9419ce2cc4657295f6e0 to your computer and use it in GitHub Desktop.
GIOP MATE for Wireshark
Pdu giop_pdu Proto giop Transport tcp/ip {
Extract giop_addr From ip.addr;
Extract giop_port From tcp.port;
Extract giop_type From giop.type;
Extract giop_request_id From giop.request_id;
Extract giop_request_op From giop.request_op;
};
Gop giop_req On giop_pdu Match (giop_addr, giop_addr, giop_port, giop_port,giop_request_id) {
Start (giop_type = 0);
Stop (giop_type = 1);
Extra (giop_request_op);
};
Gog giop_session {
Member giop_req(giop_addr, giop_addr, giop_port, giop_port,giop_request_id );
Extra (giop_request_op);
};
Done;
if not exist GIOP mkdir GIOP
for %%P in (*.pcap) do tshark -o "mate.config: c:\data\quantel.mate" -R "mate.giop_session.Duration >= 1" -2 -r %%P -w GIOP\%%~nP.pcap
cd GIOP
SETLOCAL EnableDelayedExpansion
set myfiles=
IF [%1]==[] ( set FILTER=* ) else ( set FILTER=%1 )
IF [%2]==[] ( set OUTFILE=giop.pcapng ) else ( set OUTFILE=%2.pcapng )
for %%f in (%FILTER%) do set myfiles=!myfiles! "%%f"
rem Cmd /V:on /c
mergecap.exe -w %OUTFILE% %myfiles%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment