mirror of
https://github.com/zeek/zeek.git
synced 2025-10-07 00:58:19 +00:00
Copy docs into Zeek repo directly
This is based on commit 2731def9159247e6da8a3191783c89683363689c from the zeek-docs repo.
This commit is contained in:
parent
83f1e74643
commit
ded98cd373
1074 changed files with 169319 additions and 0 deletions
14
doc/scripts/base/protocols/socks/__load__.zeek.rst
Normal file
14
doc/scripts/base/protocols/socks/__load__.zeek.rst
Normal file
|
@ -0,0 +1,14 @@
|
|||
:tocdepth: 3
|
||||
|
||||
base/protocols/socks/__load__.zeek
|
||||
==================================
|
||||
|
||||
|
||||
:Imports: :doc:`base/protocols/socks/consts.zeek </scripts/base/protocols/socks/consts.zeek>`, :doc:`base/protocols/socks/main.zeek </scripts/base/protocols/socks/main.zeek>`
|
||||
|
||||
Summary
|
||||
~~~~~~~
|
||||
|
||||
Detailed Interface
|
||||
~~~~~~~~~~~~~~~~~~
|
||||
|
109
doc/scripts/base/protocols/socks/consts.zeek.rst
Normal file
109
doc/scripts/base/protocols/socks/consts.zeek.rst
Normal file
|
@ -0,0 +1,109 @@
|
|||
:tocdepth: 3
|
||||
|
||||
base/protocols/socks/consts.zeek
|
||||
================================
|
||||
.. zeek:namespace:: SOCKS
|
||||
|
||||
|
||||
:Namespace: SOCKS
|
||||
|
||||
Summary
|
||||
~~~~~~~
|
||||
Constants
|
||||
#########
|
||||
============================================================================================================= =
|
||||
:zeek:id:`SOCKS::v4_status`: :zeek:type:`table` :zeek:attr:`&default` = :zeek:type:`function`
|
||||
:zeek:id:`SOCKS::v5_authentication_methods`: :zeek:type:`table` :zeek:attr:`&default` = :zeek:type:`function`
|
||||
:zeek:id:`SOCKS::v5_status`: :zeek:type:`table` :zeek:attr:`&default` = :zeek:type:`function`
|
||||
============================================================================================================= =
|
||||
|
||||
Types
|
||||
#####
|
||||
================================================== =
|
||||
:zeek:type:`SOCKS::RequestType`: :zeek:type:`enum`
|
||||
================================================== =
|
||||
|
||||
|
||||
Detailed Interface
|
||||
~~~~~~~~~~~~~~~~~~
|
||||
Constants
|
||||
#########
|
||||
.. zeek:id:: SOCKS::v4_status
|
||||
:source-code: base/protocols/socks/consts.zeek 22 22
|
||||
|
||||
:Type: :zeek:type:`table` [:zeek:type:`count`] of :zeek:type:`string`
|
||||
:Attributes: :zeek:attr:`&default` = :zeek:type:`function`
|
||||
:Default:
|
||||
|
||||
::
|
||||
|
||||
{
|
||||
[92] = "request failed because client is not running identd",
|
||||
[93] = "request failed because client's identd could not confirm the user ID string in the request",
|
||||
[90] = "succeeded",
|
||||
[91] = "general SOCKS server failure"
|
||||
}
|
||||
|
||||
|
||||
|
||||
.. zeek:id:: SOCKS::v5_authentication_methods
|
||||
:source-code: base/protocols/socks/consts.zeek 10 10
|
||||
|
||||
:Type: :zeek:type:`table` [:zeek:type:`count`] of :zeek:type:`string`
|
||||
:Attributes: :zeek:attr:`&default` = :zeek:type:`function`
|
||||
:Default:
|
||||
|
||||
::
|
||||
|
||||
{
|
||||
[2] = "Username/Password",
|
||||
[8] = "Multi-Authentication Framework",
|
||||
[7] = "NDS Authentication",
|
||||
[5] = "Challenge-Response Authentication Method",
|
||||
[3] = "Challenge-Handshake Authentication Protocol",
|
||||
[0] = "No Authentication Required",
|
||||
[6] = "Secure Sockets Layer",
|
||||
[255] = "No Acceptable Methods",
|
||||
[1] = "GSSAPI"
|
||||
}
|
||||
|
||||
|
||||
|
||||
.. zeek:id:: SOCKS::v5_status
|
||||
:source-code: base/protocols/socks/consts.zeek 29 29
|
||||
|
||||
:Type: :zeek:type:`table` [:zeek:type:`count`] of :zeek:type:`string`
|
||||
:Attributes: :zeek:attr:`&default` = :zeek:type:`function`
|
||||
:Default:
|
||||
|
||||
::
|
||||
|
||||
{
|
||||
[2] = "connection not allowed by ruleset",
|
||||
[8] = "Address type not supported",
|
||||
[5] = "Connection refused",
|
||||
[7] = "Command not supported",
|
||||
[3] = "Network unreachable",
|
||||
[0] = "succeeded",
|
||||
[6] = "TTL expired",
|
||||
[4] = "Host unreachable",
|
||||
[1] = "general SOCKS server failure"
|
||||
}
|
||||
|
||||
|
||||
|
||||
Types
|
||||
#####
|
||||
.. zeek:type:: SOCKS::RequestType
|
||||
:source-code: base/protocols/socks/consts.zeek 4 9
|
||||
|
||||
:Type: :zeek:type:`enum`
|
||||
|
||||
.. zeek:enum:: SOCKS::CONNECTION SOCKS::RequestType
|
||||
|
||||
.. zeek:enum:: SOCKS::PORT SOCKS::RequestType
|
||||
|
||||
.. zeek:enum:: SOCKS::UDP_ASSOCIATE SOCKS::RequestType
|
||||
|
||||
|
||||
|
16
doc/scripts/base/protocols/socks/index.rst
Normal file
16
doc/scripts/base/protocols/socks/index.rst
Normal file
|
@ -0,0 +1,16 @@
|
|||
:orphan:
|
||||
|
||||
Package: base/protocols/socks
|
||||
=============================
|
||||
|
||||
Support for Socket Secure (SOCKS) protocol analysis.
|
||||
|
||||
:doc:`/scripts/base/protocols/socks/__load__.zeek`
|
||||
|
||||
|
||||
:doc:`/scripts/base/protocols/socks/consts.zeek`
|
||||
|
||||
|
||||
:doc:`/scripts/base/protocols/socks/main.zeek`
|
||||
|
||||
|
164
doc/scripts/base/protocols/socks/main.zeek.rst
Normal file
164
doc/scripts/base/protocols/socks/main.zeek.rst
Normal file
|
@ -0,0 +1,164 @@
|
|||
:tocdepth: 3
|
||||
|
||||
base/protocols/socks/main.zeek
|
||||
==============================
|
||||
.. zeek:namespace:: SOCKS
|
||||
|
||||
|
||||
:Namespace: SOCKS
|
||||
:Imports: :doc:`base/frameworks/tunnels </scripts/base/frameworks/tunnels/index>`, :doc:`base/protocols/conn/removal-hooks.zeek </scripts/base/protocols/conn/removal-hooks.zeek>`, :doc:`base/protocols/socks/consts.zeek </scripts/base/protocols/socks/consts.zeek>`
|
||||
|
||||
Summary
|
||||
~~~~~~~
|
||||
Runtime Options
|
||||
###############
|
||||
================================================================================= ======================================
|
||||
:zeek:id:`SOCKS::default_capture_password`: :zeek:type:`bool` :zeek:attr:`&redef` Whether passwords are captured or not.
|
||||
================================================================================= ======================================
|
||||
|
||||
Types
|
||||
#####
|
||||
============================================= ===========================================================
|
||||
:zeek:type:`SOCKS::Info`: :zeek:type:`record` The record type which contains the fields of the SOCKS log.
|
||||
============================================= ===========================================================
|
||||
|
||||
Redefinitions
|
||||
#############
|
||||
==================================================================== ========================================================
|
||||
:zeek:type:`Log::ID`: :zeek:type:`enum`
|
||||
|
||||
* :zeek:enum:`SOCKS::LOG`
|
||||
:zeek:type:`connection`: :zeek:type:`record`
|
||||
|
||||
:New Fields: :zeek:type:`connection`
|
||||
|
||||
socks: :zeek:type:`SOCKS::Info` :zeek:attr:`&optional`
|
||||
:zeek:id:`likely_server_ports`: :zeek:type:`set` :zeek:attr:`&redef`
|
||||
==================================================================== ========================================================
|
||||
|
||||
Events
|
||||
######
|
||||
=============================================== =================================================
|
||||
:zeek:id:`SOCKS::log_socks`: :zeek:type:`event` Event that can be handled to access the SOCKS
|
||||
record as it is sent on to the logging framework.
|
||||
=============================================== =================================================
|
||||
|
||||
Hooks
|
||||
#####
|
||||
================================================================ ========================
|
||||
:zeek:id:`SOCKS::finalize_socks`: :zeek:type:`Conn::RemovalHook` SOCKS finalization hook.
|
||||
:zeek:id:`SOCKS::log_policy`: :zeek:type:`Log::PolicyHook`
|
||||
================================================================ ========================
|
||||
|
||||
|
||||
Detailed Interface
|
||||
~~~~~~~~~~~~~~~~~~
|
||||
Runtime Options
|
||||
###############
|
||||
.. zeek:id:: SOCKS::default_capture_password
|
||||
:source-code: base/protocols/socks/main.zeek 13 13
|
||||
|
||||
:Type: :zeek:type:`bool`
|
||||
:Attributes: :zeek:attr:`&redef`
|
||||
:Default: ``F``
|
||||
|
||||
Whether passwords are captured or not.
|
||||
|
||||
Types
|
||||
#####
|
||||
.. zeek:type:: SOCKS::Info
|
||||
:source-code: base/protocols/socks/main.zeek 16 43
|
||||
|
||||
:Type: :zeek:type:`record`
|
||||
|
||||
|
||||
.. zeek:field:: ts :zeek:type:`time` :zeek:attr:`&log`
|
||||
|
||||
Time when the proxy connection was first detected.
|
||||
|
||||
|
||||
.. zeek:field:: uid :zeek:type:`string` :zeek:attr:`&log`
|
||||
|
||||
Unique ID for the tunnel - may correspond to connection uid
|
||||
or be nonexistent.
|
||||
|
||||
|
||||
.. zeek:field:: id :zeek:type:`conn_id` :zeek:attr:`&log`
|
||||
|
||||
The connection's 4-tuple of endpoint addresses/ports.
|
||||
|
||||
|
||||
.. zeek:field:: version :zeek:type:`count` :zeek:attr:`&log`
|
||||
|
||||
Protocol version of SOCKS.
|
||||
|
||||
|
||||
.. zeek:field:: user :zeek:type:`string` :zeek:attr:`&log` :zeek:attr:`&optional`
|
||||
|
||||
Username used to request a login to the proxy.
|
||||
|
||||
|
||||
.. zeek:field:: password :zeek:type:`string` :zeek:attr:`&log` :zeek:attr:`&optional`
|
||||
|
||||
Password used to request a login to the proxy.
|
||||
|
||||
|
||||
.. zeek:field:: status :zeek:type:`string` :zeek:attr:`&log` :zeek:attr:`&optional`
|
||||
|
||||
Server status for the attempt at using the proxy.
|
||||
|
||||
|
||||
.. zeek:field:: request :zeek:type:`SOCKS::Address` :zeek:attr:`&log` :zeek:attr:`&optional`
|
||||
|
||||
Client requested SOCKS address. Could be an address, a name
|
||||
or both.
|
||||
|
||||
|
||||
.. zeek:field:: request_p :zeek:type:`port` :zeek:attr:`&log` :zeek:attr:`&optional`
|
||||
|
||||
Client requested port.
|
||||
|
||||
|
||||
.. zeek:field:: bound :zeek:type:`SOCKS::Address` :zeek:attr:`&log` :zeek:attr:`&optional`
|
||||
|
||||
Server bound address. Could be an address, a name or both.
|
||||
|
||||
|
||||
.. zeek:field:: bound_p :zeek:type:`port` :zeek:attr:`&log` :zeek:attr:`&optional`
|
||||
|
||||
Server bound port.
|
||||
|
||||
|
||||
.. zeek:field:: capture_password :zeek:type:`bool` :zeek:attr:`&default` = :zeek:see:`SOCKS::default_capture_password` :zeek:attr:`&optional`
|
||||
|
||||
Determines if the password will be captured for this request.
|
||||
|
||||
|
||||
The record type which contains the fields of the SOCKS log.
|
||||
|
||||
Events
|
||||
######
|
||||
.. zeek:id:: SOCKS::log_socks
|
||||
:source-code: base/protocols/socks/main.zeek 47 47
|
||||
|
||||
:Type: :zeek:type:`event` (rec: :zeek:type:`SOCKS::Info`)
|
||||
|
||||
Event that can be handled to access the SOCKS
|
||||
record as it is sent on to the logging framework.
|
||||
|
||||
Hooks
|
||||
#####
|
||||
.. zeek:id:: SOCKS::finalize_socks
|
||||
:source-code: base/protocols/socks/main.zeek 123 129
|
||||
|
||||
:Type: :zeek:type:`Conn::RemovalHook`
|
||||
|
||||
SOCKS finalization hook. Remaining SOCKS info may get logged when it's called.
|
||||
|
||||
.. zeek:id:: SOCKS::log_policy
|
||||
:source-code: base/protocols/socks/main.zeek 10 10
|
||||
|
||||
:Type: :zeek:type:`Log::PolicyHook`
|
||||
|
||||
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue