Use the same rules as cmake submodule to reformat Zeek

This commit is contained in:
Tim Wojtulewicz 2023-05-08 10:19:26 -07:00
parent fd72d81bad
commit 84e3f414a7
125 changed files with 1423 additions and 1670 deletions

View file

@ -2,13 +2,12 @@ zeek_add_plugin(
Zeek
BitTorrent
SOURCES
BitTorrent.cc
BitTorrentTracker.cc
Plugin.cc
BitTorrent.cc
BitTorrentTracker.cc
Plugin.cc
BIFS
events.bif
events.bif
PAC
bittorrent.pac
bittorrent-analyzer.pac
bittorrent-protocol.pac
)
bittorrent.pac
bittorrent-analyzer.pac
bittorrent-protocol.pac)

View file

@ -2,9 +2,8 @@ zeek_add_plugin(
Zeek
ConnSize
SOURCES
ConnSize.cc
Plugin.cc
ConnSize.cc
Plugin.cc
BIFS
events.bif
functions.bif
)
events.bif
functions.bif)

View file

@ -2,17 +2,16 @@ zeek_add_plugin(
Zeek
DCE_RPC
SOURCES
DCE_RPC.cc
Plugin.cc
DCE_RPC.cc
Plugin.cc
BIFS
consts.bif
types.bif
events.bif
consts.bif
types.bif
events.bif
PAC
dce_rpc.pac
dce_rpc-protocol.pac
dce_rpc-analyzer.pac
dce_rpc-auth.pac
endpoint-atsvc.pac
endpoint-epmapper.pac
)
dce_rpc.pac
dce_rpc-protocol.pac
dce_rpc-analyzer.pac
dce_rpc-auth.pac
endpoint-atsvc.pac
endpoint-epmapper.pac)

View file

@ -2,14 +2,13 @@ zeek_add_plugin(
Zeek
DHCP
SOURCES
DHCP.cc
Plugin.cc
DHCP.cc
Plugin.cc
BIFS
events.bif
types.bif
events.bif
types.bif
PAC
dhcp.pac
dhcp-protocol.pac
dhcp-analyzer.pac
dhcp-options.pac
)
dhcp.pac
dhcp-protocol.pac
dhcp-analyzer.pac
dhcp-options.pac)

View file

@ -2,13 +2,12 @@ zeek_add_plugin(
Zeek
DNP3
SOURCES
DNP3.cc
Plugin.cc
DNP3.cc
Plugin.cc
BIFS
events.bif
events.bif
PAC
dnp3.pac
dnp3-analyzer.pac
dnp3-protocol.pac
dnp3-objects.pac
)
dnp3.pac
dnp3-analyzer.pac
dnp3-protocol.pac
dnp3-objects.pac)

View file

@ -2,8 +2,7 @@ zeek_add_plugin(
Zeek
DNS
SOURCES
DNS.cc
Plugin.cc
DNS.cc
Plugin.cc
BIFS
events.bif
)
events.bif)

View file

@ -2,8 +2,7 @@ zeek_add_plugin(
Zeek
File
SOURCES
File.cc
Plugin.cc
File.cc
Plugin.cc
BIFS
events.bif
)
events.bif)

View file

@ -1,9 +1,8 @@
spicy_add_analyzer(
NAME
NAME
Finger
SOURCES
SOURCES
finger.spicy
finger.evt
LEGACY
legacy
)
LEGACY
legacy)

View file

@ -2,8 +2,7 @@ zeek_add_plugin(
Zeek
Finger
SOURCES
Finger.cc
Plugin.cc
Finger.cc
Plugin.cc
BIFS
events.bif
)
events.bif)

View file

@ -2,9 +2,8 @@ zeek_add_plugin(
Zeek
FTP
SOURCES
FTP.cc
Plugin.cc
FTP.cc
Plugin.cc
BIFS
events.bif
functions.bif
)
events.bif
functions.bif)

View file

@ -2,8 +2,7 @@ zeek_add_plugin(
Zeek
Gnutella
SOURCES
Gnutella.cc
Plugin.cc
Gnutella.cc
Plugin.cc
BIFS
events.bif
)
events.bif)

View file

