Just for fun I made a very simple Python program:
var = "bello"
pas = raw_input("insert password\n")
if(pas==var):
print("\naccess granted\n")
print("\ncool information")
else:
print("\naccess denied")
Now I tried to brute force access using crunch, with the shell on ubuntu terminal:
crunch 1 5 | python pex.py
pex.py is the name of the program. But it doesn't work, I suspect that the execution of the program does not iterate, but i have no idea how to make this brute force attack work. Can you help me? Better with a complete explaination.
crunchoutput a list of words, you have to iterate its output using bash and for each iteration run your python script. superuser.com/questions/284187/…