Python API¶
Pcap¶
Packet¶
Ethernet¶
IPv4¶
IPv6¶
DNS¶
-
class
DNS¶ -
qr¶ 0(Query) or1(Response).
-
question_count¶ Number of question entries.
-
answer_count¶ Number of answer entries.
Number of entries in authoritative NS section.
-
additional_count¶ Number of additional resource records.
-
answers¶ Answer RRs. List of strings formatted as:
['google.com A 172.217.23.206', ...]
Authoritative NS RRs. List of strings formatted as:
['google.com NS ns4.google.com', ...]
-
additionals¶ Additional RRs. List of strings formatted as:
['google.com A 172.217.23.206', ...]
-
IRC¶
Telnet¶
HTTP¶
-
class
HTTP¶ -
is_request¶ Trueif packet is an HTTP request.
-
is_response¶ Trueif packet is an HTTP response.
-
non_ascii¶ Trueif packet contains non ascii symbols in HTTP header.
-
request_method¶ Request method type (e.g.
GET).
-
request_uri¶ Request URI value.
-
version¶ HTTP version value (e.g.
'HTTP/1.1')
-
response_phrase¶ Reponse phrase value.
-
status_code¶ String containing status code.
-
headers¶ Dictionary with HTTP headers values.
-
body¶ HTTP body data (
bytes).
-
body_length¶ Length of the data.
-