@ -2,13 +2,12 @@ zeek_add_plugin(
Zeek
GSSAPI
SOURCES
GSSAPI.cc
Plugin.cc
GSSAPI.cc
Plugin.cc
BIFS
events.bif
events.bif
PAC
gssapi.pac
gssapi-protocol.pac
gssapi-analyzer.pac
${PROJECT_SOURCE_DIR}/src/analyzer/protocol/asn1/asn1.pac
)
gssapi.pac
gssapi-protocol.pac
gssapi-analyzer.pac
${PROJECT_SOURCE_DIR}/src/analyzer/protocol/asn1/asn1.pac)

View file

@ -2,9 +2,8 @@ zeek_add_plugin(
Zeek
HTTP
SOURCES
HTTP.cc
Plugin.cc
HTTP.cc
Plugin.cc
BIFS
events.bif
functions.bif
)
events.bif
functions.bif)

View file

@ -2,8 +2,7 @@ zeek_add_plugin(
Zeek
Ident
SOURCES
Ident.cc
Plugin.cc
Ident.cc
Plugin.cc
BIFS
events.bif
)
events.bif)

View file

@ -2,12 +2,11 @@ zeek_add_plugin(
Zeek
IMAP
SOURCES
Plugin.cc
IMAP.cc
Plugin.cc
IMAP.cc
BIFS
events.bif
events.bif
PAC
imap.pac
imap-analyzer.pac
imap-protocol.pac
)
imap.pac
imap-analyzer.pac
imap-protocol.pac)

View file

@ -2,8 +2,7 @@ zeek_add_plugin(
Zeek
IRC
SOURCES
IRC.cc
Plugin.cc
IRC.cc
Plugin.cc
BIFS
events.bif
)
events.bif)

View file

@ -2,28 +2,27 @@ zeek_add_plugin(
Zeek
KRB
SOURCES
Plugin.cc
KRB.cc
KRB_TCP.cc
Plugin.cc
KRB.cc
KRB_TCP.cc
BIFS
types.bif
events.bif
types.bif
events.bif
PAC
krb.pac
krb-protocol.pac
krb-analyzer.pac
krb-asn1.pac
krb-defs.pac
krb-types.pac
krb-padata.pac
${PROJECT_SOURCE_DIR}/src/analyzer/protocol/asn1/asn1.pac
krb.pac
krb-protocol.pac
krb-analyzer.pac
krb-asn1.pac
krb-defs.pac
krb-types.pac
krb-padata.pac
${PROJECT_SOURCE_DIR}/src/analyzer/protocol/asn1/asn1.pac
PAC
krb_TCP.pac
krb-protocol.pac
krb-analyzer.pac
krb-asn1.pac
krb-defs.pac
krb-types.pac
krb-padata.pac
${PROJECT_SOURCE_DIR}/src/analyzer/protocol/asn1/asn1.pac
)
krb_TCP.pac
krb-protocol.pac
krb-analyzer.pac
krb-asn1.pac
krb-defs.pac
krb-types.pac
krb-padata.pac
${PROJECT_SOURCE_DIR}/src/analyzer/protocol/asn1/asn1.pac)

View file

@ -2,13 +2,12 @@ zeek_add_plugin(
Zeek
Login
SOURCES
Login.cc
RSH.cc
Telnet.cc
Rlogin.cc
NVT.cc
Plugin.cc
Login.cc
RSH.cc
Telnet.cc
Rlogin.cc
NVT.cc
Plugin.cc
BIFS
events.bif
functions.bif
)
events.bif
functions.bif)

View file

@ -7,8 +7,7 @@ zeek_add_plugin(
Zeek
MIME
SOURCES
MIME.cc
Plugin.cc
MIME.cc
Plugin.cc
BIFS
events.bif
)
events.bif)

View file

@ -2,12 +2,11 @@ zeek_add_plugin(
Zeek
Modbus
SOURCES
Modbus.cc
Plugin.cc
Modbus.cc
Plugin.cc
BIFS
events.bif
events.bif
PAC
modbus.pac
modbus-analyzer.pac
modbus-protocol.pac
)
modbus.pac
modbus-analyzer.pac
modbus-protocol.pac)

