(self)
Initialize the scanner
Initialize the scanner
Initialize the scanner
def initialize(self):
        """ Initialize the scanner
        """
        try:
            if not util.check_program('airmon-ng'):
                util.Error('airomon-ng not installed.  Please install to continue.')
                return None
            util.Msg('(ctrl^c) when finished.')
            iface = util.get_monitor_adapter()
            if iface is None:
                util.Msg('No devices found in monitor mode.  Enabling...')
                iface = util.enable_monitor(self.channel)
            util.debug('Using interface %s' % iface)
            self.ap_scan(iface)
        except Exception:
            return
def initialize ( self ) : try : if not util . check_program ( 'airmon-ng' ) : util . Error ( 'airomon-ng not installed.  Please install to continue.' ) return None util . Msg ( '(ctrl^c) when finished.' ) iface = util . get_monitor_adapter ( ) if iface is None : util . Msg ( 'No devices found in monitor mode.  Enabling...' ) iface = util . enable_monitor ( self . channel ) util . debug ( 'Using interface %s' % iface ) self . ap_scan ( iface ) except Exception : return