[ldap_crans] Clés WPA2 à 10 caractères

darcs-hash:20100830140748-ffbb2-06bde99f15875e1f14435cc3fca549ec004ee576.gz
This commit is contained in:
Nicolas Dandrimont 2010-08-30 16:07:48 +02:00
parent 6a6665ede6
commit a0edb2cc18

View file

@ -3148,7 +3148,7 @@ class MachineWifi(Machine):
if clef == True: if clef == True:
# Génération # Génération
clef = '' clef = ''
for i in range(18): for i in range(10):
clef += random.choice(filter(lambda x: x != 'l' and x != 'o', string.lowercase) + clef += random.choice(filter(lambda x: x != 'l' and x != 'o', string.lowercase) +
filter(lambda x: x != '1' and x != '0', string.digits)) filter(lambda x: x != '1' and x != '0', string.digits))