[Perl && C++] Dictionary makers

Questions about programming languages and debugging
User avatar
ayu
Staff
Staff
Posts: 8109
Joined: 27 Aug 2005, 16:00
18
Contact:

Re: [Perl && C++] Dictionary makers

Post by ayu »

Some more fun benchmarks.
They are not exact since I did a bunch of stuff on the machine when the benchmarks were made, but still gives the right picture.

Old version

Code: Select all

[INFO] Wordlist finished!

real	0m1.864s
user	0m1.816s
sys	0m0.044s
New version

Code: Select all

[INFO] Wordlist finished!

real	0m0.164s
user	0m0.104s
sys	0m0.056s
The next changes I will make wont make that much performance difference.
I will simply add some support for putting in arguments when starting the program, so you don't have to recompile all the time (Lundis has it in his so check his example).
And then I will make some other minor changes, as this code is not 100% C compatible yet, so can't compile it with gcc, which is my goal at the moment.
"The best place to hide a tree, is in a forest"

User avatar
ayu
Staff
Staff
Posts: 8109
Joined: 27 Aug 2005, 16:00
18
Contact:

Re: [Perl && C++] Dictionary makers

Post by ayu »

Also, to point out why you should use a brute forcer that can generate words on the fly.
When you generate wordlists like the application in this thread does, the size will increase extremely fast.
Here are some examples on how big different wordlists would be.
  • Chars: a-z, A-Z, 0-9

    Word length: 1
    List size: 62 B

    Word length: 2
    List size: 7.5 KB

    Word length: 3
    List size: 0.68 MB

    Word length: 4
    List size: 56 MB

    Word length: 5
    List size: 4 GB

    Word length: 6
    List size: 309 GB

    Word length: 7
    List size: 22 TB

    Word length: 8
    List size: 1.5 PB
And as you can see, more modern and secure passwords wouldn't be able to fit in here.
Already at length 6, it's starting to become hard to store the wordlist.
"The best place to hide a tree, is in a forest"

User avatar
lilrofl
Siliconoclast
Siliconoclast
Posts: 1363
Joined: 28 Jan 2009, 17:00
15
Location: California, USA
Contact:

Re: [Perl && C++] Dictionary makers

Post by lilrofl »

I noticed this also after crashing my computer, so I coded a size calculator in using size of word is 1 byte per letter + 1 for the carriage return. It's not exact, but accurate to the gigabyte.
knuffeltjes voor mijn knuffel
[img]http://i911.photobucket.com/albums/ac320/stuphsack/Sig.jpg[/img]

Post Reply