Support for Python3
That was fun.
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
|
||||
from ..tools.airodump import Airodump
|
||||
from ..util.color import Color
|
||||
from ..util.input import raw_input, xrange
|
||||
from ..model.target import Target
|
||||
from ..config import Configuration
|
||||
|
||||
@@ -40,7 +41,7 @@ class Scanner(object):
|
||||
|
||||
try:
|
||||
self.targets = airodump.get_targets()
|
||||
except Exception, e:
|
||||
except Exception as e:
|
||||
break
|
||||
|
||||
if self.found_target():
|
||||
@@ -219,7 +220,7 @@ if __name__ == '__main__':
|
||||
try:
|
||||
s = Scanner()
|
||||
targets = s.select_targets()
|
||||
except Exception, e:
|
||||
except Exception as e:
|
||||
Color.pl('\r {!} {R}Error{W}: %s' % str(e))
|
||||
Configuration.exit_gracefully(0)
|
||||
for t in targets:
|
||||
|
||||
Reference in New Issue
Block a user