scapy.ansmachine
Answering machines.
- class scapy.ansmachine.AnsweringMachine(self)[源代码]
基类:
Generic
[_T
]- bg(*args: Any, **kwargs: Any) AsyncSniffer [源代码]
- filter: str | None = None
- function_name = ''
- reply(pkt: Packet, send_function: Callable[[...], None] | None = None, address: Any | None = None) None [源代码]
- static send_function(x: List[Packet] | Packet | SetGen[Packet] | _PacketList[Packet], iface: NetworkInterface | str | None = None, **kargs: Any) PacketList | None [源代码]
Send packets at layer 3
- 参数:
x -- the packets
inter -- time (in s) between two packets (default 0)
loop -- send packet indefinitely (default 0)
count -- number of packets to send (default None=1)
verbose -- verbose mode (default None=conf.verb)
realtime -- check that a packet was sent before sending the next one
return_packets -- return the sent packets
socket -- the socket to use (default is conf.L3socket(kargs))
iface -- the interface to send the packets on
monitor -- (not on linux) send in monitor mode
- 返回:
None
- send_options: Dict[str, Any] = {'verbose': 0}
- send_options_list = ['iface', 'inter', 'loop', 'verbose', 'socket']
- sniff_options: Dict[str, Any] = {'store': 0}
- sniff_options_list = ['store', 'iface', 'count', 'promisc', 'filter', 'type', 'prn', 'stop_filter', 'opened_socket']