Skip to content

Flash Force is a parallelism-based multiprocess hash cracking tool written in Python. Achieve GOD SPEED while cracking the hash with full control over CPU!

License

Notifications You must be signed in to change notification settings

isPique/Flash-Force

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flash Force Hash Cracker

  • Flash Force is a powerful and efficient tool designed to crack password hashes using either a wordlist or a brute-force attack.
  • It supports cracking SHA-256 and MD5 hashes and can leverage multiple CPU cores to speed up the process.
  • The tool can save and resume sessions, making it practical for lengthy cracking attempts.

Usage

  1. Clone the repository:

    git clone https://github.com/isPique/Flash-Force.git
  2. Navigate to the project directory:

    cd Flash-Force
  3. Run the script:

    python3 FlashForce.py

Warning

Use this tool responsibly and only for legitimate purposes!

What makes it different

  • I realized that nobody is using generators when reading a wordlist. Using generators can speed up file operations and improve a function's run time by at least 2-3 times.

  • For example, the read_wordlist function. It acts as a generator, meaning that it doesn't load the entire file into memory at once. Instead, it reads and processes one line at a time, yielding each line as it is requested. This evaluation means that the function can handle very large files without consuming a lot of memory, as it only keeps one line in memory at a time.

  • Using for loops when generating combinations and reading the wordlist. for loops are much faster than while loops!

  • You can use either Cython or Python to run the script, but I recommend Cython because it's way much faster than Python.

Note

You can modify the chunk_size variable to adjust the number of password attempts processed at once.

Speed Dominance - Cythonizing the script

  • Cython is a superset of Python designed to give C-like performance with code that is written mostly in Python. Used primarily to optimize Python code by compiling it to C, which can significantly increase execution speed, especially in CPU-bound tasks.

  • Cython code can include both Python and C syntax, allowing for more granular control over performance.

How to cythonize?

  1. Navigate to the "Cythonized" directory:

    cd Cythonized
  2. Install required libraries:

    pip install -r requirements.txt
  3. Compile the Cython code into a shared object file that can be imported into Python:

    python setup.py build_ext --inplace
  4. Run the compiled Cython code:

    python -c "import FlashForce; FlashForce.main()"

Wordlist Attack

Important

Remember that the speed of this tool depends on your CPU's power!

But even so, as you can see below, the script read 14.3 million lines of passwords in just 29 seconds! And it's just a virtual machine with only 2 CPU cores!!

Wordlist Attack

Brute-Force Attack

Brute-Force Attack

Brute-Force working principle

pool = multiprocessing.Pool(processes = multiprocessing.cpu_count())
  • By utilizing all available CPU cores, the script can optimize the parallelization of a brute-force attack by distributing the workload across multiple processes. Each process is responsible for calculating the hash of a specific combination of characters, allowing them to run concurrently. This parallel processing enables the script to perform multiple hash calculations simultaneously, leading to a significant speedup in the overall execution time compared to a single-threaded approach. By fully leveraging the CPU's capabilities, the brute-force process becomes much more efficient, potentially reducing the time required to complete the task.

  • Multiprocessing is faster than multi-threading.

To-Do

  • Add More hashing algorithms
  • Auto detect hash
  • GPU support

About

Flash Force is a parallelism-based multiprocess hash cracking tool written in Python. Achieve GOD SPEED while cracking the hash with full control over CPU!

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published