{"id":22411410,"url":"https://github.com/ispique/flash-force","last_synced_at":"2025-08-03T14:09:06.709Z","repository":{"id":254742271,"uuid":"847413196","full_name":"isPique/Flash-Force","owner":"isPique","description":"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!","archived":false,"fork":false,"pushed_at":"2025-05-24T16:33:59.000Z","size":235,"stargazers_count":21,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-24T17:32:58.643Z","etag":null,"topics":["brute-force","brute-force-attacks","cpu-cores","cracker","cracking-password","cracking-tool","hash","hashing-algorithm","md5","multiprocessing","password-recovery","python","sha256","wordlist-attack"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/isPique.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-08-25T18:47:20.000Z","updated_at":"2025-05-24T16:34:02.000Z","dependencies_parsed_at":"2024-09-05T13:01:34.787Z","dependency_job_id":"09ecfe4b-9233-4cde-82cf-36d2d34b7414","html_url":"https://github.com/isPique/Flash-Force","commit_stats":null,"previous_names":["ispique/flash-force"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/isPique/Flash-Force","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/isPique%2FFlash-Force","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/isPique%2FFlash-Force/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/isPique%2FFlash-Force/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/isPique%2FFlash-Force/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/isPique","download_url":"https://codeload.github.com/isPique/Flash-Force/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/isPique%2FFlash-Force/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268554909,"owners_count":24269062,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-03T02:00:12.545Z","response_time":2577,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["brute-force","brute-force-attacks","cpu-cores","cracker","cracking-password","cracking-tool","hash","hashing-algorithm","md5","multiprocessing","password-recovery","python","sha256","wordlist-attack"],"created_at":"2024-12-05T13:13:55.236Z","updated_at":"2025-08-03T14:09:06.689Z","avatar_url":"https://github.com/isPique.png","language":"Python","readme":"# Flash Force Hash Cracker\n\n- Flash Force is a powerful and efficient tool designed to crack password hashes using either a wordlist or a brute-force attack.\n- It supports cracking SHA-256 and MD5 hashes and can leverage multiple CPU cores to speed up the process.\n- The tool can save and resume sessions, making it practical for lengthy cracking attempts.\n\n## Usage\n\n1. Clone the repository:\n\n    ```bash\n    git clone https://github.com/isPique/Flash-Force.git\n    ```\n\n2. Navigate to the project directory:\n\n    ```bash\n    cd Flash-Force\n    ```\n\n3. Run the script:\n\n    ```bash\n    python3 FlashForce.py\n    ```\n\n\u003e [!WARNING]\n\u003e ***Use this tool responsibly and only for legitimate purposes!***\n\n# What makes it different\n\n- 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.\n\n- 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.\n\n- Using `for` loops when generating combinations and reading the wordlist. `for` loops are much faster than `while` loops!\n\n- You can use either [Cython](https://cython.org/) or [Python](https://www.python.org/) to run the script, but I recommend Cython because it's way much faster than Python.\n\n\u003e [!NOTE]\n\u003e **You can modify the `chunk_size` variable to adjust the number of password attempts processed at once.**\n\n## Speed Dominance - Cythonizing the script\n\n- 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.\n\n- Cython code can include both Python and C syntax, allowing for more granular control over performance.\n\n### How to cythonize?\n\n  1. Navigate to the \"Cythonized\" directory:\n  \n      ```bash\n      cd Cythonized\n      ```\n\n  2. Install required libraries:\n     ```bash\n     pip install -r requirements.txt\n     ```\n  \n  3. Compile the Cython code into a shared object file that can be imported into Python:\n  \n      ```bash\n      python setup.py build_ext --inplace\n      ```\n  \n  4. Run the compiled Cython code:\n  \n     ```bash\n     python -c \"__import__('FlashForce').main()\"\n     ```\n\n## Wordlist Attack\n\u003e [!IMPORTANT]\n\u003e **Remember that the speed of this tool depends on your CPU's power!**\n\nBut 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!!\n\n![Wordlist Attack](https://github.com/isPique/Flash-Force/blob/main/Images/Wordlist%20Attack.png)\n\n- Wordlist mentioned above: [rockyou.txt](https://github.com/brannondorsey/naive-hashcat/releases/download/data/rockyou.txt)\n\n## Brute-Force Attack\n![Brute-Force Attack](https://github.com/isPique/Flash-Force/blob/main/Images/Brute-Force%20Attack.png)\n\n### Brute-Force working principle\n\n```python\npool = multiprocessing.Pool(processes = multiprocessing.cpu_count())\n```\n\n- 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.\n\n- Multiprocessing is faster than multi-threading.\n\n## To-Do\n- [ ] Add More hashing algorithms\n- [ ] Auto detect hash\n- [ ] GPU support\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fispique%2Fflash-force","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fispique%2Fflash-force","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fispique%2Fflash-force/lists"}