ftp: Limit pending commands to FTP::max_pending_commands (default 20)

This commit is contained in:
Arne Welzel 2022-09-28 12:45:34 +02:00 committed by Tim Wojtulewicz
parent d2689379bc
commit c132d140ae
9 changed files with 91 additions and 1 deletions

View file

@ -0,0 +1,11 @@
### BTest baseline data generated by btest-diff. Do not edit. Use "btest -U/-u" to update. Requires BTest >= 0.63.
#separator \x09
#set_separator ,
#empty_field (empty)
#unset_field -
#path conn
#open XXXX-XX-XX-XX-XX-XX
#fields ts uid id.orig_h id.orig_p id.resp_h id.resp_p proto service duration orig_bytes resp_bytes conn_state local_orig local_resp missed_bytes history orig_pkts orig_ip_bytes resp_pkts resp_ip_bytes tunnel_parents
#types time string addr port addr port enum string interval count count string bool bool count string count count count count set[string]
XXXXXXXXXX.XXXXXX CHhAvVGS1DHFjwGM9 127.0.0.1 37950 127.0.0.1 21 tcp ftp 0.202144 98 261 SF - - 0 ShADadfF 21 1198 20 1309 -
#close XXXX-XX-XX-XX-XX-XX

View file

@ -0,0 +1,12 @@
### BTest baseline data generated by btest-diff. Do not edit. Use "btest -U/-u" to update. Requires BTest >= 0.63.
#separator \x09
#set_separator ,
#empty_field (empty)
#unset_field -
#path ftp
#open XXXX-XX-XX-XX-XX-XX
#fields ts uid id.orig_h id.orig_p id.resp_h id.resp_p user password command arg mime_type file_size reply_code reply_msg data_channel.passive data_channel.orig_h data_channel.resp_h data_channel.resp_p fuid
#types time string addr port addr port string string string string string count count string bool addr addr port string
XXXXXXXXXX.XXXXXX CHhAvVGS1DHFjwGM9 127.0.0.1 37950 127.0.0.1 21 anonymous anonymous@zeek.org USER anonymous - - 230 Fake response USER anonymous - - - - -
XXXXXXXXXX.XXXXXX CHhAvVGS1DHFjwGM9 127.0.0.1 37950 127.0.0.1 21 anonymous anonymous@zeek.org SYST - - - 215 Fake response SYST - - - - -
#close XXXX-XX-XX-XX-XX-XX

View file

@ -0,0 +1,18 @@
### BTest baseline data generated by btest-diff. Do not edit. Use "btest -U/-u" to update. Requires BTest >= 0.63.
ftp_request, CHhAvVGS1DHFjwGM9, USER, anonymous
ftp_request, CHhAvVGS1DHFjwGM9, PASS, anonymous@zeek.org
ftp_request, CHhAvVGS1DHFjwGM9, SYST,
ftp_request, CHhAvVGS1DHFjwGM9, TYPE, I
ftp_request, CHhAvVGS1DHFjwGM9, PASV,
ftp_request, CHhAvVGS1DHFjwGM9, RETR, robots.txt
ftp_request, CHhAvVGS1DHFjwGM9, PORT, 114,115
ftp_request, CHhAvVGS1DHFjwGM9, QUIT,
ftp_reply, CHhAvVGS1DHFjwGM9, 220, py.fake ready
ftp_reply, CHhAvVGS1DHFjwGM9, 230, Fake response USER anonymous
ftp_reply, CHhAvVGS1DHFjwGM9, 230, Fake response PASS anonymous@zeek.org
ftp_reply, CHhAvVGS1DHFjwGM9, 215, Fake response SYST
ftp_reply, CHhAvVGS1DHFjwGM9, 200, Fake response TYPE I
ftp_reply, CHhAvVGS1DHFjwGM9, 227, Fake response PASV
ftp_reply, CHhAvVGS1DHFjwGM9, 225, Fake response RETR robots.txt
ftp_reply, CHhAvVGS1DHFjwGM9, 200, Fake response PORT 114,115
ftp_reply, CHhAvVGS1DHFjwGM9, 221, Fake response QUIT

View file

@ -0,0 +1,11 @@
### BTest baseline data generated by btest-diff. Do not edit. Use "btest -U/-u" to update. Requires BTest >= 0.63.
#separator \x09
#set_separator ,
#empty_field (empty)
#unset_field -
#path weird
#open XXXX-XX-XX-XX-XX-XX
#fields ts uid id.orig_h id.orig_p id.resp_h id.resp_p name addl notice peer source
#types time string addr port addr port string string bool string string
XXXXXXXXXX.XXXXXX CHhAvVGS1DHFjwGM9 127.0.0.1 37950 127.0.0.1 21 FTP_too_many_pending_commands 5 F zeek FTP
#close XXXX-XX-XX-XX-XX-XX