05-18-2025, 03:25 PM
Also here should be a python combinations for all 66 combinations of masks
from itertools import combinations
# Define characters
letter = '?l'
digit = '?1'
# Number of positions (12 total)
positions = range(12)
# Find all ways to place two "1"s in 12 positions
combinations_list = list(combinations(positions, 2))
# Generate masks
masks = []
for digit_positions in combinations_list:
mask = [letter] * 12 # Start with all letters
mask[digit_positions[0]] = digit # Place first digit
mask[digit_positions[1]] = digit # Place second digit
masks.append(''.join(mask)) # Store mask as string
# Print all 66 masks
for m in masks:
print(m)
# Save to a file
with open("hashcat_masks.txt", "w") as file:
file.write("\n".join(masks))
print("\nGenerated all 66 masks and saved to 'hashcat_masks.txt'!")
from itertools import combinations
# Define characters
letter = '?l'
digit = '?1'
# Number of positions (12 total)
positions = range(12)
# Find all ways to place two "1"s in 12 positions
combinations_list = list(combinations(positions, 2))
# Generate masks
masks = []
for digit_positions in combinations_list:
mask = [letter] * 12 # Start with all letters
mask[digit_positions[0]] = digit # Place first digit
mask[digit_positions[1]] = digit # Place second digit
masks.append(''.join(mask)) # Store mask as string
# Print all 66 masks
for m in masks:
print(m)
# Save to a file
with open("hashcat_masks.txt", "w") as file:
file.write("\n".join(masks))
print("\nGenerated all 66 masks and saved to 'hashcat_masks.txt'!")