def initialize(self): """Initialize AP""" if not util.check_program('airbase-ng'): util.Error('\'airbase-ng\' not found in local path.') return False self.running = True ap_proc = None try: self.mon_adapt = util.get_monitor_adapter() if self.mon_adapt is None: self.mon_adapt = util.enable_monitor() if self.mon_adapt is None: util.Error('Could not find a wireless card in monitor mode') self.running = False return None airbase_cmd = [ 'airbase-ng', '--essid', self.config['ap_essid'].value, self.mon_adapt ] ap_proc = util.init_app(airbase_cmd, False) util.Msg('Access point %s running.' % \ self.config['ap_essid'].value) raw_input() # block except KeyboardInterrupt: self.running = False except Exception, er: util.Error('Error with wireless AP: %s' % er)
def initialize(self): """Initialize AP""" if not util.check_program('airbase-ng'): util.Error('\'airbase-ng\' not found in local path.') return False self.running = True ap_proc = None try: self.mon_adapt = util.get_monitor_adapter() if self.mon_adapt is None: self.mon_adapt = util.enable_monitor() if self.mon_adapt is None: util.Error('Could not find a wireless card in monitor mode') return None airbase_cmd = [ 'airbase-ng', '--essid', self.ap_essid, self.mon_adapt ] ap_proc = util.init_app(airbase_cmd, False) util.Msg('Access point %s running.' % self.ap_essid) raw_input() # block except KeyboardInterrupt: self.running = False except Exception, er: util.Error('Error with wireless AP: %s' % er)
def initialize(self): """Initialize AP""" if not util.check_program('airbase-ng'): util.Error('\'airbase-ng\' not found in local path.') return False self.running = True ap_proc = None try: self.mon_adapt = util.get_monitor_adapter() if self.mon_adapt is None: self.mon_adapt = util.enable_monitor() airbase_cmd = [ 'airbase-ng', '--essid', self.ap_essid, self.mon_adapt ] ap_proc = util.init_app(airbase_cmd, False) util.Msg('Access point %s running.'%self.ap_essid) while self.running: pass except KeyboardInterrupt: self.running = False except Exception, er: util.Error('Error with wireless AP: %s'%er)
def initialize(): try: if not util.check_program('airmon-ng'): util.Error('airomon-ng not installed. Please install to continue.') return False 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() util.debug('Using interface %s'%iface) ap_scan(iface) except Exception, KeyboardInterrupt: return
def initialize(self): try: if not util.check_program('airmon-ng'): util.Error( 'airomon-ng not installed. Please install to continue.') return False 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, KeyboardInterrupt: return
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