Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9008815
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T02:01:59+00:00 2026-06-16T02:01:59+00:00

this is a general knowledge question, soon to turn into a project. I have

  • 0

this is a general knowledge question, soon to turn into a project. I have a script that attempts to brute force a sha1 with a known salt. In this application anyways the salt is known. Anyways, script works fine, it’s a python script. When I run it, it tops out one core of 16 I have available. I would like too utilize all 16 cores for the brute force attack! I messed around a little with the script and was able to use an example here to utilize multiple cores, but they aren’t being used wholey.

http://forum.openopt.org/viewtopic.php?id=51

This parrelization stuff is pretty new to me and i’m not sure how to approach it in python (let alone any scripting language).

TL;DR, What is the best way in python to utilize all cores available for brute force on a hash, say, an MD5?

Essentially what I have now is this… (mind the paraphrased code)

from multiprocessing imports Pools

def prog()
    generate hash_attempt
    compare it to target
jobs = []
po = Pool()
for stuff in things:
    po.apply_sync(prog())

This works but like I think I said, it doesn’t fully utilize all cores, and then sometimes it just randomly kills. It will just stop execution and the terminal I invoked the script will be back to it’s prompt and above it, it will say, “Killed”. Strange stuff.

Thanks a ton!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T02:02:00+00:00Added an answer on June 16, 2026 at 2:02 am

    Due to the Global Interpreter Lock, you cannot usefully use Python threads for CPU-bound work. In this case, you’re going to have to use multiprocessing. multiprocessing child processes may not work 100% of a given CPU core due to communication overhead. To minimize communication overhead, allocate work to your child processes in large chunks rather than smaller chunks.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is a general question of sorts, but do you think that it's important
I have a simple, general question regarding a real small issue that bothers me:
This is a general question that comes to answer an issue that interests me
This is just a general knowledge question. Why havent I ever come across any
Yesterday I asked this general question about decimals and their internal precisions. Here is
This is a general question, not related to a particular operation. I would like
This is a general question about MVC as a pattern, but in this case
This is a general question concerning technology decisions for a product development. My aim
This is a general question. And may not be specific to datagrids. How can
This is a general question about character encoding when using MD5 libraries in various

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.