btest: Add detect-sqli test script

...I added the baselines during the merge, just not the test itself.
This commit is contained in:
Arne Welzel 2024-11-04 18:42:52 +01:00
parent 8935dc9ed4
commit b69222d5f6

View file

@ -0,0 +1,13 @@
# @TEST-EXEC: zeek -C -r $TRACES/http/cooper-grill-dvwa.pcapng -b %INPUT >output
# @TEST-EXEC: btest-diff output
# @TEST-EXEC: zeek-cut -m uid method host uri tags < http.log > http.log.cut
# @TEST-EXEC: btest-diff http.log.cut
@load base/protocols/http
@load protocols/http/detect-sqli
event connection_state_remove(c: connection)
{
if ( c?$http )
print c$uid, c$id, cat(c$http$tags);
}