RE: Wifijammer in python 08-30-2014, 07:20 AM
#18
(08-30-2014, 07:09 AM)Seven Wrote: Question. Do you know why the script searches for a wired interface in this line:
Code:wired_search = re.search('eth[0-9]|em[0-9]|p[1-9]p[1-9]', line)
if not wired_search: # Isn't wired
Not sure why.
I assume it's searching interfaces.
Code:
'eth[0-9]|em[0-9]|p[1-9]p[1-9]'
^This is a regex string and it's being searched for in line.
Try running the script on a ethernet network but doing " -i eth0 " (Or your wired interface)