I need to use brute force to crack the password. I know about the password that it has exactly 1 capital letter (A-Z), exacly 1 number (1-9) and exacly 10 lowercase letters (from a to z). I have Python script that generates this type of passwords, but I don't know how to turn it into a hashcat mask.
Python code:
import random
random.seed(None)
lowers = 'qwertyuiopasdfghjklzxcvbnm'
uppers = 'QWERTYUIOPASDFGHJKLZXCVBNM'
number = '0123456789'
length = 12
while True:
uprspot = random.randint(0, length-1)
numspot = uprspot
while uprspot == numspot:
numspot = random.randint(0, length-1)
strgen = ""
for i in range (0, length):
if i == uprspot:
strgen += random.choice(uppers)
elif i == numspot:
strgen += random.choice(number)
else:
strgen += random.choice(lowers)
print(strgen)