Skip to content

Commit

Permalink
Remove port usage in evt file.
Browse files Browse the repository at this point in the history
This has been removed in Zeek 7.1. Zeek's base scripts will register
the replaced analyzer.
  • Loading branch information
awelzel committed Aug 12, 2024
1 parent eb8d3a0 commit feb39e3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ jobs:
matrix:
version:
- zeek:6.0
- zeek:7.0
- zeek-dev:latest

fail-fast: false
Expand Down
3 changes: 1 addition & 2 deletions analyzer/tftp.evt
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
# Note: When line numbers change in this file, update the documentation that pulls it in.

protocol analyzer spicy::TFTP over UDP:
parse with TFTP::Packet,
port 69/udp;
parse with TFTP::Packet;

import TFTP;

Expand Down
5 changes: 5 additions & 0 deletions scripts/main.zeek
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ export {

## Event that can be handled to access the TFTP logging record.
global log_tftp: event(rec: Info);

## The well known TFT ports to register the analyzer for.
global ports: set[port] = { 69/udp, } &redef;
}

# Maps a partial data connection ID to the request's Info record.
Expand All @@ -51,6 +54,8 @@ redef record connection += {

event zeek_init() &priority=5
{
Analyzer::register_for_ports(Analyzer::ANALYZER_SPICY_TFTP, ports);

Log::create_stream(TFTP::LOG, [$columns = Info, $ev = log_tftp, $path="tftp"]);
}

Expand Down

0 comments on commit feb39e3

Please sign in to comment.