base/bif/plugins/Zeek_FTP.functions.bif.zeek¶
- GLOBAL¶
- Namespace
GLOBAL
Summary¶
Functions¶
Formats an IP address and TCP port as an FTP PORT command. |
|
Converts a string representation of the FTP EPRT command (see RFC 2428)
to an |
|
Converts the result of the FTP EPSV command (see RFC 2428) to an
|
|
Converts the result of the FTP PASV command to an |
|
Converts a string representation of the FTP PORT command to an
|
Detailed Interface¶
Functions¶
- fmt_ftp_port¶
-
Formats an IP address and TCP port as an FTP PORT command. For example,
10.0.0.1
and1055/tcp
yields"10,0,0,1,4,31"
.- Parameters
a – The IP address.
p – The TCP port.
- Returns
The FTP PORT string.
See also:
parse_ftp_port
,parse_eftp_port
,parse_ftp_pasv
,parse_ftp_epsv
- parse_eftp_port¶
-
Converts a string representation of the FTP EPRT command (see RFC 2428) to an
ftp_port
. The format is"EPRT<space><d><net-prt><d><net-addr><d><tcp-port><d>"
, where<d>
is a delimiter in the ASCII range 33-126 (usually|
).- Parameters
s – The string of the FTP EPRT command, e.g.,
"|1|10.0.0.1|1055|"
.- Returns
The FTP PORT, e.g.,
[h=10.0.0.1, p=1055/tcp, valid=T]
.
See also:
parse_ftp_port
,parse_ftp_pasv
,parse_ftp_epsv
,fmt_ftp_port
- parse_ftp_epsv¶
-
Converts the result of the FTP EPSV command (see RFC 2428) to an
ftp_port
. The format is"<text> (<d><d><d><tcp-port><d>)"
, where<d>
is a delimiter in the ASCII range 33-126 (usually|
).- Parameters
str – The string containing the result of the FTP EPSV command.
- Returns
The FTP PORT, e.g.,
[h=10.0.0.1, p=1055/tcp, valid=T]
.
See also:
parse_ftp_port
,parse_eftp_port
,parse_ftp_pasv
,fmt_ftp_port
- parse_ftp_pasv¶
-
Converts the result of the FTP PASV command to an
ftp_port
.- Parameters
str – The string containing the result of the FTP PASV command.
- Returns
The FTP PORT, e.g.,
[h=10.0.0.1, p=1055/tcp, valid=T]
.
See also:
parse_ftp_port
,parse_eftp_port
,parse_ftp_epsv
,fmt_ftp_port
- parse_ftp_port¶
-
Converts a string representation of the FTP PORT command to an
ftp_port
.- Parameters
s – The string of the FTP PORT command, e.g.,
"10,0,0,1,4,31"
.- Returns
The FTP PORT, e.g.,
[h=10.0.0.1, p=1055/tcp, valid=T]
.
See also:
parse_eftp_port
,parse_ftp_pasv
,parse_ftp_epsv
,fmt_ftp_port