I want to print out a table that shows all the wireless networks around (sniffing beacon frames). But I want the content of the table to be changeable. For instants:
- change amount of received frames
- remove the access point if it's no longer in range
I tested some modules, such as terminaltables etc., but I can just print out the table and leave it as it is, without changing anything.
from scapy.all import *
def pckt_hndlr(pckt):
if pckt.haslayer(Dot11):
if pckt.type == 0 and pckt.subtype == 8:
# PRINT THE INFORMATION OF THE PACKETS IN A TABLE
sniff(iface='wlan0', prn=pckt_hndlr, store=0)
If I add the table to pckt_hndlr
it's going to be printed out each time I receive a packet.