scapy.ansmachine

答录机.

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)

在第3层发送数据包

Parameters
  • x –数据包

  • -两个分组(默认为0)之间的时间(以秒)

  • 循环 –不确定地发送数据包(默认为0)

  • count –要发送的数据包数(默认为None = 1)

  • 详细 –详细模式(默认为None = conf.verbose)

  • 实时 –在发送下一个之前检查包是否已发送

  • return_packets –返回发送的数据包

  • socket –要使用的套接字(默认为conf.L3socket(kargs))

  • iface –发送数据包的接口

  • 监视器 –(不是在Linux上)以监视器模式发送

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