{"id":21229590,"url":"https://github.com/sameetasadullah/distributed-password-cracker-using-mpi-and-openmp","last_synced_at":"2026-02-23T21:05:56.675Z","repository":{"id":136453802,"uuid":"524761028","full_name":"SameetAsadullah/Distributed-Password-Cracker-Using-MPI-and-OpenMP","owner":"SameetAsadullah","description":"Password Cracker program coded in C++ language by applying brute force algorithm and parallelizing it using MPI and OpenMP","archived":false,"fork":false,"pushed_at":"2022-11-29T15:46:42.000Z","size":898,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-27T13:51:18.526Z","etag":null,"topics":["brute-force-passwords","brute-force-search","cpp","linux","mpi","mpi-parallelization","openmp","openmp-parallelization","password-cracker","ubuntu"],"latest_commit_sha":null,"homepage":"","language":"C++","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/SameetAsadullah.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}},"created_at":"2022-08-14T19:26:14.000Z","updated_at":"2023-04-29T21:52:13.000Z","dependencies_parsed_at":null,"dependency_job_id":"a9d75560-d967-46cd-906c-2fd4294e40c5","html_url":"https://github.com/SameetAsadullah/Distributed-Password-Cracker-Using-MPI-and-OpenMP","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SameetAsadullah%2FDistributed-Password-Cracker-Using-MPI-and-OpenMP","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SameetAsadullah%2FDistributed-Password-Cracker-Using-MPI-and-OpenMP/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SameetAsadullah%2FDistributed-Password-Cracker-Using-MPI-and-OpenMP/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SameetAsadullah%2FDistributed-Password-Cracker-Using-MPI-and-OpenMP/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SameetAsadullah","download_url":"https://codeload.github.com/SameetAsadullah/Distributed-Password-Cracker-Using-MPI-and-OpenMP/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248799672,"owners_count":21163398,"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","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-passwords","brute-force-search","cpp","linux","mpi","mpi-parallelization","openmp","openmp-parallelization","password-cracker","ubuntu"],"created_at":"2024-11-20T23:28:31.607Z","updated_at":"2026-02-23T21:05:56.633Z","avatar_url":"https://github.com/SameetAsadullah.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003eDistributed Password Cracker Using MPI and OpenMP\u003c/h1\u003e\n\n### Description\nPassword Cracker program coded in `C++ Language` by applying `Brute Force Algorithm` and `Parallelizing` it using MPI and OpenMP. You can look at detailed description [Here](https://github.com/SameetAsadullah/Distributed-Password-Cracker-Using-MPI-and-OpenMP/blob/main/Project%20Statement.pdf).\n\n### Manual\n1) Copy the content of `/etc/shadow` into a file `shadow.txt` and place it into your current working directory:\n    ```\n    sudo cat /etc/shadow \u003e shadow.txt\n    ```\n    \n2) Use following command to `Compile the Code`:\n    ```\n    mpic++ -fopenmp main.cpp -lcrypt -o main\n    ```\n\n3) Create a file named as `machinefile` in your current working directory:\n    ```\n    touch machinefile\n    ```\n\n4) The `machinefile` should have the hostname of your pc and the number of processes you want to run on it in parallel i.e, sameet is the hostname of my pc and I want to run 5 processes in parallel. So, its format should be like:\n    ```\n    sameet:5\n    ```\n\n5) Use following commands to `Execute the Code`. Here 5 represents total number of processes to create:\n    ```\n    mpiexec -n 5 -f machinefile ./main\n    ```\n    \n### Working Screenshots\n\u003cdiv align=\"center\"\u003e\n  \u003cimg src = \"https://github.com/SameetAsadullah/Distributed-Password-Cracker-Using-MPI-and-OpenMP/blob/main/extras/working-ss-1.PNG\" alt = \"\" width=\"700px\"/\u003e\n\u003c/div\u003e\n\u003cbr/\u003e\n\u003cdiv align=\"center\"\u003e\n  \u003cimg src = \"https://github.com/SameetAsadullah/Distributed-Password-Cracker-Using-MPI-and-OpenMP/blob/main/extras/working-ss-2.PNG\" alt = \"\" width=\"700px\"/\u003e\n\u003c/div\u003e\n\u003cbr/\u003e\n\u003cdiv align=\"center\"\u003e\n  \u003cimg src = \"https://github.com/SameetAsadullah/Distributed-Password-Cracker-Using-MPI-and-OpenMP/blob/main/extras/working-ss-3.PNG\" alt = \"\" width=\"700px\"/\u003e\n\u003c/div\u003e\n\n### Side Notes\n- The `/etc/shadow` file stores all the users of the pc and their respective passwords in encryped form.\n- The encryption of their passwords are done using `SHA-512 Algorithm` in Ubuntu Linux.\n- We can encrypt any string using the `crypt()` function from `crypt.h Library`. It returns us Salt and Encyrpted Password both in a single appended string. It requires two arguments:\n    - The string to encrypt.\n    - The salt used to encrypt the string.\n- We can extract the salt used to encrypt the password from `shadow` file and then use it to encrypt all the strings obtained from brute force and compare with the password.\n- In `shadow` file, the username, salt, and password are stored in the following format:\n    - `Username` before first `:`\n    - Then `Salt` until three `$` signs\n    - And `Encrypted Password` after that\n\n### Contributors\n- [Sameet Asadullah](https://github.com/SameetAsadullah) \n- [Tayyab Ali](https://github.com/DarkDragz)\n- [Tayyab Abbas](https://github.com/tayyababbas2000)\n- [Aysha Noor](https://github.com/ayshanoorr)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsameetasadullah%2Fdistributed-password-cracker-using-mpi-and-openmp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsameetasadullah%2Fdistributed-password-cracker-using-mpi-and-openmp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsameetasadullah%2Fdistributed-password-cracker-using-mpi-and-openmp/lists"}