scapy.ansmachine
Answering machines.
- class scapy.ansmachine.AnsweringMachine(**kargs)[source]
Bases:
object
- filter = None
- function_name = ''
- static send_function(x: Union[List[scapy.packet.Packet], scapy.packet.Packet, scapy.base_classes.SetGen[scapy.packet.Packet], scapy.plist._PacketList[scapy.packet.Packet]], iface: Optional[Union[scapy.interfaces.NetworkInterface, str]] = None, **kargs: Any) Optional[scapy.plist.PacketList] [source]
Send packets at layer 3
- Parameters
x – the packets
inter – time (in s) between two packets (default 0)
loop – send packet indefinetly (default 0)
count – number of packets to send (default None=1)
verbose – verbose mode (default None=conf.verbose)
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
- Returns
None
- send_options = {'verbose': 0}
- send_options_list = ['iface', 'inter', 'loop', 'verbose', 'socket']
- sniff_options = {'store': 0}
- sniff_options_list = ['store', 'iface', 'count', 'promisc', 'filter', 'type', 'prn', 'stop_filter', 'opened_socket']