Skip to content

spicy script help for packer analyser #3220

Closed Answered by bbannier
biswajitutil asked this question in Help
Discussion options

You must be logged in to vote

There are a number of issues here.

In main.zeek:

if ( ! PacketAnalyzer::try_register_packet_analyzer_by_name("Ethernet", 0x88ba,
    "spicy_GOOSE") )
	if ( ! PacketAnalyzer::try_register_packet_analyzer_by_name("Ethernet",
	    0x88ba, "spicy::GOOSE") )
		print "cannot register GOOSE Spicy analyzer";

This registers your GOOSE analyzer for tag 0x88ba. Looking at your PCAP, this is not the correct tag for GOOSE which should be 0x88b8 instead.

You should change these lines to

if ( ! PacketAnalyzer::try_register_packet_analyzer_by_name("Ethernet", 0x88b8,
    "spicy_GOOSE") )
	print "cannot register GOOSE Spicy analyzer";

In zeek_goose.spicy:

on zeek_spicy_goose::GOOSEPacket::%done {
    zeek::

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by bbannier
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #3214 on August 07, 2023 09:09.