View file

@ -2,26 +2,25 @@ zeek_add_plugin(
Zeek
MQTT
SOURCES
MQTT.cc
Plugin.cc
MQTT.cc
Plugin.cc
BIFS
types.bif
events.bif
types.bif
events.bif
PAC
mqtt.pac
mqtt-protocol.pac
commands/connect.pac
commands/connack.pac
commands/publish.pac
commands/puback.pac
commands/pubrec.pac
commands/pubrel.pac
commands/pubcomp.pac
commands/subscribe.pac
commands/suback.pac
commands/unsuback.pac
commands/unsubscribe.pac
commands/disconnect.pac
commands/pingreq.pac
commands/pingresp.pac
)
mqtt.pac
mqtt-protocol.pac
commands/connect.pac
commands/connack.pac
commands/publish.pac
commands/puback.pac
commands/pubrec.pac
commands/pubrel.pac
commands/pubcomp.pac
commands/subscribe.pac
commands/suback.pac
commands/unsuback.pac
commands/unsubscribe.pac
commands/disconnect.pac
commands/pingreq.pac
commands/pingresp.pac)

View file

@ -2,12 +2,11 @@ zeek_add_plugin(
Zeek
MySQL
SOURCES
MySQL.cc
Plugin.cc
MySQL.cc
Plugin.cc
BIFS
events.bif
events.bif
PAC
mysql.pac
mysql-analyzer.pac
mysql-protocol.pac
)
mysql.pac
mysql-analyzer.pac
mysql-protocol.pac)

View file

@ -2,11 +2,10 @@ zeek_add_plugin(
Zeek
NCP
SOURCES
NCP.cc
Plugin.cc
NCP.cc
Plugin.cc
BIFS
events.bif
consts.bif
events.bif
consts.bif
PAC
ncp.pac
)
ncp.pac)

View file

@ -2,9 +2,8 @@ zeek_add_plugin(
Zeek
NetBIOS
SOURCES
NetbiosSSN.cc
Plugin.cc
NetbiosSSN.cc
Plugin.cc
BIFS
events.bif
functions.bif
)
events.bif
functions.bif)

View file

@ -2,13 +2,12 @@ zeek_add_plugin(
Zeek
NTLM
SOURCES
NTLM.cc
Plugin.cc
NTLM.cc
Plugin.cc
BIFS
types.bif
events.bif
types.bif
events.bif
PAC
ntlm.pac
ntlm-protocol.pac
ntlm-analyzer.pac
)
ntlm.pac
ntlm-protocol.pac
ntlm-analyzer.pac)

View file

@ -2,14 +2,13 @@ zeek_add_plugin(
Zeek
NTP
SOURCES
NTP.cc
Plugin.cc
NTP.cc
Plugin.cc
BIFS
types.bif
events.bif
types.bif
events.bif
PAC
ntp.pac
ntp-analyzer.pac
ntp-mode7.pac
ntp-protocol.pac
)
ntp.pac
ntp-analyzer.pac
ntp-mode7.pac
ntp-protocol.pac)

View file

@ -1,7 +1 @@
zeek_add_plugin(
Zeek
PIA
SOURCES
PIA.cc
Plugin.cc
)
zeek_add_plugin(Zeek PIA SOURCES PIA.cc Plugin.cc)

View file

@ -2,8 +2,7 @@ zeek_add_plugin(
Zeek
POP3
SOURCES
POP3.cc
Plugin.cc
POP3.cc
Plugin.cc
BIFS
events.bif
)
events.bif)

View file

@ -2,12 +2,11 @@ zeek_add_plugin(
Zeek
RADIUS
SOURCES
RADIUS.cc
Plugin.cc
RADIUS.cc
Plugin.cc
BIFS
events.bif
events.bif
PAC
radius.pac
radius-analyzer.pac
radius-protocol.pac
)
radius.pac
radius-analyzer.pac
radius-protocol.pac)

View file

