0

I got an excercise in which I have to guess a password using a brute-forcing algorithm. The charset is 'a-z' and the length varies between 3 and 6.

With 2GB of RAM I'm getting memory allocation errors after a couple of hours on the examples with 5 and 6 characters. I asked my teacher and he told me to do the bruteforcing using groups of 3, but I don't know how to approach this.

1 Answers1

2

I don't know what your instructor meant, you should ask him or her for a clarification.

However, why do you need a lot of memory? You don't need to keep all the possible passwords in memory, just the one you're trying now.

zmbq
  • 38,013
  • 14
  • 101
  • 171
  • How could I release the memory? And when should I release it? It's a bash script. –  Mar 10 '14 at 07:29
  • Don't allocate it in the first place - keep one variable for the next password you're trying and that's it. Don't keep all the passwords in one huge list. – zmbq Mar 10 '14 at 07:44