Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: 061e659cfb
Fetching contributors…

Cannot retrieve contributors at this time

19 lines (15 sloc) 0.482 kB
#!/usr/bin/env python
bits = {}
for login in file('keylog.txt'):
login = str(int(login))
for i, digit in enumerate(login[:-1]):
if digit not in bits:
bits[digit] = []
for rest in login[i+1:]:
if rest not in bits[digit]:
bits[digit].append(rest)
if rest not in bits:
bits[rest] = []
print bits
for digit, _ in sorted(bits.items(), key=lambda (k,v):len(v), reverse=True):
print digit,
Jump to Line
Something went wrong with that request. Please try again.