mirror of
https://github.com/DanMcInerney/LANs.py.git
synced 2025-08-20 05:23:26 -07:00
fixed monmode error
This commit is contained in:
parent
0e4ec27353
commit
309e823d55
1 changed files with 1 additions and 1 deletions
2
LANs.py
2
LANs.py
|
@ -797,7 +797,7 @@ class active_users():
|
||||||
promisc = promiscSearch.communicate()[0]
|
promisc = promiscSearch.communicate()[0]
|
||||||
monmodeSearch = re.search('monitor mode enabled on (.+)\)', promisc)
|
monmodeSearch = re.search('monitor mode enabled on (.+)\)', promisc)
|
||||||
self.monmode = monmodeSearch.group(1)
|
self.monmode = monmodeSearch.group(1)
|
||||||
except OSError, e:
|
except:
|
||||||
exit('[-] Enabling monitor mode failed, do you have aircrack-ng installed?')
|
exit('[-] Enabling monitor mode failed, do you have aircrack-ng installed?')
|
||||||
|
|
||||||
sniff(iface=self.monmode, prn=self.pkt_cb, store=0)
|
sniff(iface=self.monmode, prn=self.pkt_cb, store=0)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue