scapy.data
Global variables and functions for handling external data sets.
- scapy.data.load_ethertypes(filename: str | None) EtherDA [源代码]
"Parse /etc/ethertypes and return values as a dictionary. If unavailable, use the copy bundled with Scapy.
- scapy.data.load_manuf(filename: str) ManufDA [源代码]
Loads manuf file from Wireshark.
- 参数:
filename -- the file to load the manuf file from
- 返回:
a ManufDA filled object
- scapy.data.load_protocols(filename: str, _fallback: bytes | None = None, _integer_base: int = 10, _cls: type = scapy.dadict.DADict[int, str]) DADict[int, str] [源代码]
"Parse /etc/protocols and return values as a dictionary.