Brute force knowing some characters (but not their location)
#8
(02-20-2023, 06:33 PM)andreap Wrote: This code generate the masks I was looking for:

Code:
from itertools import permutations

perms = [''.join(p) for p in permutations('9AAAAAAA')]
perms = set(perms)

with open('masks.txt', 'w') as file:
    for perm in perms:
        print(perm)
        file.write(perm.replace("A", "?l") + "\n")

I was also looking for something a while back that generated the masks this way. The most similar solution was this tool that hasn't been updated in years, but does the job we are looking for:
https://github.com/iphelix/pack
Reply


Messages In This Thread
RE: Brute force knowing some characters (but not their location) - by CyberPentester - 03-02-2023, 04:20 AM