mirror of
https://github.com/zeek/zeek.git
synced 2025-10-13 12:08:20 +00:00
Add a revised script for detecting HTTP SQL injection, deprecate original
This commit is contained in:
parent
6b6c3dbbb7
commit
dcd14f7a16
12 changed files with 217 additions and 1 deletions
|
@ -4,6 +4,7 @@
|
|||
# @TEST-EXEC: btest-diff http.log.cut
|
||||
|
||||
@load base/protocols/http
|
||||
# Remove in v8.1: Remove this test when detect-sqli is gone sql-injection-plus-dvwa2.zeek tests detect-sql-injection.
|
||||
@load protocols/http/detect-sqli
|
||||
|
||||
event connection_state_remove(c: connection)
|
||||
|
|
|
@ -0,0 +1,18 @@
|
|||
# A version of sql-injection-plus-dvwa.zeek that uses its replacement script.
|
||||
#
|
||||
# @TEST-EXEC: zeek -C -r $TRACES/http/cooper-grill-dvwa.pcapng -b %INPUT >output
|
||||
# @TEST-EXEC: btest-diff output
|
||||
# @TEST-EXEC: btest-diff notice.log
|
||||
# @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-sql-injection
|
||||
|
||||
redef HTTP::sqli_requests_threshold = 3;
|
||||
|
||||
event connection_state_remove(c: connection)
|
||||
{
|
||||
if ( c?$http )
|
||||
print c$uid, c$id, cat(c$http$tags);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue