I've just started learning python and i'm trying to create a small brute force program that will ask for an input from the user (password), brute force it then check if it matches. My problem: I am stuck in the computation of the loop (as you'll see in the source code)
Thanks for your help.
Source code:
L1=['a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z']
L2=['A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z']
L3=['0','1','2','3','4','5','6','7','8','9']
L4=L1+L2+L3
user=input("Enter your secret password here (maximum 4 characters): ")
sum=""
for i in range(0,len(L4)):
sum=L4[i]+L4[i+1]
print(sum)
if sum==user:
print("your cracked password is :", sum)
break;