post_depth = -1,
chunk_length = 500000,
ascii = true,
- multiple_slash = true,
+ multi_slash = true,
directory = true,
webroot = true,
- double_decoding = true,
- u_encoding = true,
+ double_decode = true,
+ u_encode = true,
bare_byte = true,
iis_unicode = true,
iis_backslash = true,
non_strict = true,
normalize_utf = true,
normalize_javascript = false,
- max_hdr_len = 0,
+ max_header_length = 0,
max_headers = 0,
max_spaces = 200,
- max_javascript_whitespaces = 200
+ max_javascript_whitespaces = 200,
+ whitespace_chars ='0x9 0xb 0xc 0xd'
}
apache =
post_depth = -1,
chunk_length = 500000,
ascii = true,
- multiple_slash = true,
+ multi_slash = true,
directory = true,
webroot = true,
utf_8 = true,
non_strict = true,
normalize_utf = true,
normalize_javascript = false,
- max_hdr_len = 0,
+ max_header_length = 0,
max_headers = 0,
max_spaces = 200,
- max_javascript_whitespaces = 200
+ max_javascript_whitespaces = 200,
+ whitespace_chars ='0x9 0xb 0xc 0xd'
}
iis =
post_depth = -1,
chunk_length = 500000,
ascii = true,
- multiple_slash = true,
+ multi_slash = true,
directory = true,
webroot = true,
- double_decoding = false,
- u_encoding = true,
+ double_decode = false,
+ u_encode = true,
bare_byte = true,
iis_unicode = true,
iis_backslash = true,
non_strict = true,
normalize_utf = true,
normalize_javascript = false,
- max_hdr_len = 0,
+ max_header_length = 0,
max_headers = 0,
max_spaces = 200,
- max_javascript_whitespaces = 200
+ max_javascript_whitespaces = 200,
+ whitespace_chars ='0x9 0xb 0xc 0xd'
}
iis_40 =
post_depth = -1,
chunk_length = 500000,
ascii = true,
- multiple_slash = true,
+ multi_slash = true,
directory = true,
webroot = true,
- double_decoding = true,
- u_encoding = true,
+ double_decode = true,
+ u_encode = true,
bare_byte = true,
iis_unicode = true,
iis_backslash = true,
non_strict = true,
normalize_utf = true,
normalize_javascript = false,
- max_hdr_len = 0,
+ max_header_length = 0,
max_headers = 0,
max_spaces = 200,
- max_javascript_whitespaces = 200
+ max_javascript_whitespaces = 200,
+ whitespace_chars ='0x9 0xb 0xc 0xd'
}
iis_50 =
post_depth = -1,
chunk_length = 500000,
ascii = true,
- multiple_slash = true,
+ multi_slash = true,
directory = true,
webroot = true,
- double_decoding = true,
- u_encoding = true,
+ double_decode = true,
+ u_encode = true,
bare_byte = true,
iis_unicode = true,
iis_backslash = true,
non_strict = true,
normalize_utf = true,
normalize_javascript = false,
- max_hdr_len = 0,
+ max_header_length = 0,
max_headers = 0,
max_spaces = 200,
- max_javascript_whitespaces = 200
+ max_javascript_whitespaces = 200,
+ whitespace_chars ='0x9 0xb 0xc 0xd'
}
ftp_commands = -- build from ftp_default_commands
{ "normalize_utf", Parameter::PT_BOOL, nullptr, "true",
"normalize response bodies with UTF content-types" },
+ { "normalize_javascript", Parameter::PT_BOOL, nullptr, "true",
+ "normalize javascript between <script> tags" },
+
{ "post_depth", Parameter::PT_INT, "-1:65535", "65495",
"amount of POST data to inspect" },
{ "normalize_headers", Parameter::PT_BOOL, nullptr, "false",
"normalize headers other than cookie similar to URI" },
- { "normalize_javascript", Parameter::PT_BOOL, nullptr, "true",
- "normalize javascript between <script> tags" },
-
{ "oversize_dir_length", Parameter::PT_INT, "0:", "500",
"alert if a URL has a directory longer than this limit" },
* and debugging information. */
enum PROFILES
{
+ HI_NONE,
HI_ALL,
HI_APACHE,
HI_IIS,
tmpval = table_api.add_option("unlimited_decompress", true);
else if (!keyword.compare("normalize_javascript"))
+ {
+ table_api.add_diff_option_comment("normalize_javascript", "profile.normalize_javascript");
+ table_api.open_table("profile");
tmpval = table_api.add_option("normalize_javascript", true);
+ table_api.close_table();
+ }
else if (!keyword.compare("enable_xff"))
tmpval = table_api.add_option("enable_xff", true);
else if (!keyword.compare("profile"))
{
+ table_api.open_table("profile");
+
if (data_stream >> keyword)
{
tmpval = table_api.add_option("profile", keyword);
data_api.failed_conversion(data_stream, "profile <string>");
retval = false;
}
+
+ table_api.close_table();
}
else