@ -2,19 +2,18 @@ zeek_add_plugin(
Zeek
RDP
SOURCES
RDPEUDP.cc
RDP.cc
Plugin.cc
RDPEUDP.cc
RDP.cc
Plugin.cc
BIFS
events.bif
types.bif
events.bif
types.bif
PAC
rdp.pac
rdp-analyzer.pac
rdp-protocol.pac
${PROJECT_SOURCE_DIR}/src/analyzer/protocol/asn1/asn1.pac
rdp.pac
rdp-analyzer.pac
rdp-protocol.pac
${PROJECT_SOURCE_DIR}/src/analyzer/protocol/asn1/asn1.pac
PAC
rdpeudp.pac
rdpeudp-analyzer.pac
rdpeudp-protocol.pac
)
rdpeudp.pac
rdpeudp-analyzer.pac
rdpeudp-protocol.pac)

View file

@ -2,12 +2,11 @@ zeek_add_plugin(
Zeek
RFB
SOURCES
RFB.cc
Plugin.cc
RFB.cc
Plugin.cc
BIFS
events.bif
events.bif
PAC
rfb.pac
rfb-analyzer.pac
rfb-protocol.pac
)
rfb.pac
rfb-analyzer.pac
rfb-protocol.pac)

View file

@ -2,12 +2,11 @@ zeek_add_plugin(
Zeek
RPC
SOURCES
RPC.cc
NFS.cc
MOUNT.cc
Portmap.cc
XDR.cc
Plugin.cc
RPC.cc
NFS.cc
MOUNT.cc
Portmap.cc
XDR.cc
Plugin.cc
BIFS
events.bif
)
events.bif)

View file

@ -2,17 +2,16 @@ zeek_add_plugin(
Zeek
SIP
SOURCES
Plugin.cc
SIP.cc
SIP_TCP.cc
Plugin.cc
SIP.cc
SIP_TCP.cc
BIFS
events.bif
events.bif
PAC
sip.pac
sip-analyzer.pac
sip-protocol.pac
sip.pac
sip-analyzer.pac
sip-protocol.pac
PAC
sip_TCP.pac
sip-protocol.pac
sip-analyzer.pac
)
sip_TCP.pac
sip-protocol.pac
sip-analyzer.pac)

View file

