(self, adapt)
Sniff on the monitoring adapter
Sniff on the monitoring adapter
Sniff on the monitoring adapter
def ap_scan(self, adapt):
        """ Sniff on the monitoring adapter
        """
        try:
            util.Msg('Scanning for access points...')
            if self.channel is None:
                os.system('airodump-ng %s' % adapt)
            else:
                os.system('airodump-ng --channel %s %s' % (self.channel, adapt))
        except Exception, j:
            util.Error('Error scanning: %s' % j)
        finally:
            util.disable_monitor()
def ap_scan ( self , adapt ) : try : util . Msg ( 'Scanning for access points...' ) if self . channel is None : os . system ( 'airodump-ng %s' % adapt ) else : os . system ( 'airodump-ng --channel %s %s' % ( self . channel , adapt ) ) except Exception , j : util . Error ( 'Error scanning: %s' % j ) finally : util . disable_monitor ( )