mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
testing-do-find-str_case-insensitive
This commit is contained in:
parent
82b3606cdd
commit
effa8c403f
1 changed files with 22 additions and 0 deletions
22
testing/btest/bifs/do_find_str.zeek
Normal file
22
testing/btest/bifs/do_find_str.zeek
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
#
|
||||||
|
# @TEST-EXEC: zeek -b %INPUT >out
|
||||||
|
# @TEST-EXEC: btest-diff out
|
||||||
|
|
||||||
|
event zeek_init()
|
||||||
|
{
|
||||||
|
local a = "this is the concatenation of HTTP fields of the fOrM of the website that I am protecting";
|
||||||
|
local b = "form";
|
||||||
|
local c = "FORM";
|
||||||
|
local d = "FoRm";
|
||||||
|
local e = "om0";
|
||||||
|
local f = "f0rm";
|
||||||
|
local g = "fOrm";
|
||||||
|
|
||||||
|
|
||||||
|
print find_str(a, b, 0, -1, F);
|
||||||
|
print find_str(a, c, 0, -1, F);
|
||||||
|
print find_str(a, d, 0, -1, F);
|
||||||
|
print find_str(a, e, 0, -1, F);
|
||||||
|
print find_str(a, f, 0, -1, F);
|
||||||
|
print find_str(a, g, 0, -1, F);
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue