def capture(mon_interface):
global flag_test
"""
:type if_mon: string, name of the interface operating in monitor mode
"""
try:
scapy.conf.iface=mon_interface
scapy.sniff(iface=mon_interface, prn=on_receiving, store=0, filter="subtype probereq")
except Exception, info:
sys.stderr.write("\nError: " + str(info) + "\n")
quit(0)
评论列表
文章目录