I wanted to write a bash script that reads a word in a file and then tries to loop through the alphabet until it finds the word. This is the code I have worked out so far but I am not very sure what to do from here and any help would be appreciated.
maxlen=5
while -r file; do
for i in {a...z}; do
done
done < ~/textfilelocation
So basically as part of homework I am supposed to attempt a tivial brute force attack against a password file with every possible combination of characters and we are to assume it is all lower case English.