GLOBAL¶| Namespace: | GLOBAL |
|---|---|
| Source File: | /scripts/base/bif/plugins/Bro_Login.functions.bif.bro |
get_login_state: function |
Returns the state of the given login (Telnet or Rlogin) connection. |
set_login_state: function |
Sets the login state of a connection with a login analyzer. |
get_login_state¶| Type: | function (cid: conn_id) : count |
|---|
Returns the state of the given login (Telnet or Rlogin) connection.
| Cid: | The connection ID. |
|---|---|
| Returns: | False if the connection is not active or is not tagged as a login analyzer. Otherwise the function returns the state, which can be one of:
|
See also: set_login_state
set_login_state¶| Type: | function (cid: conn_id, new_state: count) : bool |
|---|
Sets the login state of a connection with a login analyzer.
| Cid: | The connection ID. |
|---|---|
| New_state: | The new state of the login analyzer. See
get_login_state for possible values. |
| Returns: | Returns false if cid is not an active connection or is not tagged as a login analyzer, and true otherwise. |
See also: get_login_state