• This repository has been archived on 17/Mar/2024
  • Stars
    star
    119
  • Rank 297,930 (Top 6 %)
  • Language
    Shell
  • License
    MIT License
  • Created almost 6 years ago
  • Updated 8 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Automated Wi-Fi cracker for macOS

WiFiCrack

WiFiCrack demonstrates of some of the security flaws associated with WPA(2) networks by demonstrating simple and efficient cracking. It captures the necessary Wi-Fi packets associated with with WPA(2) handshakes and then utilises hashcat to attempt to extract the hashed passkey. The script is for educational purposes and should not be misused.

See WiFiCrackPy for a new streamlined version of this script

Prerequisites

You must have Xcode installed. You will need to install any other outstanding requirements:

Command Installation
hashcat Manual installation: install via brew by running brew install hashcat
mergecap Manual installation: comes with the Wireshark application (v2.6.12)
./hashcat-utils/src/cap2hccapx.bin Automatic installation option when script is run

Note: You will also need to supply a word list for hashcat

Note: The script has been successfully tested with macOS Catlaina when using the bash shell. zsh may cause some problems

Usage

Download with:

git clone https://github.com/phenotypic/WiFiCrack.git

Run from same directory with:

bash WiFiCrack.sh

The script is fairly easy to use, simply run it using the command above and enter your sudo password when prompted. Here are some flags you can add:

Flag Description
-h Help: Display all available flags
-k Keep: Keep all captured packet files (deleted at end of session by default)
-a Alert: Turn off successful crack alert
-w <wordlist> Wordlist: Manually define a wordlist path (the script will prompt you otherwise)
-i <interface> Interface: Manually set Wi-Fi interface (script should normally auto-detect the correct interface)
-d <device> Device: Manually define 'devices' for hashcat

After running the script, you will be asked to choose a network to crack.

Following the selection of a network, you may have to wait for a while until a handshake occurs on the target network (i.e. for a device to (re)connect to the network), but this can be hastened by performing a deauthentication attack.

Once a handshake is captured, WiFiCrack will initialise hashcat to extract the Wi-Fi password. This step may take a while depending on a number of factors including your processing power. If successful you will be presented with the password, otherwise, WiFiCrack will retain the handshake in its directory if you would like to perform another type of attack against the capture.

To-do list

  • Integrate deauthentication attack into main script
  • Provide more hashcat attack options (e.g. brute force)

More Repositories

1

WiFiCrackPy

Automated Wi-Fi cracker for macOS
Python
117
star
2

homebridge-nodemcu-relay

Control a relay with Apple HomeKit
C++
22
star
3

homebridge-web-thermostat

Homebridge plugin for a web-based thermostat
JavaScript
18
star
4

homebridge-web-sprinklers

Homebridge plugin for a web-based sprinkler system
JavaScript
14
star
5

ProbeOSX

Capture and interpret probe requests with macOS
Shell
11
star
6

homebridge-web-rgb

Homebridge plugin for a web-based RGB device
JavaScript
10
star
7

homebridge-http-lock-mechanism

Homebridge plugin for a simple web-based lock
JavaScript
7
star
8

homebridge-web-lock

Homebridge plugin for a web-based lock
JavaScript
6
star
9

homebridge-http-garage

Homebridge plugin for a simple web-based garage
JavaScript
6
star
10

homebridge-http-thermometer

Homebridge plugin for a web-based thermometer
JavaScript
6
star
11

homebridge-web-valve

Homebridge plugin for a web-based valve
JavaScript
4
star
12

homebridge-web-boiler

Homebridge plugin for a web-based boiler
JavaScript
4
star
13

homebridge-web-garage

Homebridge plugin for a web-based garage
JavaScript
3
star
14

homebridge-web-shower

Homebridge plugin for a web-based shower
JavaScript
3
star
15

MacSwapPy

Automated MAC address spoofer for macOS
Python
3
star
16

homebridge-nodemcu-rf

Control RF devices with Apple HomeKit
C++
2
star
17

homebridge-web-fan

Homebridge plugin for a web-based fan
JavaScript
2
star
18

homebridge-web-switch

Homebridge plugin for a web-based switch
JavaScript
2
star
19

homebridge-web-motion

Homebridge plugin for a web-based motion sensor
JavaScript
2
star
20

Primer-Designer

Automated PCR primer designer
Python
2
star
21

MacSwap

Change your MAC address quickly and easily
Shell
1
star
22

MTT-Assay-Analyser

An MTT assay absorbance analyser
Python
1
star