mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00

In the process, some of the script documentation of the NetControl framework was also updated.
16 lines
326 B
Text
16 lines
326 B
Text
|
|
@load protocols/ssh/detect-bruteforcing
|
|
|
|
redef SSH::password_guesses_limit=10;
|
|
|
|
event NetControl::init()
|
|
{
|
|
local debug_plugin = NetControl::create_debug(T);
|
|
NetControl::activate(debug_plugin, 0);
|
|
}
|
|
|
|
hook Notice::policy(n: Notice::Info)
|
|
{
|
|
if ( n$note == SSH::Password_Guessing )
|
|
add n$actions[Notice::ACTION_DROP];
|
|
}
|