From: Russ Combs Date: Mon, 29 Sep 2014 17:04:24 +0000 (-0400) Subject: tweaked lua defaults X-Git-Tag: 3.0.0-233~1398^2~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=262e69a6e8b6cb80a82f06dc2f47976baef5cb9c;p=thirdparty%2Fsnort3.git tweaked lua defaults --- diff --git a/lua/snort_defaults.lua b/lua/snort_defaults.lua index b5f020e35..a2726d1bc 100644 --- a/lua/snort_defaults.lua +++ b/lua/snort_defaults.lua @@ -147,6 +147,50 @@ ftp_format_commands = XSEN XSHA1 XSHA256 ]] +ftp_command_specs = +{ + { command = 'ABOR', length = 0 }, + { command = 'CCC', length = 0 }, + { command = 'CDUP', length = 0 }, + { command = 'ESTA', length = 0 }, + { command = 'FEAT', length = 0 }, + { command = 'LPSV', length = 0 }, + { command = 'NOOP', length = 0 }, + { command = 'PASV', length = 0 }, + { command = 'PWD', length = 0 }, + { command = 'QUIT', length = 0 }, + { command = 'REIN', length = 0 }, + { command = 'SYST', length = 0 }, + { command = 'XCUP', length = 0 }, + { command = 'XPWD', length = 0 }, + + { command = 'APPE', length = 200 }, + { command = 'CMD', length = 200 }, + { command = 'HELP', length = 200 }, + { command = 'NLST', length = 200 }, + { command = 'RETR', length = 200 }, + { command = 'RNFR', length = 200 }, + { command = 'STOR', length = 200 }, + { command = 'STOU', length = 200 }, + { command = 'XMKD', length = 200 }, + + { command = 'CWD', length = 256 }, + { command = 'RNTO', length = 256 }, + { command = 'SIZE', length = 512 }, + + { command = 'ALLO', length = 200, format = '< int [ char R int ] >' }, + { command = 'PORT', length = 400, format = '< host_port >' }, + + { command = 'EPSV', format = '< [ { char 12 | char A char L char L } ] >' }, + { command = 'MACB', format = '< string >' }, + { command = 'MDTM', format = '< [ date nnnnnnnnnnnnnn[.n[n[n]]] ] string >' }, + { command = 'MODE', format = '< char ASBCZ >' }, + { command = 'PROT', format = '< char CSEP >' }, + { command = 'STRU', format = '< char FRPO [ string ] >' }, + { command = 'TYPE', + format = '< { char AE [ char NTC ] | char I | char L [ number ] } >' } +} + default_ftp_server = { def_max_param_len = 100, @@ -160,53 +204,7 @@ default_ftp_server = ftp_cmds = ftp_default_commands, chk_str_fmt = ftp_format_commands, -} - -ignore = -{ - cmd_validity = - { - { command = 'ABOR', length = 0 }, - { command = 'CCC', length = 0 }, - { command = 'CDUP', length = 0 }, - { command = 'ESTA', length = 0 }, - { command = 'FEAT', length = 0 }, - { command = 'LPSV', length = 0 }, - { command = 'NOOP', length = 0 }, - { command = 'PASV', length = 0 }, - { command = 'PWD', length = 0 }, - { command = 'QUIT', length = 0 }, - { command = 'REIN', length = 0 }, - { command = 'SYST', length = 0 }, - { command = 'XCUP', length = 0 }, - { command = 'XPWD', length = 0 }, - - { command = 'APPE', length = 200 }, - { command = 'CMD', length = 200 }, - { command = 'HELP', length = 200 }, - { command = 'NLST', length = 200 }, - { command = 'RETR', length = 200 }, - { command = 'RNFR', length = 200 }, - { command = 'STOR', length = 200 }, - { command = 'STOU', length = 200 }, - { command = 'XMKD', length = 200 }, - - { command = 'CWD', length = 256 }, - { command = 'RNTO', length = 256 }, - { command = 'SIZE', length = 512 }, - - { command = 'ALLO', length = 200, format = '< int [ char R int ] >' }, - { command = 'PORT', length = 400, format = '< host_port >' }, - - { command = 'EPSV', format = '< [ { char 12 | char A char L char L } ] >' }, - { command = 'MACB', format = '< string >' }, - { command = 'MDTM', format = '< [ date nnnnnnnnnnnnnn[.n[n[n]]] ] string >' }, - { command = 'MODE', format = '< char ASBCZ >' }, - { command = 'PROT', format = '< char CSEP >' }, - { command = 'STRU', format = '< char FRPO [ string ] >' }, - { command = 'TYPE', - format = '< { char AE [ char NTC ] | char I | char L [ number ] } >' } - }, + cmd_validity = ftp_command_specs } ---------------------------------------------------------------------------