brace expansion

brute force time analysis with bash... and possible alternatives

In a old article I write a simple bash script to crack a known password in h4x0r style.

Now I would explain when this is fattibile.

Let consider a password with only 4 numbers:

eddy22@sophia:~$ echo {0..9}{0..9}{0..9}{0..9}
0000 0001 0002 0003 0004 0005 0006 0007 0008 0009 0010 0011 0012 0013 0014 0015
[...]
9984 9985 9986 9987 9988 9989 9990 9991 9992 9993 9994 9995 9996 9997 9998 9999

We have 10000 items. With 4 letters:

eddy22@sophia:~$ echo {a..z}{a..z}{a..z}{a..z}
Syndicate content