Repaired more mon_if functions
This commit is contained in:
parent
e6255b5636
commit
2052457e2b
1 changed files with 2 additions and 5 deletions
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue