Repaired more mon_if functions

This commit is contained in:
anoduck 2024-01-26 15:25:04 -05:00
parent e6255b5636
commit 2052457e2b

View file

@ -262,12 +262,9 @@ class Purge(object):
sendp(new_pkt, verbose=0)
return
def get_interface(self, interface, mon_type) -> str:
self.interface = interface
self.mon_type = mon_type
def get_interface(self) -> str:
ndev = NetDev(interface=self.interface, mon_type=self.mon_type)
mon_if = ndev.start_monitor(interface=self.interface,
mon_type=self.mon_type)
mon_if = ndev.start_monitor()
return mon_if
def extract_channel(self, layers):