Results 1 to 4 of 4

Thread: Is Crunch multi-threaded?

Hybrid View

  1. #1
    Just burned his ISO
    Join Date
    Jun 2012

    Default Is Crunch multi-threaded?

    I have a question about the Crunch wordlist... version 3.2, if it matters which version.

    The question is... does it use multiple threads? So, if I have 4 threads on my CPU, will it use them all?

    This is important, because it would significantly speed up wordlist generation.

  2. #2
    Just burned his ISO codekiddy's Avatar
    Join Date
    Oct 2011

    Default Re: Is Crunch multi-threaded?

    Yes, crunch is multi-threaded application.

    If you want to know more about crunch, there is a source code inside a package, open it and see how many threads crunch creates.
    However if your processor has 4 cores, that does not mean that all 4 cores will be used by the application at the same time (even if application created 4 threads).
    Also note that an multi-threaded application is not the only one that lunches threads, there are usually hundredths of threads (of various applications) managed by the OS.

    How many cores will be used by an multi-threaded application depends on 2 things:
    1. How many threads does application creates.
    2. How does system manage threads in a given time

    I asked a simple question once on stackoverflow Have a look

    Hope this answers your question

  3. #3
    Just burned his ISO
    Join Date
    Jun 2012

    Default Re: Is Crunch multi-threaded?

    If you look at the source you see it using fork() and pthead() functions. I didn't try to see what it does with those functions, I just grep'ed them.
    But I didn't found any muxes or semaphores. Maybe it uses another synchronization technique, but at least I think it's not using threads and processes when it's writing the data on the disk.

    you could check with these commands to see if it uses multiple processes and threads:

    ps -ejH - shows the process tree
    ps -eLf - shows info about threads

  4. #4
    Good friend of the forums
    Join Date
    Jan 2010
    outside chicago, il

    Default Re: Is Crunch multi-threaded?

    No crunch is not multi-threaded. Crunch's output should be piped into another application for best results. The receiving application should be multi-threaded. For example if your receiving application is air-crack-ng, air-crack-ng becomes your bottleneck. Calculating the hash of a WPA2 password uses a lot more resources than generating the word for the hashing algorithm. In short, crunch almost always generates words faster than the receiving application can handle them.
    I like the bleeding edge, but I don't like blood loss

Similar Threads

  1. Multi Boot issues
    By pyromanci in forum BackTrack 5 Beginners Section
    Replies: 0
    Last Post: 01-18-2012, 09:10 PM
  2. Setting up Multi ch speaker? 5.1ch or 7.1
    By Chocolove in forum OLD Newbie Area
    Replies: 2
    Last Post: 03-01-2008, 05:40 AM
  3. Multi Boot on a USB Drive?
    By ivanho in forum OLD Newbie Area
    Replies: 2
    Last Post: 12-30-2007, 10:47 PM
  4. Multi boot
    By PLATER in forum OLD LiveCD Support
    Replies: 6
    Last Post: 10-13-2007, 12:17 AM
  5. svn co, 207 multi-status
    By Drav3n in forum OLD Newbie Area
    Replies: 27
    Last Post: 08-16-2007, 03:50 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts