Coder Social home page Coder Social logo

wificrack's Introduction

WiFiCrack

This repository is not actively maintained. See WiFiCrackPy for an updated version of this project.

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.

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)

wificrack's People

Contributors

dvlop avatar phenotypic avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

wificrack's Issues

ERROR (airport failure): Please run WiFiCrack again...

As title above !!

Environment : macOS 10.15.6 Catalina (2019 Mid MacBook Pro 13')
Shell had tried : zsh / bash

$ which airport
/usr/local/bin/airport
$ airport
Usage: airport <interface> <verb> <options>

	<interface>
	If an interface is not specified, airport will use the first AirPort interface on the system.

	<verb is one of the following:
	prefs	If specified with no key value pairs, displays a subset of AirPort preferences for
		the specified interface.

		Preferences may be configured using key=value syntax. Keys and possible values are specified below.
		Boolean settings may be configured using 'YES' and 'NO'.

.... 

( Means I have airport in my MacBook !! )

Please help !!
Thanks a lot.

How to set brute force ?

Hey. I'm having trouble on how to add brute force. The default on the WiFiCrack is for me to add a dictionary. It will to directly to hash and start the cracking based on the dictionary I provided. I would like to use brute force, but I am having trouble on how to add it so I can type my brute force command so I will automatically open hashcat and use the bruteforce command.

How to add flags ?

Hey really cool shell script! I just got lost on how to add flags. Could you possibly help me out?

Syntax error

Script is giving me this output...

[*] Scanning for Wi-Fi networks...
WifiCrack.sh: line 170: syntax error near unexpected token `<'
WifiCrack.sh: line 170: `done < <(sudo /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport -s | tail -n +2 | sort)'

Doesn't work

Should rename the file wifi_disconnector.sh because that's all it does
image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.