scapy.contrib.automotive.bmw.hsfz
- class scapy.contrib.automotive.bmw.hsfz.HSFZ(_pkt, /, *, length=None, type=1, src=0, dst=0)[源代码]
基类:
Packet
- aliastypes
- fields_desc
Display RFC-like schema
0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | LENGTH | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | SRC | DST | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. HSFZ
HSFZ fields length
None
type
1
src
0
dst
0
- class scapy.contrib.automotive.bmw.hsfz.HSFZSocket(ip: str = '127.0.0.1', port: int = 6801)[源代码]
基类:
StreamSocket
- class scapy.contrib.automotive.bmw.hsfz.UDS_HSFZSocket(src: int, dst: int, ip: str = '127.0.0.1', port: int = 6801, basecls: ~typing.Type[~scapy.packet.Packet] = <class 'scapy.contrib.automotive.uds.UDS'>)[源代码]
基类:
HSFZSocket
- scapy.contrib.automotive.bmw.hsfz.hsfz_scan(ip: str, scan_range: Iterable[int] = range(0, 256), src: int = 244, timeout: int | float = 0.1, verbose: bool = True) List[UDS_HSFZSocket] [源代码]
Helper function to scan for HSFZ endpoints.
示例
>>> sockets = hsfz_scan("192.168.0.42")
- 参数:
ip -- IPv4 address of target to scan
scan_range -- Range for HSFZ destination address
src -- HSFZ source address, used during the scan
timeout -- Timeout for each request
verbose -- Show information during scan, if True
- 返回:
A list of open UDS_HSFZSockets