(self)
return result
Loads info about cracked access points into list, returns list.
Loads info about cracked access points into list, returns list.
Loads info about cracked access points into list returns list .
def load_cracked(self):
        """
            Loads info about cracked access points into list, returns list.
        """
        result = []
        if not os.path.exists('cracked.csv'): return result
        with open('cracked.csv', 'rb') as csvfile:
            targetreader = csv.reader(csvfile, delimiter=',', quotechar='"')
            for row in targetreader:
                t = Target(row[0], 0, 0, 0, row[1], row[2])
                t.key = row[3]
                t.wps = row[4]
                result.append(t)
        return result
def load_cracked ( self ) : result = [ ] if not os . path . exists ( 'cracked.csv' ) : return result with open ( 'cracked.csv' , 'rb' ) as csvfile : targetreader = csv . reader ( csvfile , delimiter = ',' , quotechar = '"' ) for row in targetreader : t = Target ( row [ 0 ] , 0 , 0 , 0 , row [ 1 ] , row [ 2 ] ) t . key = row [ 3 ] t . wps = row [ 4 ] result . append ( t ) return result