scapy.ansmachine
Answering machines.
- class scapy.ansmachine.AnsweringMachine(**kargs)
Bases:
object
- filter = None
- function_name = ''
- is_request(req)
- make_reply(req)
- parse_all_options(mode, kargs)
- parse_options()
- print_reply(req, reply)
- reply(pkt)
- run(*args, **kargs)
- static send_function(x, inter=0, loop=0, count=None, verbose=None, realtime=None, return_packets=False, socket=None, iface=None, *args, **kargs)
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']
- send_reply(reply)
- sniff()
- sniff_options = {'store': 0}
- sniff_options_list = ['store', 'iface', 'count', 'promisc', 'filter', 'type', 'prn', 'stop_filter']
- class scapy.ansmachine.ReferenceAM(name, bases, dct)
Bases:
type