@ -2,88 +2,87 @@ zeek_add_plugin(
Zeek
SMB
SOURCES
SMB.cc
Plugin.cc
SMB.cc
Plugin.cc
BIFS
# SMB 1.
smb1_com_check_directory.bif
smb1_com_close.bif
smb1_com_create_directory.bif
smb1_com_echo.bif
smb1_com_logoff_andx.bif
smb1_com_negotiate.bif
smb1_com_nt_create_andx.bif
smb1_com_nt_cancel.bif
smb1_com_query_information.bif
smb1_com_read_andx.bif
smb1_com_session_setup_andx.bif
smb1_com_transaction.bif
smb1_com_transaction_secondary.bif
smb1_com_transaction2.bif
smb1_com_transaction2_secondary.bif
smb1_com_tree_connect_andx.bif
smb1_com_tree_disconnect.bif
smb1_com_write_andx.bif
smb1_events.bif
# SMB 2.
smb2_com_close.bif
smb2_com_create.bif
smb2_com_negotiate.bif
smb2_com_read.bif
smb2_com_session_setup.bif
smb2_com_set_info.bif
smb2_com_tree_connect.bif
smb2_com_tree_disconnect.bif
smb2_com_write.bif
smb2_com_transform_header.bif
smb2_events.bif
# Common boilerplate.
events.bif
consts.bif
types.bif
# SMB 1.
smb1_com_check_directory.bif
smb1_com_close.bif
smb1_com_create_directory.bif
smb1_com_echo.bif
smb1_com_logoff_andx.bif
smb1_com_negotiate.bif
smb1_com_nt_create_andx.bif
smb1_com_nt_cancel.bif
smb1_com_query_information.bif
smb1_com_read_andx.bif
smb1_com_session_setup_andx.bif
smb1_com_transaction.bif
smb1_com_transaction_secondary.bif
smb1_com_transaction2.bif
smb1_com_transaction2_secondary.bif
smb1_com_tree_connect_andx.bif
smb1_com_tree_disconnect.bif
smb1_com_write_andx.bif
smb1_events.bif
# SMB 2.
smb2_com_close.bif
smb2_com_create.bif
smb2_com_negotiate.bif
smb2_com_read.bif
smb2_com_session_setup.bif
smb2_com_set_info.bif
smb2_com_tree_connect.bif
smb2_com_tree_disconnect.bif
smb2_com_write.bif
smb2_com_transform_header.bif
smb2_events.bif
# Common boilerplate.
events.bif
consts.bif
types.bif
PAC
# Common boilerplate.
smb.pac
smb-common.pac
smb-strings.pac
smb-time.pac
smb-pipe.pac
smb-gssapi.pac
smb-mailslot.pac
# SMB 1.
smb1-protocol.pac
smb1-com-check-directory.pac
smb1-com-close.pac
smb1-com-create-directory.pac
smb1-com-echo.pac
smb1-com-locking-andx.pac
smb1-com-logoff-andx.pac
smb1-com-negotiate.pac
smb1-com-nt-cancel.pac
smb1-com-nt-create-andx.pac
smb1-com-nt-transact.pac
smb1-com-query-information.pac
smb1-com-read-andx.pac
smb1-com-session-setup-andx.pac
smb1-com-transaction-secondary.pac
smb1-com-transaction.pac
smb1-com-transaction2.pac
smb1-com-transaction2-secondary.pac
smb1-com-tree-connect-andx.pac
smb1-com-tree-disconnect.pac
smb1-com-write-andx.pac
# SMB 2.
smb2-protocol.pac
smb2-com-close.pac
smb2-com-create.pac
smb2-com-ioctl.pac
smb2-com-lock.pac
smb2-com-negotiate.pac
smb2-com-read.pac
smb2-com-session-setup.pac
smb2-com-set-info.pac
smb2-com-tree-connect.pac
smb2-com-tree-disconnect.pac
smb2-com-write.pac
smb2-com-transform-header.pac
)
# Common boilerplate.
smb.pac
smb-common.pac
smb-strings.pac
smb-time.pac
smb-pipe.pac
smb-gssapi.pac
smb-mailslot.pac
# SMB 1.
smb1-protocol.pac
smb1-com-check-directory.pac
smb1-com-close.pac
smb1-com-create-directory.pac
smb1-com-echo.pac
smb1-com-locking-andx.pac
smb1-com-logoff-andx.pac
smb1-com-negotiate.pac
smb1-com-nt-cancel.pac
smb1-com-nt-create-andx.pac
smb1-com-nt-transact.pac
smb1-com-query-information.pac
smb1-com-read-andx.pac
smb1-com-session-setup-andx.pac
smb1-com-transaction-secondary.pac
smb1-com-transaction.pac
smb1-com-transaction2.pac
smb1-com-transaction2-secondary.pac
smb1-com-tree-connect-andx.pac
smb1-com-tree-disconnect.pac
smb1-com-write-andx.pac
# SMB 2.
smb2-protocol.pac
smb2-com-close.pac
smb2-com-create.pac
smb2-com-ioctl.pac
smb2-com-lock.pac
smb2-com-negotiate.pac
smb2-com-read.pac
smb2-com-session-setup.pac
smb2-com-set-info.pac
smb2-com-tree-connect.pac
smb2-com-tree-disconnect.pac
smb2-com-write.pac
smb2-com-transform-header.pac)

View file

@ -2,9 +2,8 @@ zeek_add_plugin(
Zeek
SMTP
SOURCES
SMTP.cc
Plugin.cc
SMTP.cc
Plugin.cc
BIFS
events.bif
functions.bif
)
events.bif
functions.bif)

View file

@ -2,14 +2,13 @@ zeek_add_plugin(
Zeek
SNMP
SOURCES
SNMP.cc
Plugin.cc
SNMP.cc
Plugin.cc
BIFS
types.bif
events.bif
types.bif
events.bif
PAC
snmp.pac
snmp-protocol.pac
snmp-analyzer.pac
${PROJECT_SOURCE_DIR}/src/analyzer/protocol/asn1/asn1.pac
)
snmp.pac
snmp-protocol.pac
snmp-analyzer.pac
${PROJECT_SOURCE_DIR}/src/analyzer/protocol/asn1/asn1.pac)

View file

