Giter Club home page Giter Club logo

mac-listen's Introduction

MAC-SNOOP

An NPM module useful for WiFi password cracking. Useful to use with hashcat.

This package is only for macOS, I wrote it because a lot of alternatives seemed overly complicated or unavailable on Mac.

Requirements

  1. Homebrew
  2. Node.js
  3. TCPDUMP (preinstalled on macOS AFAIK)
  4. Wireshark. If you do not have Wireshark, it will be installed on first use.
  5. Hcxtools. If you do not have these, they will also be installed on first use.

Note: Please make sure these tools are accessible from your command line and added to your path. This is how the CLI detects their installation. Make sure

which mergecap

and

which hcxpcapngtool

both work.

Installation

Snoop

npm i -g mac-snoop

From brew.sh

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

or

snoop --install

Wireshark and Hcxtools

Once you are sure Homebrew has been installed (check with which brew):

brew install wireshark hcxtools

or run the snoop command. It will automatically install wireshark and hcxtools.

Usage

Example Usage:

snoop -o wifihash.hc22000

If you haven't installed Wireshark or hcxtools, the CLI will attempt to install them for you with brew. Install success This will print a list of available networks to stdout. You then select them with their ID. Select Network Prompt

After you select the network, it will capture the network beacon, then start listening for the network handshake.

Once it has collected the handshake packets (i.e, someone has connected to the network). It will then merge the captured files and transform them into a form that hashcat can crack.

To crack with hashcat, use hashcat -m 22000

Options

  • snoop -v - gets version number
  • snoop -h - displays help
  • snoop --list - will list availible network interfaces.
    • Essentially an alias for networksetup -listallhardwareports
  • snoop -p - specifies password for commands (some of them must be run as sudo). If left blank, will prompt user for password.
  • snoop -o sets the final output file.
  • snoop -H sets the handshake file name. Note: this file is deleted after the merge.
  • snoop -b sets the beacon file name. Note: this file is deleted after the merge.
  • snoop -i sets the network interface to be used. To see a list of interfaces, type:
networksetup -listallhardwareports

The default interface is en0. On most MacBooks this is the wifi card.

Due to limitations with recent macOS versions and hardware, this tool cannot be used with an external WiFi card on many new mac devices.

Problems

On ocassion, macOS will seem to be "stuck" in monitor mode. This can usually be fixed with a simple reboot. But I have added:

snoop --enable

as an alternative. It should also work to re-enable managed mode.

Written with StackEdit.

mac-listen's People

Contributors

eli-rich avatar

Stargazers

 avatar Renato Busatto avatar  avatar FAC-D12 avatar LR avatar

Watchers

 avatar

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.