@ -2,12 +2,11 @@ zeek_add_plugin(
Zeek
SOCKS
SOURCES
SOCKS.cc
Plugin.cc
SOCKS.cc
Plugin.cc
BIFS
events.bif
events.bif
PAC
socks.pac
socks-protocol.pac
socks-analyzer.pac
)
socks.pac
socks-protocol.pac
socks-analyzer.pac)

View file

@ -2,14 +2,13 @@ zeek_add_plugin(
Zeek
SSH
SOURCES
SSH.cc
Plugin.cc
SSH.cc
Plugin.cc
BIFS
types.bif
events.bif
types.bif
events.bif
PAC
ssh.pac
ssh-analyzer.pac
ssh-protocol.pac
consts.pac
)
ssh.pac
ssh-analyzer.pac
ssh-protocol.pac
consts.pac)

View file

@ -2,34 +2,33 @@ zeek_add_plugin(
Zeek
SSL
SOURCES
SSL.cc
DTLS.cc
Plugin.cc
SSL.cc
DTLS.cc
Plugin.cc
BIFS
types.bif
events.bif
functions.bif
consts.bif
types.bif
events.bif
functions.bif
consts.bif
PAC
tls-handshake.pac
tls-handshake-protocol.pac
tls-handshake-analyzer.pac
ssl-defs.pac
proc-certificate.pac
tls-handshake-signed_certificate_timestamp.pac
tls-handshake.pac
tls-handshake-protocol.pac
tls-handshake-analyzer.pac
ssl-defs.pac
proc-certificate.pac
tls-handshake-signed_certificate_timestamp.pac
PAC
ssl.pac
ssl-dtls-analyzer.pac
ssl-analyzer.pac
ssl-dtls-protocol.pac
ssl-protocol.pac
ssl-defs.pac
proc-certificate.pac
ssl.pac
ssl-dtls-analyzer.pac
ssl-analyzer.pac
ssl-dtls-protocol.pac
ssl-protocol.pac
ssl-defs.pac
proc-certificate.pac
PAC
dtls.pac
ssl-dtls-analyzer.pac
dtls-analyzer.pac
ssl-dtls-protocol.pac
dtls-protocol.pac
ssl-defs.pac
)
dtls.pac
ssl-dtls-analyzer.pac
dtls-analyzer.pac
ssl-dtls-protocol.pac
dtls-protocol.pac
ssl-defs.pac)

View file

@ -1,9 +1,8 @@
spicy_add_analyzer(
NAME
NAME
Syslog
SOURCES
SOURCES
syslog.spicy
syslog.evt
LEGACY
legacy
)
LEGACY
legacy)

View file

@ -2,12 +2,11 @@ zeek_add_plugin(
Zeek
Syslog
SOURCES
Syslog.cc
Plugin.cc
Syslog.cc
Plugin.cc
BIFS
events.bif
events.bif
PAC
syslog.pac
syslog-analyzer.pac
syslog-protocol.pac
)
syslog.pac
syslog-analyzer.pac
syslog-protocol.pac)

View file

@ -2,13 +2,12 @@ zeek_add_plugin(
Zeek
TCP
SOURCES
TCP.cc
TCP_Endpoint.cc
TCP_Reassembler.cc
ContentLine.cc
Plugin.cc
TCP.cc
TCP_Endpoint.cc
TCP_Reassembler.cc
ContentLine.cc
Plugin.cc
BIFS
events.bif
types.bif
functions.bif
)
events.bif
types.bif
functions.bif)

View file

@ -2,12 +2,11 @@ zeek_add_plugin(
Zeek
XMPP
SOURCES
Plugin.cc
XMPP.cc
Plugin.cc
XMPP.cc
BIFS
events.bif
events.bif
PAC
xmpp.pac
xmpp-analyzer.pac
xmpp-protocol.pac
)
xmpp.pac
xmpp-analyzer.pac
xmpp-protocol.pac)

View file

@ -1,7 +1 @@
zeek_add_plugin(
Zeek
ZIP
SOURCES
ZIP.cc
Plugin.cc
)
zeek_add_plugin(Zeek ZIP SOURCES ZIP.cc Plugin.cc)